/* TMSCB (tmscb.com) — petrol ink, teal brand, gold accent */
:root{
  --ink:#0B1F2A; --ink-2:#12303D; --brand:#0E7C7B; --brand-d:#0A6463; --brand-l:#E3F3F1;
  --gold:#F2B544; --paper:#F4F7F8; --line:#D7E0E4; --muted:#64767F;
  --serif:'Source Serif 4',Georgia,'Times New Roman',serif;
  --sans:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
}
html{scroll-behavior:smooth;scroll-padding-top:84px;-webkit-text-size-adjust:100%}
:root body{font-family:var(--sans);background:var(--paper);overflow-x:hidden;-webkit-tap-highlight-color:transparent}
:root body h1,:root body h2,:root body h3,:root body h4{font-family:var(--sans);letter-spacing:-.02em;text-wrap:balance}
:root body img{max-width:100%;height:auto}
:root body :focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:6px}
::selection{background:var(--brand);color:#fff}

/* Reading progress */
#reading-progress{height:3px;background:linear-gradient(90deg,var(--brand),var(--gold))}

/* Header */
:root body > header.sticky{background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(11,31,42,.03)}
:root body > header.sticky img{height:2.25rem}
:root body > header.sticky nav a{position:relative;padding:.35rem 0}
:root body > header.sticky nav a::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:var(--brand);transform:scaleX(0);transform-origin:left;transition:transform .2s}
:root body > header.sticky nav a:hover::after{transform:scaleX(1)}
#mobile-menu{box-shadow:0 18px 30px -18px rgba(11,31,42,.35);max-height:calc(100vh - 4rem);overflow-y:auto}
#mobile-menu a.block{padding:.8rem .9rem;font-weight:600;border-radius:12px}

