/* ==========================================================================
   Thermometer Guru 2.0 — editorial magazine layer
   Palette: navy #17324D · blue #2376D2 · turquoise #19A7A0 · orange #F49B38
   Type: Manrope (headings) · Inter (body)
   ========================================================================== */

:root {
	--tg-navy: #17324D;
	--tg-navy-2: #0f2438;
	--tg-blue: #2376D2;
	--tg-blue-ink: #1b5fae;      /* AA on white for small link text */
	--tg-teal: #19A7A0;
	--tg-teal-ink: #0f7a75;      /* AA on white */
	--tg-orange: #F49B38;
	--tg-orange-ink: #8a4a06;
	--tg-bg: #F5F8FC;
	--tg-surface: #FFFFFF;
	--tg-text: #243447;
	--tg-muted: #5f6d7f;         /* darkened from #697789 for AA body contrast */
	--tg-line: #e3e9f1;
	--tg-radius: 14px;
	--tg-radius-sm: 8px;
	--tg-shadow: 0 1px 2px rgba(23, 50, 77, .06), 0 8px 24px -12px rgba(23, 50, 77, .18);
	--tg-shadow-hover: 0 2px 4px rgba(23, 50, 77, .08), 0 16px 32px -14px rgba(23, 50, 77, .28);
	--tg-h: "Manrope", "Segoe UI", system-ui, sans-serif;
	--tg-b: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tg-max: 1180px;

	/* keep legacy tokens in step */
	--tmg-bg: var(--tg-bg);
	--tmg-text: var(--tg-text);
	--tmg-muted: var(--tg-muted);
	--tmg-h-font: var(--tg-h);
	--tmg-b-font: var(--tg-b);
}

/* ---------- Base ---------- */
body.tg-mag {
	background: var(--tg-surface);
	color: var(--tg-text);
	font-family: var(--tg-b);
	font-size: 17px;
	line-height: 1.65;
}
body.tg-mag h1, body.tg-mag h2, body.tg-mag h3, body.tg-mag h4 {
	font-family: var(--tg-h);
	color: var(--tg-navy);
	font-weight: 800;
	letter-spacing: -.015em;
	line-height: 1.2;
}
body.tg-mag h1 { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.75rem); }
body.tg-mag h2 { font-size: clamp(1.45rem, 1.2vw + 1rem, 1.9rem); }
body.tg-mag h3 { font-size: 1.15rem; font-weight: 700; }
body.tg-mag a { color: var(--tg-blue-ink); }
body.tg-mag a:hover { color: var(--tg-navy); }
body.tg-mag :focus-visible { outline: 3px solid var(--tg-orange); outline-offset: 2px; border-radius: 4px; }
/* Media frames: images fill their aspect-ratio boxes (beats theme.css img{height:auto}). */
.tg-hero__media img, .tg-cat__media img, .tg-card__media img, .tg-product__media img, .tg-learn__thumb img { display: block; width: 100%; height: 100% !important; max-width: none; object-fit: cover; }
.tg-hero__media img { object-position: 50% 30%; }

