/* GulfTalky news theme. Tokens mirror gulftalky.com/web so the two systems read as one site. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #0b1b33; --gold: #e3a92b; --teal: #0e8f7e; --violet: #6d5efc;
  --ink: #0a1230; --bg: #f5f7fc; --surface: #fff; --surface-2: #eceff9; --line: rgba(15, 23, 60, .09);
  --muted: rgba(10, 18, 48, .62); --text: #263349; --gold-text: #8a5d08;
  --shadow: 0 1px 2px rgba(15, 23, 60, .05), 0 10px 30px -14px rgba(60, 60, 160, .25);
  --shadow-lg: 0 2px 4px rgba(15, 23, 60, .06), 0 28px 56px -20px rgba(80, 70, 200, .4);
  --radius: 1.25rem;
  --display: "Plus Jakarta Sans", system-ui, sans-serif; --sans: Inter, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f2f4f8; --bg: #070f1d; --surface: #0e1a2e; --surface-2: #122138; --line: rgba(255,255,255,.1); --muted: rgba(255,255,255,.62); --text: #d5dce9; --gold-text: #e3a92b; --teal: #2dc4af; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--navy); }

.gt-wrap { max-width: 1240px; margin-inline: auto; padding-inline: 1rem; }
.gt-narrow { max-width: 760px; }
.gt-center { text-align: center; padding-block: 5rem; }
.gt-h1 { font-size: clamp(2rem, 4vw, 3rem); }
.gt-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.gt-meta { font-size: .8rem; color: var(--muted); margin: .4rem 0 0; }
.gt-empty { padding: 3rem 0; color: var(--muted); }
.gt-partner { margin-inline-start: .5rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--gold); color: var(--navy); padding: .12rem .5rem; border-radius: 999px; }

/* Buttons */
.gt-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: 999px; padding: .6rem 1.15rem; font-weight: 600; font-size: .9rem; transition: transform .15s, filter .15s; cursor: pointer; border: 0; }
.gt-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.gt-btn-gold { background: linear-gradient(135deg, #f0c25a, var(--gold)); color: var(--navy); }
.gt-btn-grad { background: linear-gradient(135deg, #6d5efc, #a855f7); color: #fff; box-shadow: 0 10px 28px -10px rgba(109, 94, 252, .9); }

/* Header */
.gt-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.gt-bar { max-width: 1240px; margin-inline: auto; padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; }
.gt-logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font: 800 1.25rem var(--display); letter-spacing: -.03em; }
.gt-logo b, .gt-footer-logo b { color: var(--gold); font-weight: 800; }
.gt-mainlinks { margin-inline-start: auto; display: none; gap: .25rem; font-size: .9rem; font-weight: 500; color: var(--ink); }
.gt-mainlinks a { padding: .45rem .75rem; border-radius: 999px; }
.gt-mainlinks a:hover, .gt-mainlinks a[aria-current] { background: var(--surface-2); }
.gt-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.gt-iconbtn { background: none; border: 0; color: var(--ink); padding: .5rem; border-radius: 999px; cursor: pointer; }
.gt-iconbtn:hover { background: var(--surface-2); }
@media (min-width: 1000px) { .gt-mainlinks { display: flex; } .gt-actions { margin-inline-start: 0; } }
.gt-cats, .gt-subbar { border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.gt-cats::-webkit-scrollbar, .gt-subbar::-webkit-scrollbar { display: none; }
.gt-cats ul, .gt-subbar ul { max-width: 1240px; margin-inline: auto; padding: 0 1rem; display: flex; gap: .15rem; white-space: nowrap; }
.gt-cats a { display: block; padding: .6rem .75rem; font-size: .9rem; font-weight: 600; color: var(--ink); border-bottom: 2px solid transparent; }
.gt-cats a:hover, .gt-cats .nav-current { border-bottom-color: var(--gold); }
.gt-subbar { background: var(--surface-2); }
.gt-subbar a { display: block; padding: .4rem .6rem; font-size: .8rem; color: var(--muted); }
.gt-subbar a:hover { color: var(--ink); }
.gt-sep { width: 1px; background: var(--line); margin: .35rem .4rem; }

/* Sections, grids */
.gt-section { margin-top: 3rem; }
.gt-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.gt-section-head h2 { font-size: 1.6rem; }
.gt-section-head a { font-size: .85rem; font-weight: 600; color: var(--gold-text); }
.gt-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gt-grid, .gt-grid-3, .gt-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .gt-grid-3 { grid-template-columns: repeat(3, 1fr); } .gt-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.gt-cols { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 960px) { .gt-cols { grid-template-columns: 1fr 340px; } }
.gt-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.gt-box-title { font: 800 1rem var(--display); color: var(--ink); margin-bottom: .75rem; }
.gt-ranked { counter-reset: r; }
.gt-ranked li { counter-increment: r; display: flex; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .92rem; }
.gt-ranked li:first-child { border-top: 0; padding-top: 0; }
.gt-ranked li::before { content: counter(r); font: 800 1.1rem var(--display); color: var(--gold); min-width: 1.2rem; }
.gt-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.gt-chips a { display: inline-block; padding: .3rem .8rem; font-size: .8rem; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
.gt-chips a:hover { border-color: var(--gold); }
.gt-links li { padding: .35rem 0; } .gt-links a { color: var(--gold-text); font-weight: 600; font-size: .9rem; }

/* Cards */
.gt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.gt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gt-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.gt-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gt-card:hover .gt-card-img img { transform: scale(1.04); }
.gt-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(109,94,252,.25), rgba(227,169,43,.3)); }
.gt-card-body { padding: 1rem 1.1rem 1.15rem; }
.gt-card-title { font-size: 1.1rem; margin-top: .25rem; } .gt-card-title a:hover { color: var(--gold-text); }
.gt-card-excerpt { font-size: .9rem; color: var(--muted); margin: .5rem 0 0; }
.gt-card-compact .gt-card-body { padding: .85rem 1rem; } .gt-card-compact .gt-card-title { font-size: 1rem; }
.gt-card-row { flex-direction: row; } .gt-card-row .gt-card-img { width: 38%; aspect-ratio: auto; min-height: 150px; flex-shrink: 0; }
@media (max-width: 560px) { .gt-card-row { flex-direction: column; } .gt-card-row .gt-card-img { width: 100%; aspect-ratio: 16/9; } }
.gt-list { display: grid; gap: 1.25rem; }

/* Home hero */
.gt-hero { margin-top: 1.5rem; }
.gt-hero-grid { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .gt-hero-grid { grid-template-columns: 1.7fr 1fr; } }
.gt-lead { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); overflow: hidden; box-shadow: var(--shadow); }
.gt-lead-img { display: block; aspect-ratio: 16/9; background: var(--surface-2); } .gt-lead-img img { width: 100%; height: 100%; object-fit: cover; }
.gt-lead-body { padding: 1.5rem; } .gt-lead-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: .4rem; } .gt-lead-title a:hover { color: var(--gold-text); }
.gt-lead-excerpt { color: var(--muted); font-size: 1.05rem; margin: .8rem 0 0; }
.gt-top { display: grid; gap: 1rem; align-content: start; }

/* Newsletter band */
.gt-band { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 2rem; border-radius: calc(var(--radius) * 1.5); color: #fff; background: radial-gradient(500px 260px at 90% 0%, rgba(227,169,43,.35), transparent 60%), radial-gradient(500px 260px at 0% 100%, rgba(14,143,126,.4), transparent 60%), linear-gradient(180deg, #0b1b33, #07101f); }
.gt-band h2 { color: #fff; font-size: clamp(1.3rem, 2.5vw, 1.8rem); max-width: 34ch; margin-top: .3rem; } .gt-band .gt-eyebrow { color: var(--gold); }
.gt-band-inline { margin-block: 2.5rem; padding: 1.5rem; }

/* Category / author */
.gt-crumbs { padding-top: 1.25rem; font-size: .82rem; color: var(--muted); } .gt-crumbs a:hover { color: var(--ink); }
.gt-cat-head { padding-block: 1rem 1.5rem; } .gt-cat-intro { max-width: 62ch; color: var(--muted); font-size: 1.05rem; margin: .75rem 0 0; }
.gt-author-head { display: flex; gap: 1.5rem; align-items: center; padding-block: 2rem; }
.gt-avatar-lg { width: 96px; height: 96px; border-radius: 1.5rem; object-fit: cover; }
.gt-links-inline a { margin-inline-end: 1rem; color: var(--gold-text); font-weight: 600; font-size: .9rem; }
.gt-pager { display: flex; justify-content: space-between; align-items: center; padding: 2rem 0; font-size: .9rem; font-weight: 600; color: var(--ink); }
.gt-pager a { padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.gt-brief-list { margin: 1.5rem 0; padding-inline-start: 1.25rem; list-style: decimal; line-height: 2; }

/* Article */
.gt-art-head { max-width: 860px; margin: 1.5rem auto 0; }
.gt-art-title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: .6rem 0 0; }
.gt-standfirst { font-size: 1.25rem; color: var(--muted); margin: 1rem 0 0; line-height: 1.5; }
.gt-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.25rem; }
.gt-byline-author { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); font-size: .9rem; }
.gt-byline-author img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; }
.gt-byline .gt-meta { margin: 0; }
.gt-feature { margin: 2rem auto 0; max-width: 1100px; } .gt-feature img { width: 100%; border-radius: calc(var(--radius) * 1.3); }
.gt-feature figcaption { font-size: .8rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.gt-art-grid { display: grid; gap: 2.5rem; max-width: 1100px; margin: 2rem auto 0; }
@media (min-width: 960px) { .gt-art-grid { grid-template-columns: minmax(0, 1fr) 300px; } .gt-art-side { position: sticky; top: 9rem; align-self: start; } }
.gt-content { font-size: 1.125rem; line-height: 1.8; color: var(--text); }
.gt-content > * + * { margin-top: 1.25em; }
.gt-content h2 { font-size: 1.7rem; margin-top: 2em; } .gt-content h3 { font-size: 1.3rem; margin-top: 1.6em; }
.gt-content a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.gt-content ul, .gt-content ol { padding-inline-start: 1.4rem; list-style: revert; } .gt-content li + li { margin-top: .4em; }
.gt-content blockquote { margin-inline: 0; padding: .25rem 0 .25rem 1.25rem; border-inline-start: 4px solid var(--gold); font-size: 1.25rem; color: var(--ink); }
.gt-content figure img { border-radius: var(--radius); } .gt-content figcaption { font-size: .8rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.gt-content hr { border: 0; border-top: 1px solid var(--line); }
.gt-content table { width: 100%; border-collapse: collapse; font-size: .95rem; } .gt-content th, .gt-content td { padding: .6rem; border-bottom: 1px solid var(--line); text-align: start; }
.gt-content .takeaways, .takeaways { background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--teal); border-radius: var(--radius); padding: 1.1rem 1.4rem; font-size: 1rem; box-shadow: var(--shadow); }
.takeaways h2, .takeaways h3 { font-size: 1rem; margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
.gt-tags { margin-top: 2rem; }
.gt-author-box { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.gt-deal { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--surface-2); border-radius: var(--radius); }
.gt-deal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.gt-deal-row strong { color: var(--teal); font-family: var(--display); }
.gt-related { margin-bottom: 1rem; }

/* Ads: space reserved to avoid layout shift */
.gt-ad { background: var(--surface-2); border-radius: .75rem; margin-block: 1rem; }
.gt-ad-leaderboard { min-height: 90px; } .gt-ad-sidebar { min-height: 250px; } .gt-ad-inline { min-height: 250px; }

/* Footer */
.gt-footer { margin-top: 5rem; color: rgba(255,255,255,.72); font-size: .9rem; background: radial-gradient(900px 400px at 85% 0%, rgba(227,169,43,.18), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(14,143,126,.25), transparent 60%), #08142a; }
.gt-footer-grid { display: grid; gap: 2rem; padding-block: 3rem; }
@media (min-width: 760px) { .gt-footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.gt-footer h2 { font: 700 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .75rem; }
.gt-footer li { padding: .25rem 0; } .gt-footer a:hover { color: var(--gold); }
.gt-footer-logo { font: 800 1.4rem var(--display); color: #fff; margin: 0 0 .5rem; }
.gt-footer-base { text-align: center; padding: 1.25rem 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .75rem; color: rgba(255,255,255,.5); margin: 0; }

/* Mobile subscribe bar */
.gt-subbar-mobile { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 1rem; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 600; box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
@media (min-width: 760px) { .gt-subbar-mobile { display: none; } }
@media (max-width: 759px) { body { padding-bottom: 3.6rem; } }

/* Koenig editor cards (required by Ghost) */
.kg-width-wide { width: min(1100px, 100vw - 2rem); position: relative; inset-inline-start: 50%; transform: translateX(-50%); }
.kg-width-full { width: 100vw; position: relative; inset-inline-start: 50%; transform: translateX(-50%); }
.kg-width-full img { border-radius: 0; }
.kg-image-card img, .kg-gallery-image img { width: 100%; }
.kg-gallery-container { display: flex; flex-direction: column; gap: .5rem; } .kg-gallery-row { display: flex; gap: .5rem; } .kg-gallery-image { flex: 1 1 0; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-bookmark-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.kg-bookmark-container { display: flex; color: inherit; text-decoration: none !important; } .kg-bookmark-content { padding: 1rem; flex: 1; }
.kg-bookmark-title { font-weight: 700; color: var(--ink); } .kg-bookmark-description { font-size: .9rem; color: var(--muted); } .kg-bookmark-metadata { font-size: .8rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; }
.kg-bookmark-thumbnail { width: 33%; position: relative; } .kg-bookmark-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.kg-callout-card { display: flex; gap: .75rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface-2); }
.kg-toggle-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.kg-button-card { display: flex; justify-content: center; } .kg-btn { display: inline-block; padding: .65rem 1.3rem; border-radius: 999px; background: var(--gold); color: var(--navy) !important; font-weight: 700; text-decoration: none !important; }
.kg-header-card, .kg-product-card { border-radius: var(--radius); }

/* Category FAQ block (placed in the tag's code injection footer; theme JS moves it above the footer) */
.gt-faq { max-width: 860px; margin: 3rem auto 0; padding-inline: 1rem; } .gt-faq h2 { font-size: 1.5rem; margin-bottom: 1rem; } .gt-faq dt { font-weight: 700; color: var(--ink); margin-top: 1rem; }

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