/* Hero (home) */
:root body > section.bg-gradient-to-b{background:radial-gradient(900px 400px at 85% -10%,rgba(14,124,123,.55),transparent 60%),linear-gradient(180deg,#0B1F2A,#0E2A37)}
:root body > section.bg-gradient-to-b h1{font-size:clamp(1.9rem,6.4vw,3.6rem);line-height:1.1}
:root body > section.bg-gradient-to-b .bg-clip-text{background-image:linear-gradient(90deg,#7ED3CF,var(--gold))}
:root body > section.bg-gradient-to-b a.rounded-lg{padding:.6rem .95rem;border-radius:999px;backdrop-filter:blur(4px)}
@media(max-width:640px){
  :root body > section.bg-gradient-to-b{padding-top:2.5rem;padding-bottom:3rem}
  :root body > section.bg-gradient-to-b .max-w-5xl>span{font-size:.7rem;line-height:1.4}
  :root body > section.bg-gradient-to-b .flex-wrap{justify-content:flex-start;gap:.5rem}
  :root body > section.bg-gradient-to-b .max-w-5xl{text-align:left}
  :root body > section.bg-gradient-to-b p{margin-left:0}
}

/* Cards & section headings (home) */
:root body section h2 > span.rounded-full{width:.4rem;height:1.5rem}
:root body section h2 > span.bg-emerald-500{background:var(--gold)}
:root body section article.rounded-2xl{border-color:var(--line);box-shadow:0 1px 2px rgba(11,31,42,.04);transition:transform .2s,box-shadow .2s,border-color .2s}
:root body section article.rounded-2xl:hover{transform:translateY(-3px);box-shadow:0 18px 32px -16px rgba(11,31,42,.25)}
:root body section article.rounded-2xl img{background:var(--ink)}
:root body section article .uppercase.tracking-wider{letter-spacing:.04em;font-size:.68rem}
:root body section article h3 a{display:block}
@media(max-width:640px){
  :root body section.max-w-7xl{padding-top:1.75rem}
  :root body section article.rounded-2xl>div.p-6{padding:1.1rem}
  :root body section .lg\:col-span-5{padding:1.25rem}
  :root body section .lg\:col-span-5 .flex.justify-between{flex-direction:column;align-items:stretch;gap:.9rem}
  :root body section .lg\:col-span-5 .flex.justify-between a{text-align:center;padding:.8rem}
}

/* Article page */
:root body main>article.rounded-2xl{border-color:var(--line);box-shadow:0 20px 40px -28px rgba(11,31,42,.3)}
:root body main>article>header h1{font-size:clamp(1.65rem,5.6vw,2.7rem);line-height:1.15}
:root body main>article>header .flex.items-center{flex-wrap:wrap;row-gap:.5rem}
:root body main>article>header .rounded-full.bg-blue-600{background:linear-gradient(135deg,var(--brand),var(--ink-2))}
@media(max-width:640px){
  :root body main{padding-left:.75rem;padding-right:.75rem;padding-top:.75rem}
  :root body main>article.rounded-2xl{padding:1.15rem;border-radius:18px}
  :root body main>article>header{margin-bottom:1.25rem}
  :root body main>article .mb-8.rounded-xl{margin-left:-.4rem;margin-right:-.4rem;width:auto}
  :root body nav.flex.text-xs .truncate{max-width:9rem}
}

/* Prose — serif for long reading */
.prose{font-family:var(--serif);font-size:clamp(1.02rem,.96rem + .3vw,1.14rem);line-height:1.8;color:#25353d;overflow-wrap:break-word}
.prose h2{font-family:var(--sans);font-size:clamp(1.3rem,1.1rem + 1vw,1.7rem);line-height:1.25;margin:2.4rem 0 .9rem;padding-top:1.4rem;border-top:1px solid var(--line);font-weight:800;color:var(--ink)}
.prose h2:first-child{border-top:0;padding-top:0;margin-top:0}
.prose h3{font-family:var(--sans);font-size:1.15rem;color:var(--ink-2)}
.prose p{margin-bottom:1.25rem}
.prose ul,.prose ol{padding-left:1.35rem}
.prose ul{list-style:none;padding-left:0}
.prose ul>li{position:relative;padding-left:1.4rem}
.prose ul>li::before{content:"";position:absolute;left:.15rem;top:.75em;width:.45rem;height:.45rem;border-radius:2px;background:var(--gold);transform:rotate(45deg)}
.prose ol{list-style:decimal}
.prose ol>li::marker{color:var(--brand);font-weight:800}
.prose li{margin-bottom:.65rem}
.prose strong{color:var(--ink)}
.prose a{color:var(--brand);text-decoration-thickness:1.5px;text-decoration-color:rgba(14,124,123,.4)}
.prose a:hover{color:var(--brand-d);text-decoration-color:currentColor}
.prose blockquote{border-left:4px solid var(--gold);background:var(--paper);padding:1rem 1.2rem;border-radius:0 12px 12px 0;margin:1.5rem 0}

/* Tables — scroll inside card on phones, sticky first column */
.table-container{position:relative;margin:1.75rem -.25rem;border-radius:14px;border:1px solid var(--line);background:#fff;-webkit-overflow-scrolling:touch;box-shadow:inset -14px 0 12px -14px rgba(11,31,42,.18)}
.custom-table{font-family:var(--sans);min-width:34rem;font-size:.9rem}
.custom-table th{background:var(--ink);color:#fff;border-bottom:0;padding:.85rem 1rem;font-size:.78rem;letter-spacing:.02em;white-space:nowrap}
.custom-table td{padding:.85rem 1rem;vertical-align:top;color:#33444c}
.custom-table tbody tr:nth-child(even){background:#F7FAFA}
.custom-table tbody tr:hover{background:var(--brand-l)}
.custom-table th:first-child,.custom-table td:first-child{position:sticky;left:0;background:inherit;z-index:1}
.custom-table td:first-child{background:#fff;box-shadow:1px 0 0 var(--line)}
.custom-table tbody tr:nth-child(even) td:first-child{background:#F7FAFA}
.custom-table th:first-child{background:var(--ink-2)}

/* TOC, FAQ, author, next reads */
:root body main .my-8.rounded-xl{background:var(--brand-l);border-color:rgba(14,124,123,.2)}
:root body main .my-8.rounded-xl h3{letter-spacing:.03em}
:root body main .my-8.rounded-xl li{padding:.2rem 0;line-height:1.45}
:root body main .my-8.rounded-xl li span.cursor-pointer{color:var(--ink-2);text-decoration:none}
:root body main .my-8.rounded-xl li span.cursor-pointer:hover{color:var(--brand);text-decoration:underline}
:root body main .space-y-4>.rounded-xl{background:#fff;border-color:var(--line);border-left:4px solid var(--brand);padding:1.1rem 1.15rem}
:root body main .grid a.block.rounded-xl{padding:1.1rem;transition:transform .2s,box-shadow .2s,border-color .2s}
:root body main .grid a.block.rounded-xl:hover{transform:translateY(-2px);border-color:var(--brand)}
:root body main .mt-10.rounded-xl.p-6{background:linear-gradient(135deg,var(--ink),var(--ink-2));border:0;color:#cfdde2}
:root body main .mt-10.rounded-xl.p-6 h4,:root body main .mt-10.rounded-xl.p-6 strong{color:#fff}
:root body main .mt-10.rounded-xl.p-6 p{color:#b9cbd2}
:root body main .mt-10.rounded-xl.p-6 .rounded-full{background:var(--gold);color:var(--ink)}

/* Ads */
.ad-slot-wrapper{margin:2rem 0;background:repeating-linear-gradient(135deg,#F7FAFA,#F7FAFA 10px,#F1F6F7 10px,#F1F6F7 20px);border:1px solid var(--line);border-radius:14px;padding:10px;min-height:0;max-width:100%;overflow:hidden}
.ad-badge{font-size:.62rem;letter-spacing:.08em;text-transform:uppercase;color:#8A9BA4;margin-bottom:6px;display:block}
.mobile-anchor-ad{display:none}
.ad-close-btn{display:none}

/* E-E-A-T educational callout */
.eeat-callout{
  background:var(--brand-l);
  border:1px solid rgba(14,124,123,.25);
  border-left:4px solid var(--gold);
  border-radius:12px;
  padding:.9rem 1rem;
  font-size:.9rem;
  line-height:1.55;
  color:#25353d;
}
.eeat-callout a{color:var(--brand);font-weight:600}

/* Cookie consent banner */
.cookie-banner{
  position:fixed;left:0;right:0;bottom:0;z-index:9000;
  background:rgba(11,31,42,.97);
  border-top:1px solid rgba(255,255,255,.12);
  padding:1rem;
}
.cookie-banner-inner{
  max-width:72rem;margin:0 auto;
  display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;
}
.cookie-banner p{color:#d7e0e4;font-size:.85rem;line-height:1.5;margin:0;max-width:42rem}
.cookie-banner a{color:var(--gold);text-decoration:underline}
.cookie-banner-actions{display:flex;gap:.5rem;flex-shrink:0}
.cookie-btn{
  border:0;border-radius:999px;padding:.65rem 1rem;font-size:.8rem;font-weight:700;cursor:pointer;
}
.cookie-btn-primary{background:var(--brand);color:#fff}
.cookie-btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.3)}
body.has-cookie-banner{padding-bottom:6.5rem}

.adsense-slot[hidden]{display:none!important}

/* Footer */
:root body > footer{background:linear-gradient(180deg,#0B1F2A,#08171F);border-top:3px solid var(--brand);color:#9fb3bb}
:root body > footer h4{font-size:.78rem;letter-spacing:.06em;color:#fff}
:root body > footer a{display:inline-block;padding:.15rem 0}
:root body > footer a:hover{color:var(--gold)}
@media(max-width:767px){:root body > footer{padding-top:2.5rem}:root body > footer .grid{gap:1.75rem}:root body > footer li{margin-bottom:.1rem}}

/* Forms & static pages */
:root body input,:root body textarea,:root body select{font-size:16px;border-radius:12px;border-color:var(--line);background:#fff;width:100%}
:root body input:focus,:root body textarea:focus,:root body select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(14,124,123,.2);outline:0}
:root body button[type=submit],:root body form button{background:var(--brand);border-radius:12px}
:root body button[type=submit]:hover,:root body form button:hover{background:var(--brand-d)}

@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}html{scroll-behavior:auto}}

/* ===== Round 2: extra polish ===== */
:root{--shadow-lg:0 24px 48px -24px rgba(11,31,42,.35)}

/* Hero: grid texture, glow, one entrance */
:root body > section.bg-gradient-to-b{background:radial-gradient(700px 360px at 90% -10%,rgba(14,124,123,.6),transparent 60%),radial-gradient(500px 260px at 0% 110%,rgba(242,181,68,.16),transparent 65%),linear-gradient(180deg,#0B1F2A,#0E2A37)}
:root body > section.bg-gradient-to-b .max-w-5xl{animation:heroIn .7s cubic-bezier(.2,.7,.2,1) both}
@keyframes heroIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
:root body > section.bg-gradient-to-b .max-w-5xl>span{background:rgba(242,181,68,.12);color:#F7C96A;border-color:rgba(242,181,68,.35);letter-spacing:.01em}
:root body > section.bg-gradient-to-b a.rounded-lg{background:rgba(255,255,255,.06);color:#dbe8ec;border-color:rgba(255,255,255,.14)}
:root body > section.bg-gradient-to-b a.rounded-lg:hover{background:var(--gold);color:var(--ink);border-color:var(--gold)}

/* Buttons */
:root body a.bg-blue-600,:root body a.bg-blue-600.rounded-lg{background:linear-gradient(135deg,var(--brand),#0B5F66);border-radius:999px;box-shadow:0 8px 18px -8px rgba(14,124,123,.7);transition:transform .15s,box-shadow .15s}
:root body a.bg-blue-600:hover{transform:translateY(-1px);box-shadow:0 12px 22px -8px rgba(14,124,123,.8)}
:root body a.bg-blue-600:active{transform:scale(.97)}

/* Featured spotlight */
:root body section .grid.lg\:grid-cols-12{border-radius:24px;box-shadow:var(--shadow-lg);border-color:var(--line)}
:root body section .lg\:col-span-7{position:relative}
:root body section .lg\:col-span-7::after{content:"";position:absolute;inset:auto 0 0 0;height:40%;background:linear-gradient(0deg,rgba(11,31,42,.45),transparent);pointer-events:none}
:root body section .lg\:col-span-5 h3{font-size:clamp(1.3rem,1.05rem + 1.2vw,1.95rem);line-height:1.2}

/* Category chips + card details */
:root body section span.bg-blue-100,:root body main>article>header span.bg-blue-100{background:var(--brand-l);color:var(--brand-d);border:1px solid rgba(14,124,123,.22);letter-spacing:.03em}
:root body section article .font-bold.text-blue-600.uppercase{display:inline-block;background:var(--brand-l);color:var(--brand-d);padding:.25rem .6rem;border-radius:999px}
:root body section article .aspect-\[16\/9\]::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(11,31,42,.28),transparent 55%);pointer-events:none}
:root body section article h3{line-height:1.3}
:root body section article h3 a:hover{color:var(--brand)}
:root body section article .border-t a.text-blue-600{background:var(--ink);color:#fff;padding:.45rem .85rem;border-radius:999px;transition:background .15s,color .15s}
:root body section article .border-t a.text-blue-600:hover{background:var(--gold);color:var(--ink)}
:root body section article p.line-clamp-3{color:#4A5B64}

/* Article: lead paragraph, breadcrumbs, images */
:root body main>article>.prose:first-of-type,:root body main>article>div.prose:nth-of-type(1){font-size:clamp(1.1rem,1rem + .5vw,1.28rem);line-height:1.7;color:var(--ink-2)}
:root body main>article>.prose:first-of-type::first-line{font-weight:600}
:root body div.max-w-4xl>nav.flex{background:#fff;border:1px solid var(--line);padding:.55rem .85rem;border-radius:999px;overflow:hidden;white-space:nowrap}
:root body div.max-w-4xl>nav.flex .truncate{overflow:hidden;text-overflow:ellipsis}
:root body main .mb-8.rounded-xl{border-radius:18px;box-shadow:var(--shadow-lg)}
.prose h2{border-top:0;padding-top:0;padding-left:.9rem;border-left:4px solid var(--gold);margin-top:2.6rem}
.prose h2:first-child{margin-top:0}
.prose p>strong:first-child,.prose li>strong:first-child{color:var(--brand-d)}
.prose em{color:var(--ink-2)}
.prose a[href]{background:linear-gradient(var(--brand-l),var(--brand-l)) 0 100%/100% 38% no-repeat;text-decoration:none;padding:0 .1rem;border-radius:2px}
.prose a[href]:hover{background-size:100% 100%}
:root body main>article>.my-8.rounded-xl{border-radius:18px}
:root body main .space-y-4>.rounded-xl h4{color:var(--ink)}
:root body main .grid a.block.rounded-xl h4{color:var(--ink);font-size:.95rem}
:root body main .grid a.block.rounded-xl:hover h4{color:var(--brand)}

/* Footer brand */
:root body > footer .text-white.font-extrabold{font-size:1.5rem}
:root body > footer .text-blue-500{color:var(--gold)}

/* Back-to-top (added by JS) */
#to-top{position:fixed;right:14px;bottom:18px;width:46px;height:46px;border-radius:50%;border:0;background:var(--ink);color:#fff;font-size:20px;display:grid;place-items:center;box-shadow:0 10px 24px -8px rgba(11,31,42,.6);opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s;z-index:8000;cursor:pointer}
#to-top.show{opacity:1;pointer-events:auto;transform:none}
#to-top:hover{background:var(--brand)}
@media(max-width:767px){#to-top{bottom:92px}}

/* Small phones */
@media(max-width:380px){
  :root body main>article.rounded-2xl{padding:1rem}
  .prose{font-size:1rem}
  .custom-table{min-width:30rem;font-size:.85rem}
}