.tg-wrap { width: 100%; max-width: var(--tg-max); margin: 0 auto; padding: 0 20px; }
.tg-wrap--narrow { max-width: 780px; }
.tg-center { text-align: center; margin-top: 32px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 14px; background: #fff; color: var(--tg-navy); border-radius: 8px; box-shadow: var(--tg-shadow); }

/* ---------- Buttons, labels, links ---------- */
.tg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
	font: 700 .97rem/1 var(--tg-h); text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.tg-btn:hover { transform: translateY(-1px); }
body.tg-mag .tg-btn--primary { background: var(--tg-blue); color: #fff; }
body.tg-mag .tg-btn--primary:hover { background: var(--tg-navy); color: #fff; }
body.tg-mag .tg-btn--ghost { background: #fff; color: var(--tg-navy); border-color: #c9d6e6; }
body.tg-mag .tg-btn--ghost:hover { border-color: var(--tg-navy); color: var(--tg-navy); }
body.tg-mag .tg-btn--amazon { background: var(--tg-orange); color: #1d1a16; }
body.tg-mag .tg-btn--amazon:hover { background: #e48a24; color: #1d1a16; }

.tg-label {
	display: inline-block; padding: 4px 10px; border-radius: 999px;
	background: #e8f1fc; color: var(--tg-blue-ink) !important;
	font: 700 .72rem/1.3 var(--tg-b); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
}
.tg-label--teal { background: #e3f5f4; color: var(--tg-teal-ink) !important; }
.tg-kicker { display: block; margin-bottom: 6px; font: 700 .78rem/1.2 var(--tg-b); letter-spacing: .08em; text-transform: uppercase; color: var(--tg-blue-ink); }
.tg-kicker--orange { color: var(--tg-orange-ink); }
.tg-kicker--teal { color: var(--tg-teal-ink); }
.tg-kicker--light { color: #9fd9d5; }
.tg-link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.tg-link-arrow::after { content: " →"; }

/* ---------- Announcement + header ---------- */
.tg-announce { background: var(--tg-navy); color: #d6e2ef; font-size: .84rem; text-align: center; padding: 7px 0; }
.tg-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--tg-line); backdrop-filter: saturate(1.4) blur(6px); }
.admin-bar .tg-header { top: 32px; }
.tg-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.tg-brand { flex: 0 0 auto; }
.tg-brand .custom-logo { max-height: 44px; width: auto; }
.tg-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.tg-logo__word { font: 800 1.22rem/1 var(--tg-h); letter-spacing: -.02em; color: var(--tg-navy); }
.tg-logo__word span { font-weight: 600; }
.tg-logo__word strong { color: var(--tg-blue); font-weight: 800; }
.tg-logo--light .tg-logo__word { color: #fff; }
.tg-logo--light .tg-logo__word strong { color: #8cc2ff; }

.tg-nav { flex: 1 1 auto; }
.tg-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; justify-content: center; }
.tg-menu > li { position: relative; }
.tg-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--tg-navy) !important; font: 600 .95rem/1.2 var(--tg-h); text-decoration: none; }
.tg-menu a:hover, .tg-menu .current-menu-item:not(.menu-item-type-custom) > a, .tg-menu .current-menu-parent > a { background: #eef4fb; color: var(--tg-blue-ink) !important; }
.tg-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.tg-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 270px; background: #fff; border: 1px solid var(--tg-line); border-radius: 12px; box-shadow: var(--tg-shadow-hover); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.tg-menu li:hover > .sub-menu, .tg-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tg-menu .sub-menu a { font-weight: 500; font-family: var(--tg-b); }

.tg-header__tools { display: flex; gap: 6px; margin-left: auto; }
.tg-iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--tg-line); background: #fff; color: var(--tg-navy); cursor: pointer; }
.tg-iconbtn:hover { background: #eef4fb; }
.tg-menu-toggle { display: none; }
.tg-searchbar { border-top: 1px solid var(--tg-line); padding: 14px 0; background: #fff; }

.tg-search { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.tg-search input[type="search"] { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid #c9d6e6; border-radius: 999px; font: inherit; color: var(--tg-text); background: #fff; }

/* ---------- Sections ---------- */
.tg-section { padding: clamp(48px, 6vw, 80px) 0; }
.tg-section--tint { background: var(--tg-bg); }
.tg-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.tg-section__head h2 { margin: 0; }
.tg-section__sub { max-width: 520px; margin: 0; color: var(--tg-muted); font-size: .98rem; }

.tg-grid { display: grid; gap: 24px; }
.tg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Hero ---------- */
.tg-hero { background: linear-gradient(180deg, #F5F8FC 0%, #fff 100%); padding: clamp(36px, 5vw, 72px) 0; }
.tg-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.tg-hero__title { margin: 0 0 16px; font-size: clamp(2.1rem, 3.4vw + 1rem, 3.3rem) !important; }
.tg-hero__lede { font-size: 1.12rem; color: #3b4b5e; max-width: 34em; margin: 0 0 26px; }
.tg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.tg-hero__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--tg-muted); font-size: .9rem; }
.tg-hero__facts li { display: inline-flex; align-items: center; gap: 6px; }
.tg-hero__facts svg { color: var(--tg-teal); }
.tg-hero__media { margin: 0; position: relative; aspect-ratio: 16 / 11; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(23,50,77,.45); background: #dfe8f3; }
.tg-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.tg-hero__media::after { content: ""; position: absolute; inset: auto 18px 18px auto; width: 64px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--tg-teal), var(--tg-orange)); }
.tg-hero__fallback { display: grid; place-items: center; height: 100%; color: var(--tg-navy); }

/* ---------- Category cards (4:3) ---------- */
.tg-cat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); overflow: hidden; text-decoration: none; color: inherit !important; box-shadow: var(--tg-shadow); transition: box-shadow .2s, transform .2s; }
.tg-cat:hover { box-shadow: var(--tg-shadow-hover); transform: translateY(-2px); }
.tg-cat__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e6eef8; }
.tg-cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tg-cat:hover .tg-cat__media img { transform: scale(1.04); }
.tg-cat__glyph { display: grid; place-items: center; height: 100%; color: var(--tg-navy); }
.tg-cat__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.tg-cat__name { font: 800 1.12rem/1.25 var(--tg-h); color: var(--tg-navy); }
.tg-cat__desc { color: var(--tg-muted); font-size: .93rem; line-height: 1.5; flex: 1; }
.tg-cat .tg-link-arrow { color: var(--tg-blue-ink); font-size: .92rem; margin-top: 4px; }

/* ---------- Article cards (16:9) ---------- */
.tg-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); overflow: hidden; box-shadow: var(--tg-shadow); transition: box-shadow .2s, transform .2s; }
.tg-card:hover { box-shadow: var(--tg-shadow-hover); transform: translateY(-2px); }
.tg-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e6eef8; }
.tg-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tg-card__glyph { display: grid; place-items: center; height: 100%; color: var(--tg-navy); }
.tg-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.tg-card__body .tg-label { align-self: flex-start; }
.tg-card__title { margin: 0 !important; font-size: 1.12rem !important; line-height: 1.3 !important; }
.tg-card__title a { color: var(--tg-navy) !important; text-decoration: none; }
.tg-card__title a:hover { color: var(--tg-blue-ink) !important; }
.tg-card__excerpt { margin: 0; color: var(--tg-muted); font-size: .94rem; line-height: 1.55; }
.tg-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; font-size: .85rem; color: var(--tg-muted); }

/* Editor's picks: lead + list */
.tg-picks { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.tg-picks__lead .tg-card__title { font-size: 1.5rem !important; }
.tg-picks__list { display: grid; gap: 16px; }
.tg-picks__list .tg-card { flex-direction: row; }
.tg-picks__list .tg-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 120px; }
.tg-picks__list .tg-card__body { padding: 14px 16px; gap: 6px; }
.tg-picks__list .tg-card__title { font-size: 1rem !important; }

/* ---------- Product cards / boxes ---------- */
.tg-disclosure-inline { margin: 0 0 20px; padding: 10px 14px; border-left: 4px solid var(--tg-orange); background: #fff7ee; border-radius: 0 8px 8px 0; font-size: .88rem; color: #5a4632; }
.tg-disclosure-inline a { margin-left: 4px; }
.tg-product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); overflow: hidden; box-shadow: var(--tg-shadow); }
.tg-product__media { aspect-ratio: 1 / 1; max-height: 180px; width: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #eef4fb, #e3f5f4); color: var(--tg-navy); }
.tg-product__media img { width: 100%; height: 100%; object-fit: cover; }
.tg-product--card .tg-product__media { aspect-ratio: auto; height: 104px; }
.tg-product--card .tg-product__glyph { width: 64px; height: 64px; border-radius: 18px; }
.tg-product__glyph { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: #fff; box-shadow: var(--tg-shadow); }
.tg-product__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.tg-product__body .tg-label { align-self: flex-start; }
.tg-product__name { margin: 2px 0 0 !important; font-size: 1.12rem !important; }
.tg-product__type { margin: 0; font-size: .86rem; color: var(--tg-teal-ink); font-weight: 600; }
.tg-product__summary { margin: 0; font-size: .93rem; color: var(--tg-muted); }
.tg-product__specs { margin: 4px 0 0; display: grid; gap: 0; border-top: 1px solid var(--tg-line); }
.tg-product__specs div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--tg-line); font-size: .86rem; }
.tg-product__specs dt { color: var(--tg-muted); }
.tg-product__specs dd { margin: 0; font-weight: 600; color: var(--tg-navy); text-align: right; }
.tg-product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 12px; }
.tg-product__source { font-size: .82rem; }
/* Box variant (inside articles) */
.tg-product--box { flex-direction: row; margin: 28px 0; border-left: 4px solid var(--tg-teal); }
.tg-product--box .tg-product__media { flex: 0 0 150px; max-height: none; aspect-ratio: auto; }
.tg-product__pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.tg-product__pc h4 { margin: 0 0 6px; font-size: .9rem; }
.tg-pros, .tg-cons { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.tg-pros li, .tg-cons li { position: relative; padding-left: 22px; margin: 4px 0; }
.tg-pros li::before { content: "✓"; position: absolute; left: 0; color: var(--tg-teal-ink); font-weight: 800; }
.tg-cons li::before { content: "–"; position: absolute; left: 3px; color: #b4532a; font-weight: 800; }
.tg-product__verdict { margin: 6px 0 0; padding: 10px 12px; background: var(--tg-bg); border-radius: 8px; font-size: .92rem; }

/* ---------- Learn list ---------- */
.tg-learn__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.tg-learn__item a { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--tg-line); text-decoration: none; color: inherit !important; background: #fff; transition: border-color .15s, box-shadow .15s; }
.tg-learn__item a:hover { border-color: #b9d3ef; box-shadow: var(--tg-shadow); }
.tg-learn__thumb { flex: 0 0 104px; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #e3f5f4; color: var(--tg-teal-ink); }
.tg-learn__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tg-learn__text { display: flex; flex-direction: column; gap: 3px; }
.tg-learn__text strong { font: 700 1rem/1.3 var(--tg-h); color: var(--tg-navy); }
.tg-learn__text span { font-size: .88rem; color: var(--tg-muted); line-height: 1.45; }

/* ---------- Tools ---------- */
.tg-tools { background: linear-gradient(180deg, #fff, #F5F8FC); }
.tg-tools__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tg-panel { background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); padding: 24px; box-shadow: var(--tg-shadow); }
.tg-panel h3 { margin-top: 0; }
.tg-converter { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.tg-converter__field label { display: block; font-size: .85rem; font-weight: 600; color: var(--tg-muted); margin-bottom: 6px; }
.tg-converter__field input { width: 100%; height: 56px; padding: 0 14px; border: 2px solid #c9d6e6; border-radius: 12px; font: 800 1.5rem/1 var(--tg-h); color: var(--tg-navy); background: #fff; }
.tg-converter__field input:focus { border-color: var(--tg-blue); outline: none; }
.tg-converter__eq { font: 800 1.5rem/56px var(--tg-h); color: var(--tg-muted); }
.tg-converter__formula { grid-column: 1 / -1; margin: 4px 0 0; font-size: .86rem; color: var(--tg-muted); }
.tg-converter__presets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.tg-converter__presets button, .tg-chip span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid #c9d6e6; background: #fff; color: var(--tg-navy); font: 600 .84rem/1.2 var(--tg-b); cursor: pointer; }
.tg-converter__presets button:hover { border-color: var(--tg-blue); color: var(--tg-blue-ink); }
.tg-selector fieldset { border: 0; margin: 0; padding: 0; }
.tg-selector legend { font-weight: 600; margin-bottom: 10px; color: var(--tg-text); }
.tg-selector__options { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-chip { position: relative; }
.tg-chip input { position: absolute; opacity: 0; }
.tg-chip input:checked + span { background: var(--tg-navy); border-color: var(--tg-navy); color: #fff; }
.tg-chip input:focus-visible + span { outline: 3px solid var(--tg-orange); outline-offset: 2px; }
.tg-selector__result { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: #e3f5f4; }
.tg-selector__result h3 { margin: 8px 0 6px !important; }
.tg-selector__result p { margin: 0 0 8px; font-size: .95rem; }

/* ---------- Trust ---------- */
.tg-trust { background: var(--tg-navy); color: #d6e2ef; }
.tg-trust h2 { color: #fff !important; margin-top: 0; }
.tg-trust__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 56px; align-items: start; }
.tg-trust__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tg-trust__points li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.tg-trust__points strong { color: #fff; font-family: var(--tg-h); }
.tg-trust__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.tg-trust__links a { color: #fff !important; padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 600; }
.tg-trust__links a:hover { background: rgba(255,255,255,.1); }

/* ---------- Listing / page heads ---------- */
.tg-listing__head { background: var(--tg-bg); border-bottom: 1px solid var(--tg-line); padding: 36px 0 32px; }
.tg-listing__title { margin: 6px 0 10px; }
.tg-listing__sub { color: var(--tg-muted); max-width: 720px; }
.tg-listing__sub p { margin: 0 0 8px; }
.tg-listing__body { padding-top: 40px; padding-bottom: 64px; }
.tg-listing__head .tg-search { margin: 18px 0 0; }
.tg-empty { text-align: center; padding: 40px 0; color: var(--tg-muted); }
.tg-404-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.tg-pagination { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tg-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--tg-line); text-decoration: none; font-weight: 600; }
.tg-pagination .current { background: var(--tg-navy); color: #fff; border-color: var(--tg-navy); }

/* Breadcrumbs */
.tmg-breadcrumbs { font-size: .84rem; margin-bottom: 14px; }
.tmg-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--tg-muted); }
.tmg-breadcrumbs .tmg-bc-sep { margin-left: 6px; color: #9aa7b6; }
.tmg-breadcrumbs [aria-current] { color: var(--tg-text); }
.tmg-breadcrumbs a { color: var(--tg-muted) !important; text-decoration: none; }
.tmg-breadcrumbs a:hover { color: var(--tg-blue-ink) !important; text-decoration: underline; }

/* ---------- Article ---------- */
.tg-article__head { padding: 34px 0 24px; background: var(--tg-bg); }
.tg-article__title { margin: 12px 0 14px; }
.tg-article__dek { font-size: 1.18rem; color: #3b4b5e; margin: 0 0 20px; line-height: 1.55; }
.tg-byline { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: .9rem; color: var(--tg-muted); }
.tg-byline__avatar { border-radius: 50%; }
.tg-byline__text { display: flex; flex-direction: column; }
.tg-byline__text strong { color: var(--tg-navy); }
.tg-article__feature { margin: 0 auto; padding-top: 4px; max-width: 1100px; }
.tg-article__feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.tg-article__feature figcaption { font-size: .8rem; color: var(--tg-muted); margin-top: 8px; }
.tg-article__grid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 56px; justify-content: center; padding-top: 36px; padding-bottom: 56px; }
.tg-article__aside { position: relative; }
.tg-toc { position: sticky; top: 96px; font-size: .9rem; border-left: 2px solid var(--tg-line); padding-left: 14px; }
.tg-toc summary { font: 800 .78rem/1.2 var(--tg-b); letter-spacing: .08em; text-transform: uppercase; color: var(--tg-navy); cursor: pointer; list-style: none; margin-bottom: 10px; }
.tg-toc summary::-webkit-details-marker { display: none; }
.tg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tg-toc a { color: var(--tg-muted) !important; text-decoration: none; line-height: 1.35; display: block; }
.tg-toc a:hover, .tg-toc a.is-active { color: var(--tg-blue-ink) !important; }
.tg-toc li.is-h3 { padding-left: 12px; font-size: .85rem; }

.tg-prose { font-size: 1.06rem; line-height: 1.75; }
.tg-prose > * { margin-top: 0; margin-bottom: 1.15em; }
.tg-prose h2 { margin-top: 1.9em; margin-bottom: .6em; scroll-margin-top: 96px; }
.tg-prose h3 { margin-top: 1.5em; margin-bottom: .5em; font-size: 1.22rem !important; scroll-margin-top: 96px; }
.tg-prose ul, .tg-prose ol { padding-left: 1.3em; }
.tg-prose li { margin: .35em 0; }
.tg-prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.tg-prose a.tg-btn { text-decoration: none; }
.tg-prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--tg-teal); background: #f0faf9; border-radius: 0 10px 10px 0; }
.tg-prose img { border-radius: 12px; }
.tg-prose figure { margin: 1.6em 0; }
.tg-prose figcaption { font-size: .82rem; color: var(--tg-muted); margin-top: 6px; }
.tg-prose .tg-callout { padding: 16px 18px; border-radius: 12px; background: #eef4fb; border: 1px solid #d4e3f5; }
.tg-prose .tg-callout--warn { background: #fff7ee; border-color: #f6dcbc; }
.tg-prose .tg-callout--safety { background: #f0faf9; border-color: #c7ebe8; }
.tg-prose .tg-callout > :last-child { margin-bottom: 0; }
.tg-prose .tg-keytakeaways { padding: 18px 20px; border-radius: 14px; background: var(--tg-bg); border: 1px solid var(--tg-line); }
.tg-prose .tg-keytakeaways h2 { margin-top: 0; font-size: 1.15rem !important; }
.tg-prose .tg-sources { font-size: .9rem; color: var(--tg-muted); }

/* Tables: scroll on small screens, never overflow the page */
.tg-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em 0; border: 1px solid var(--tg-line); border-radius: 12px; }
.tg-table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .94rem; margin: 0; }
.tg-prose th, .tg-prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--tg-line); }
.tg-prose thead th { background: var(--tg-navy); color: #fff; font-family: var(--tg-h); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.tg-prose tbody tr:nth-child(even) td { background: #f8fafd; }
.tg-prose tbody tr:last-child td { border-bottom: 0; }
.tg-prose td strong { color: var(--tg-navy); }

.tg-tags { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tg-tags a { font-size: .85rem; text-decoration: none; padding: 4px 10px; border-radius: 999px; background: var(--tg-bg); }

.tg-author { display: flex; gap: 18px; margin-top: 40px; padding: 22px; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); background: var(--tg-bg); font-size: .95rem; }
.tg-author__avatar img { border-radius: 50%; }
.tg-author__name { margin: 0 0 6px !important; font: 800 1.05rem/1.3 var(--tg-h); color: var(--tg-navy); }
.tg-author__name span { font-weight: 600; color: var(--tg-muted); font-family: var(--tg-b); font-size: .9rem; }
.tg-author p { margin: 0 0 10px; }
.tg-author__links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; font-weight: 600; }
.tg-related h2 { margin-top: 0; margin-bottom: 24px; }

/* Pages + forms */
.tg-page__body { padding-top: 36px; padding-bottom: 64px; }
.tg-page__updated { font-size: .88rem; color: var(--tg-muted); margin-top: 40px; }
.tg-form p { margin: 0 0 16px; }
.tg-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--tg-navy); }
.tg-form input[type="text"], .tg-form input[type="email"], .tg-form select, .tg-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #c9d6e6; border-radius: 10px; font: inherit; color: var(--tg-text); background: #fff; }
.tg-form input:focus, .tg-form select:focus, .tg-form textarea:focus { border-color: var(--tg-blue); outline: 2px solid rgba(35,118,210,.25); }
.tg-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tg-form__note { font-size: .85rem; color: var(--tg-muted); }
.tg-notice { padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.tg-notice--ok { background: #e3f5f4; color: var(--tg-teal-ink); }
.tg-notice--err { background: #fdecea; color: #a23a2a; }

/* Reading progress */
.tmg-read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.tmg-read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--tg-teal), var(--tg-blue)); }

/* ---------- Footer ---------- */
.tg-footer { background: var(--tg-navy-2); color: #b9c7d8; font-size: .93rem; }
.tg-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.tg-footer__brand p { margin: 14px 0 0; max-width: 34em; line-height: 1.6; }
.tg-footer__h { color: #fff !important; font-size: .82rem !important; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 14px; }
.tg-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tg-footer a { color: #dbe5f1 !important; text-decoration: none; }
.tg-footer a:hover { color: #fff !important; text-decoration: underline; }
.tg-footer__social { display: flex !important; gap: 14px !important; margin-top: 16px !important; }
.tg-footer__base { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 28px; font-size: .84rem; }
.tg-footer__base p { margin: 0 0 6px; }
.tg-footer__amazon { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.tg-article__grid { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 780px; }
	.tg-toc { position: static; border: 1px solid var(--tg-line); border-radius: 12px; padding: 12px 16px; margin-bottom: 28px; background: var(--tg-bg); }
	.tg-toc summary { margin-bottom: 0; }
	.tg-toc[open] summary { margin-bottom: 10px; }
}
@media (max-width: 960px) {
	.tg-menu-toggle { display: inline-grid; }
	.tg-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--tg-line); box-shadow: var(--tg-shadow-hover); max-height: calc(100vh - 120px); overflow-y: auto; }
	.tg-nav.is-open { display: block; }
	.tg-menu { flex-direction: column; padding: 10px 16px 18px; gap: 0; }
	.tg-menu a { padding: 12px 8px; }
	.tg-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
	.tg-menu .menu-item-has-children > a::after { display: none; }
	.tg-hero__grid { grid-template-columns: 1fr; }
	.tg-hero__media { order: -1; aspect-ratio: 16 / 9; }
	.tg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tg-picks { grid-template-columns: 1fr; }
	.tg-tools__grid, .tg-trust__grid { grid-template-columns: 1fr; }
	.tg-footer__grid { grid-template-columns: 1fr 1fr; }
	.tg-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 782px) { .admin-bar .tg-header { top: 46px; } }
@media (max-width: 640px) {
	body.tg-mag { font-size: 16px; }
	.tg-wrap { padding: 0 16px; }
	.tg-grid--3:not(.tg-cat-grid) { grid-template-columns: 1fr; }
	.tg-cat-grid { gap: 12px; }
	.tg-cat__body { padding: 12px 12px 14px; }
	.tg-cat__name { font-size: .98rem; }
	.tg-cat__desc { display: none; }
	.tg-learn__list { grid-template-columns: 1fr; }
	.tg-learn__thumb { flex-basis: 84px; }
	.tg-picks__list .tg-card__media { flex-basis: 34%; }
	.tg-hero__actions .tg-btn { flex: 1 1 100%; }
	.tg-converter { grid-template-columns: 1fr; }
	.tg-converter__eq { display: none; }
	.tg-product--box { flex-direction: column; }
	.tg-product--box .tg-product__media { flex-basis: auto; height: 120px; }
	.tg-product__pc { grid-template-columns: 1fr; }
	.tg-author { flex-direction: column; }
	.tg-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
	.tg-search { flex-direction: column; }
	.tg-logo__word { font-size: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.tg-announce, .tg-header, .tg-footer, .tg-toc, .tmg-read-progress, .tg-related { display: none !important; }
}

/* ---------- Restored-article elements ---------- */
.tg-prose .tg-updated-note { font-size: .9rem; color: var(--tg-muted); padding: 10px 14px; border-radius: 10px; background: var(--tg-bg); border: 1px dashed #cdd8e6; }
.tg-prose .tg-procon { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 16px; border: 1px solid var(--tg-line); border-radius: 12px; background: #fff; }
.tg-prose .tg-procon h4 { margin: 0 0 6px; font-size: .95rem; }
.tg-prose .tg-procon ul { margin: 0; padding: 0; }
.tg-prose p > .tg-btn--amazon { margin-top: 4px; }
@media (max-width: 640px) { .tg-prose .tg-procon { grid-template-columns: 1fr; } }

/* Nav fit with the larger menu: never wrap labels; tighten, then switch to the mobile menu earlier. */
.tg-menu a { white-space: nowrap; }
@media (max-width: 1260px) and (min-width: 1181px) {
	.tg-menu a { padding: 10px 8px; font-size: .9rem; }
	.tg-header__inner { gap: 14px; }
}
@media (max-width: 1180px) {
	.tg-menu-toggle { display: inline-grid; }
	.tg-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--tg-line); box-shadow: var(--tg-shadow-hover); max-height: calc(100vh - 120px); overflow-y: auto; }
	.tg-nav.is-open { display: block; }
	.tg-menu { flex-direction: column; padding: 10px 16px 18px; gap: 0; }
	.tg-menu a { padding: 12px 8px; }
	.tg-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
	.tg-menu .menu-item-has-children > a::after { display: none; }
}
