/* Visit Sudan — long-form article template (pilot: Meroë).
   Loaded only on pages that use the template. Logical properties throughout so
   the same rules serve LTR and RTL. */
.tpl-article .tpl-head{margin-top:20px}
.tpl-eyebrow{margin:0 0 4px;font-size:13px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--gold-deep)}
.tpl-article h1{margin:8px 0 18px}
.tpl-byline{margin:18px 0 0;font-size:14.5px;line-height:1.75;color:var(--ink-soft)}
.tpl-byline a{color:inherit;text-underline-offset:3px}
.tpl-byline time{white-space:nowrap}
.tpl-sep{display:inline-block;margin-inline:9px;color:var(--gold-deep)}

/* Quick brief: the summary AI engines and skimmers read first */
.tpl-brief{margin:28px 0 8px;padding:22px 26px;background:var(--bone);border:1px solid var(--line-2);border-inline-start:4px solid var(--gold-deep);border-radius:14px}
.tpl-brief h2{margin:0 0 14px;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-deep);font-family:inherit}
.tpl-brief dl{display:grid;gap:14px;margin:0}
.tpl-brief dl>div{display:grid;grid-template-columns:minmax(150px,200px) 1fr;gap:6px 20px}
.tpl-brief dt{font-size:15px;font-weight:700;line-height:1.6}
.tpl-brief dd{margin:0;font-size:16.5px;line-height:1.7}

.tpl-article .archive-body h3{font-size:clamp(21px,2.4vw,25px);line-height:1.4;margin:32px 0 10px}
.tpl-article .archive-body p a,.tpl-article .archive-body li a,.tpl-brief a{text-decoration:underline;text-decoration-color:var(--gold-deep);text-decoration-thickness:1px;text-underline-offset:3px}
.tpl-article .archive-body p a:hover,.tpl-article .archive-body li a:hover{text-decoration-thickness:2px}
.tpl-definition{font-size:19px!important;line-height:1.75!important;padding-inline-start:18px;border-inline-start:3px solid var(--gold)}
.tpl-note{font-size:15px!important;color:var(--ink-soft)}

/* Timeline table */
.tpl-table-wrap{overflow-x:auto;margin:18px 0;border:1px solid var(--line-2);border-radius:14px;background:var(--bone)}
.tpl-table-wrap:focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px}
.tpl-timeline{width:100%;border-collapse:collapse;font-size:15.5px;line-height:1.6}
.tpl-timeline caption{caption-side:top;text-align:start;padding:14px 18px 8px;font-size:14px;font-weight:600;color:var(--ink-soft)}
.tpl-timeline th,.tpl-timeline td{padding:12px 18px;text-align:start;vertical-align:top;border-top:1px solid var(--line)}
.tpl-timeline thead th{font-size:12.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-soft);background:var(--cream-2,#EBE2D9);border-top:0}
.tpl-timeline tbody th{white-space:nowrap;font-weight:700;color:var(--gold-deep);width:1%}
.tpl-timeline tr.tpl-now{background:rgba(212,175,55,.10)}
.tpl-timeline tr.tpl-now th{color:var(--ink)}

/* Comparison cards */
.tpl-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin:20px 0}
.tpl-card{padding:18px 20px;background:var(--bone);border:1px solid var(--line-2);border-radius:14px}
.tpl-card .tpl-card-k{margin:0;font-size:12.5px!important;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-deep)}
.tpl-article .archive-body .tpl-card h3{margin:6px 0 8px;font-size:19px}
.tpl-card p{font-size:15.5px!important;line-height:1.7!important}
.tpl-card-links{display:flex;flex-wrap:wrap;gap:8px}
.tpl-article .archive-body .tpl-card-links a{padding:6px 12px;border:1px solid var(--line-2);border-radius:20px;font-size:14px;text-decoration:none}

/* Quotes from named sources */
.tpl-quote{margin:24px 0;padding:18px 22px;border-inline-start:3px solid var(--gold);background:rgba(212,175,55,.07);border-radius:0 12px 12px 0}
html[dir=rtl] .tpl-quote{border-radius:12px 0 0 12px}
.tpl-quote blockquote{margin:0}
.tpl-quote blockquote p{margin:0!important;font-family:var(--font-display);font-size:21px!important;line-height:1.55!important}
.tpl-quote figcaption{margin-top:10px;font-size:14px;line-height:1.6;color:var(--ink-soft)}
.tpl-quote figcaption a{color:inherit}
.tpl-lang{white-space:normal}
.tpl-review li strong{color:var(--ink)}

/* Dated status log — newest first, older entries stay visible */
.tpl-log{list-style:none;margin:14px 0;padding:0!important;border-inline-start:2px solid var(--line-2)}
.tpl-log li{position:relative;margin:0 0 18px;padding-inline-start:22px}
.tpl-log li::before{content:"";position:absolute;inset-inline-start:-6px;top:7px;width:10px;height:10px;border-radius:50%;background:var(--gold-deep)}
.tpl-log-date{display:block;font-size:14px;font-weight:700;color:var(--gold-deep)}
.tpl-log li p{margin:2px 0 0!important}

/* Numbered steps */
.tpl-steps{counter-reset:tplstep;list-style:none;margin:18px 0;padding:0!important}
.tpl-steps li{counter-increment:tplstep;position:relative;margin:12px 0;padding:16px 20px;padding-inline-start:66px;background:var(--bone);border:1px solid var(--line-2);border-radius:14px}
.tpl-steps li::before{content:counter(tplstep);position:absolute;inset-inline-start:18px;top:16px;width:32px;height:32px;border-radius:50%;background:var(--ink);color:var(--bone);display:grid;place-items:center;font-size:15px;font-weight:700;line-height:1}
.tpl-steps li strong{display:block;font-size:17px;line-height:1.5}
.tpl-steps li p{margin:4px 0 0!important;font-size:16px!important}

/* FAQ */
.tpl-article .archive-body .tpl-faq h3{font-size:21px;margin:28px 0 6px}

/* Call to action */
.tpl-cta{display:flex;flex-wrap:wrap;gap:12px;margin:26px 0 8px}
.tpl-cta a{display:inline-flex;align-items:center;min-height:44px;padding:10px 20px;border:1px solid var(--ink);border-radius:30px;font-size:15px;font-weight:600;text-decoration:none;color:var(--ink)}
.tpl-cta a:first-child{background:var(--ink);color:var(--bone)}
.tpl-cta a:hover{border-color:var(--gold-deep)}

/* Arabic: no tracking or capitals, a touch more line height */
html[dir=rtl] .tpl-eyebrow,html[dir=rtl] .tpl-brief h2,html[dir=rtl] .tpl-timeline thead th,html[dir=rtl] .tpl-card .tpl-card-k{letter-spacing:0;text-transform:none}
html[dir=rtl] .tpl-eyebrow,html[dir=rtl] .tpl-brief h2{font-size:15px}
html[dir=rtl] .tpl-brief dd,html[dir=rtl] .tpl-timeline{line-height:1.85}

@media (max-width:640px){
  .tpl-brief{padding:18px}
  .tpl-brief dl>div{grid-template-columns:1fr}
  .tpl-definition{font-size:18px!important}
  .tpl-table-wrap{border:0;background:none;overflow:visible}
  .tpl-timeline,.tpl-timeline tbody,.tpl-timeline tr,.tpl-timeline th,.tpl-timeline td{display:block;width:auto}
  .tpl-timeline caption{display:block;padding:0 0 8px}
  .tpl-timeline thead{display:none}
  .tpl-timeline tr{margin:0 0 12px;padding:14px 16px;background:var(--bone);border:1px solid var(--line-2);border-radius:12px}
  .tpl-timeline tr.tpl-now{background:rgba(212,175,55,.12)}
  .tpl-timeline th,.tpl-timeline td{padding:0;border:0}
  .tpl-timeline tbody th{white-space:normal;width:auto;margin-bottom:6px}
  .tpl-timeline td{margin-top:8px}
  .tpl-timeline td::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft)}
  html[dir=rtl] .tpl-timeline td::before{letter-spacing:0;text-transform:none}
  .tpl-steps li{padding-inline-start:58px}
  .tpl-steps li::before{inset-inline-start:14px}
  .tpl-quote blockquote p{font-size:19px!important}
}
@media print{.tpl-cta,.reading-nav{display:none}.tpl-brief,.tpl-card,.tpl-steps li,.tpl-table-wrap{break-inside:avoid}}

/* =====================================================================
   Living article layer (brain): live panel, figures, update log, key dates,
   climate table, virtual visit, cite box. Works with /assets/brain-live.js
   but every block is readable without it.
   ===================================================================== */
.tpl-article [hidden]{display:none!important}
.tpl-sprite{position:absolute;width:0;height:0;overflow:hidden}
.tpl-vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.tpl-article svg.ic{width:1.15em;height:1.15em;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.2em}
.tpl-live,.tpl-ledger,.tpl-watch,.tpl-climate,.tpl-cite,.tpl-figures{scroll-margin-top:100px}
.tpl-article{--tpl-ok:#2D5642;--tpl-ok-bar:#35624A;--tpl-hot:#6F5414;--tpl-hot-bar:#B38A22;--tpl-vh:#8A3C2A;--tpl-vh-bar:#9E4733;--tpl-rain:#2B5F8A;--tpl-tint:rgba(235,226,217,.5)}

/* Buttons */
html body .tpl-article a.tpl-btn,html body .tpl-article button.tpl-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 20px;border:1px solid var(--ink);border-radius:30px;background:var(--ink);color:var(--bone);font:inherit;font-size:15px;font-weight:600;line-height:1.3;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
html body .tpl-article a.tpl-btn:hover,html body .tpl-article button.tpl-btn:hover{background:#000;border-color:var(--gold-ink)}
.tpl-article .tpl-btn-ghost{background:transparent!important;color:var(--ink)!important}
.tpl-article .tpl-btn-ghost:hover{border-color:var(--gold-ink)!important;background:rgba(212,175,55,.10)!important}
.tpl-article .tpl-btn:focus-visible,.tpl-chipbtn:focus-visible,.tpl-entry-date:focus-visible{outline:2px solid var(--gold-ink);outline-offset:3px}

/* ---------------------------------------------------------------- live panel */
.tpl-live{--sky1:#6FA8D6;--sky2:#A9CDE6;--sky3:#F1E3C2;--ground:#D2B07A;--pyr:#A9824A;--horizon:rgba(26,26,26,.14);--path:rgba(255,255,255,.75);--sun:#FFE08A;--glow:rgba(255,226,140,.38);--stars:0;
  margin:32px 0;overflow:hidden;background:var(--bone);border:1px solid var(--line-2);border-radius:18px;box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 12px 30px -18px rgba(26,26,26,.35)}
.tpl-live[data-phase=dawn]{--sky1:#2F3A6E;--sky2:#9A5F8B;--sky3:#F2B27C;--ground:#9A7358;--pyr:#6E4A4A;--path:rgba(255,255,255,.6);--sun:#FFC27A;--glow:rgba(255,184,110,.40);--stars:.55}
.tpl-live[data-phase=dusk]{--sky1:#27325F;--sky2:#7A4A7E;--sky3:#EFA86A;--ground:#8A6450;--pyr:#5A3A44;--path:rgba(255,255,255,.6);--sun:#FFB36B;--glow:rgba(255,150,90,.40);--stars:.55}
.tpl-live[data-phase=night]{--sky1:#070B1E;--sky2:#101C45;--sky3:#1B2B5E;--ground:#1E1A2E;--pyr:#161428;--horizon:rgba(255,255,255,.12);--path:rgba(255,255,255,.22);--sun:#EDEBFF;--glow:rgba(190,200,255,.25);--stars:1}
.tpl-live-scene{background:linear-gradient(180deg,var(--sky1) 0%,var(--sky2) 55%,var(--sky3) 100%);line-height:0}
.tpl-scene{display:block;width:100%;height:auto;max-height:240px;overflow:hidden}
.tpl-stars circle{fill:#fff;opacity:var(--stars)}
.tpl-sunpath{fill:none;stroke:var(--path);stroke-width:1.5;stroke-dasharray:2 5;stroke-linecap:round;vector-effect:non-scaling-stroke}
.tpl-sunglow{fill:var(--glow)}
.tpl-sundisc{fill:var(--sun)}
.tpl-ground{fill:var(--ground)}
.tpl-pyr polygon{fill:var(--pyr)}
.tpl-horizon{fill:none;stroke:var(--horizon);stroke-width:1}

.tpl-live-body{padding:22px 26px 24px}
.tpl-live-tag{display:inline-flex;align-items:center;gap:8px;margin:0!important;font-size:12.5px!important;line-height:1.2!important;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--tpl-ok)}
.tpl-dot{width:9px;height:9px;border-radius:50%;background:#2E8B57}
.tpl-article .tpl-live h2{margin:8px 0 4px;font-size:clamp(24px,3.2vw,32px)}
.tpl-article .tpl-live-sub{margin:0!important;font-size:15.5px!important;line-height:1.6!important;color:var(--ink-soft)}
.tpl-live-grid{display:grid;gap:10px;margin:18px 0 0}
.tpl-g-a{grid-template-columns:repeat(3,minmax(0,1fr))}
.tpl-g-b{grid-template-columns:repeat(3,minmax(0,1fr))}
.tpl-g-b .tpl-c-gold{grid-column:1/-1}
.tpl-g-c{grid-template-columns:repeat(2,minmax(0,1fr))}
.tpl-live.is-offline .tpl-g-a{grid-template-columns:1fr}
.tpl-cell{display:flex;flex-direction:column;gap:4px;min-width:0;padding:13px 15px;background:var(--tpl-tint);border:1px solid var(--line);border-radius:14px}
.tpl-lbl{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;line-height:1.3;color:var(--ink-soft)}
.tpl-lbl .ic{width:16px;height:16px;color:var(--gold-ink)}
.tpl-article .tpl-val{display:block;font-family:var(--font-display);font-size:clamp(24px,3.4vw,31px);font-weight:400;letter-spacing:-.01em;line-height:1.12;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.tpl-c-gold .tpl-val{font-size:clamp(20px,2.8vw,25px)}
.tpl-article .tpl-sub{display:block;font-size:13.5px;line-height:1.45;color:var(--ink-soft)}
.tpl-sub:empty{display:none}
.tpl-g-a[aria-busy=true] .tpl-cell[data-wx] .tpl-val,.tpl-g-a[aria-busy=true] .tpl-cell[data-wx] .tpl-skyval{opacity:.4}
.tpl-fc li.is-skel{opacity:.45}
.tpl-fc li.is-skel .i::before{content:"";display:block;width:26px;height:26px;border-radius:50%;background:var(--line-2)}
.tpl-fc li.is-skel .d::before,.tpl-fc li.is-skel .t b::before{content:"";display:block;height:.9em;border-radius:5px;background:var(--line-2)}
.tpl-fc li.is-skel .d::before{width:2.4em}
.tpl-fc li.is-skel .t b::before{width:2.6em;height:1em}
.tpl-article .tpl-val:empty::before,.tpl-skyval [data-live=sky]:empty::before{content:"\2014";content:"\2014" / "";color:var(--ink-soft)}
.tpl-article picture{display:block}
.tpl-skyval{display:flex!important;align-items:center;gap:9px;font-size:clamp(19px,2.4vw,23px)!important;line-height:1.2!important}
.tpl-skyicon{display:inline-flex;flex:none}
.tpl-skyicon .ic{width:30px;height:30px;color:var(--gold-ink);stroke-width:1.5}
.tpl-article .tpl-live-sunline{margin:16px 0 0!important;font-size:15.5px!important;line-height:1.6!important;color:var(--ink-soft)}
.tpl-article .tpl-live-status{margin:8px 0 0!important;padding:12px 16px;border-inline-start:3px solid var(--gold-ink);border-radius:4px 12px 12px 4px;background:rgba(212,175,55,.13);font-size:15.5px!important;line-height:1.65!important}
html[dir=rtl] .tpl-live-status{border-radius:12px 4px 4px 12px}
.tpl-live-status:empty{display:none}
.tpl-live-fc{margin:20px 0 0}
.tpl-article .tpl-live .tpl-live-h3{margin:0 0 10px;font-family:inherit;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;line-height:1.4;color:var(--gold-ink)}
.tpl-article .tpl-fc{list-style:none;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:0!important;padding:0!important}
.tpl-article .tpl-fc li{display:flex;flex-direction:column;align-items:center;gap:5px;margin:0!important;padding:11px 4px 10px;text-align:center;font-size:14px!important;line-height:1.3!important;background:var(--tpl-tint);border:1px solid var(--line);border-radius:12px}
.tpl-fc .d{font-size:12.5px;font-weight:700;color:var(--ink-soft);text-transform:capitalize}
.tpl-fc .i{display:inline-flex}
.tpl-fc .i .ic{width:26px;height:26px;color:var(--gold-ink);stroke-width:1.5}
.tpl-fc .t{display:flex;flex-direction:column;align-items:center;line-height:1.25}
.tpl-fc .t b{font-size:17px;font-weight:700;color:var(--ink)}
.tpl-fc .lo{color:var(--ink-soft)}
.tpl-fc .r{min-height:1.3em;font-size:12.5px;font-weight:600;color:var(--tpl-rain)}
.tpl-article .tpl-live-src{margin:14px 0 0!important;font-size:13px!important;line-height:1.55!important;color:var(--ink-soft)}
.tpl-article .tpl-live-note,.tpl-article .tpl-live-nojs{margin:14px 0 0!important;padding-top:14px;border-top:1px solid var(--line);font-size:14px!important;line-height:1.65!important;color:var(--ink-soft)}
.tpl-live-note a{color:var(--ink);font-weight:600}
.tpl-live:not(.is-live) .tpl-live-tag,.tpl-live.is-offline .tpl-live-tag{display:none}
@media (prefers-reduced-motion:no-preference){
  .tpl-live.is-live .tpl-dot{animation:tplPulse 2.4s ease-out infinite}
  .tpl-live[data-phase=night] .tpl-stars circle:nth-child(odd),.tpl-live[data-phase=dawn] .tpl-stars circle:nth-child(odd),.tpl-live[data-phase=dusk] .tpl-stars circle:nth-child(odd){animation:tplTwinkle 4.5s ease-in-out infinite}
  .tpl-stars circle:nth-child(3n){animation-delay:1.3s!important}
  .tpl-stars circle:nth-child(4n){animation-delay:2.6s!important}
}
@keyframes tplPulse{0%{box-shadow:0 0 0 0 rgba(46,139,87,.5)}70%{box-shadow:0 0 0 8px rgba(46,139,87,0)}100%{box-shadow:0 0 0 0 rgba(46,139,87,0)}}
@keyframes tplTwinkle{0%,100%{opacity:var(--stars)}50%{opacity:.25}}

/* ---------------------------------------------------------------- figures */
.tpl-figures{margin:30px 0}
.tpl-article .tpl-fig-grid{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:14px 0!important;padding:0!important}
.tpl-article .tpl-fig-grid li{display:flex;flex-direction:column;gap:8px;margin:0!important;padding:18px 18px 16px;font-size:15px!important;line-height:1.5!important;background:var(--bone);border:1px solid var(--line-2);border-top:3px solid var(--gold);border-radius:14px}
.tpl-article .tpl-fig-v{display:block;font-family:var(--font-display);font-size:clamp(32px,4.4vw,42px);font-weight:400;line-height:1;letter-spacing:-.02em;color:var(--ink);unicode-bidi:isolate}
html[dir=rtl] .tpl-fig-v{text-align:right}
.tpl-fig-l{display:block;font-size:15.5px;line-height:1.5}
.tpl-article .tpl-fig-n{display:block;margin-top:auto;font-size:12.5px;line-height:1.5;color:var(--ink-soft)}
.tpl-article .tpl-fig-n a{color:inherit}

/* ---------------------------------------------------------------- update log */
.tpl-ledger{margin:34px 0}
.tpl-ledger-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;margin:10px 0 0!important;font-size:14px!important;line-height:1.7!important;color:var(--ink-soft)}
.tpl-ledger-meta a{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:underline;text-decoration-color:var(--gold-ink);text-underline-offset:3px}
.tpl-filter{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px}
.tpl-chipbtn{min-height:44px;min-width:44px;padding:8px 16px;border:1px solid var(--line-2);border-radius:999px;background:var(--bone);color:var(--ink);font:inherit;font-size:14px;font-weight:600;line-height:1.2;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.tpl-chipbtn:hover{border-color:var(--gold-ink)}
.tpl-chipbtn[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--bone)}
.tpl-article .tpl-ledger-status{margin:6px 0 0!important;font-size:14px!important;color:var(--ink-soft)}
.tpl-article .tpl-ledger-list{list-style:none;margin:18px 0 0!important;padding:0!important;border-inline-start:2px solid var(--line-2)}
.tpl-article .tpl-entry{position:relative;margin:0 0 22px!important;padding:0 0 0 0;padding-inline-start:24px;scroll-margin-top:100px;font-size:inherit}
.tpl-entry::before{content:"";position:absolute;inset-inline-start:-7px;top:6px;width:12px;height:12px;border-radius:50%;background:var(--gold-ink);box-shadow:0 0 0 3px var(--bone)}
.tpl-entry.tpl-k-travel::before{background:var(--terracotta-ink,#9E4733)}
.tpl-entry.tpl-k-site::before{background:var(--ink)}
.tpl-entry.tpl-k-correction::before{background:var(--tpl-vh-bar)}
.tpl-entry:target{margin-inline-end:-10px;padding:10px 10px 10px 24px;padding-inline:24px 10px;background:rgba(212,175,55,.10);border-radius:12px;outline:2px solid rgba(212,175,55,.55);outline-offset:0}
.tpl-entry-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 6px}
.tpl-entry-date{font-size:15px;font-weight:700;line-height:1.4;color:var(--ink);text-decoration:none}
.tpl-entry-date:hover{text-decoration:underline;text-decoration-color:var(--gold-ink);text-underline-offset:3px}
.tpl-kind{padding:3px 10px;border-radius:999px;background:rgba(212,175,55,.2);color:var(--tpl-hot);font-size:12px;font-weight:700;letter-spacing:.05em;line-height:1.35;text-transform:uppercase}
.tpl-k-travel .tpl-kind{background:rgba(158,71,51,.12);color:var(--tpl-vh)}
.tpl-k-site .tpl-kind{background:rgba(26,26,26,.07);color:var(--ink)}
.tpl-k-correction .tpl-kind{background:var(--tpl-vh-bar);color:#fff}
.tpl-new{padding:2px 9px;border-radius:999px;background:var(--gold);color:var(--ink);font-size:12px;font-weight:800;letter-spacing:.06em;line-height:1.5;text-transform:uppercase}
.tpl-article .tpl-entry-text{margin:0!important;font-size:16.5px!important;line-height:1.72!important}
.tpl-article .tpl-corr-note{margin:6px 0 0!important;font-size:14px!important;line-height:1.6!important;color:var(--terracotta-ink,#9E4733);font-weight:600}
.tpl-article .tpl-ledger-src{margin:7px 0 0!important;font-size:13.5px!important;line-height:1.65!important;color:var(--ink-soft)}
.tpl-ledger-src>span{font-weight:700}
.tpl-article .tpl-ledger-src a{color:inherit}

/* ---------------------------------------------------------------- key dates */
.tpl-watch{margin:34px 0}
.tpl-article .tpl-watch-list{list-style:none;display:grid;gap:14px;margin:16px 0!important;padding:0!important}
.tpl-article .tpl-watch-item{display:grid;grid-template-columns:78px minmax(0,1fr);gap:18px;margin:0!important;padding:16px 18px;font-size:inherit;background:var(--bone);border:1px solid var(--line-2);border-radius:16px;scroll-margin-top:100px}
.tpl-watch-item.is-now{border-color:var(--gold-ink);box-shadow:0 0 0 3px rgba(212,175,55,.2)}
.tpl-watch-item.is-past{opacity:.72}
.tpl-watch-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;align-self:start;padding:10px 4px;border-radius:12px;background:var(--ink);color:var(--bone);text-align:center}
.tpl-watch-tile .m{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-lit,#F2CE6E)}
.tpl-watch-tile .d{font-family:var(--font-display);font-size:34px;line-height:1.05}
.tpl-watch-tile .y{font-size:12px;opacity:.78}
.tpl-article .tpl-watch-when{margin:0!important;font-size:14px!important;line-height:1.5!important;font-weight:700;color:var(--gold-ink)}
.tpl-article .tpl-watch-body h4{margin:3px 0 6px;font-family:var(--font-display);font-size:clamp(18px,2.2vw,21px);font-weight:400;letter-spacing:0;line-height:1.35;color:var(--ink)}
html[dir=rtl] .tpl-watch-body h4{font-family:var(--font-display-ar)}
.tpl-article .tpl-watch-body>p:not(.tpl-watch-when):not(.tpl-watch-meta){margin:0!important;font-size:15.5px!important;line-height:1.7!important}
.tpl-article .tpl-watch-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:12px 0 0!important;font-size:13.5px!important;line-height:1.55!important;color:var(--ink-soft)}
.tpl-count{display:inline-flex;align-items:center;gap:7px;padding:5px 12px;border-radius:999px;background:rgba(212,175,55,.18);color:var(--tpl-hot);font-size:14px;font-weight:700}
.tpl-watch-item.is-now .tpl-count{background:var(--gold);color:var(--ink)}
.tpl-watch-src a{color:inherit}

/* ---------------------------------------------------------------- climate */
.tpl-climate{margin:38px 0}
.tpl-article .tpl-clim-points{list-style:none;display:grid;gap:10px;margin:16px 0!important;padding:0!important}
.tpl-article .tpl-clim-points li{margin:0!important;padding:13px 16px;font-size:16px!important;line-height:1.65!important;background:var(--bone);border:1px solid var(--line-2);border-inline-start:4px solid var(--gold-ink);border-radius:12px}
.tpl-clim-points li:nth-child(1){border-inline-start-color:var(--tpl-ok-bar)}
.tpl-clim-points li:nth-child(2){border-inline-start-color:var(--tpl-vh-bar)}
.tpl-clim-points li:nth-child(3){border-inline-start-color:var(--tpl-rain)}
.tpl-clim{width:100%;border-collapse:collapse;font-size:15.5px;line-height:1.5;font-variant-numeric:tabular-nums}
.tpl-clim caption{caption-side:top;text-align:start;padding:14px 18px 8px;font-size:14px;font-weight:600;color:var(--ink-soft)}
.tpl-clim th,.tpl-clim td{padding:9px 14px;text-align:start;vertical-align:middle;border-top:1px solid var(--line)}
.tpl-clim thead th{font-size:12.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-soft);background:var(--cream-2,#EBE2D9);border-top:0}
.tpl-clim tbody th,.tpl-clim tfoot th{font-weight:700;white-space:nowrap}
.tpl-clim td.num{text-align:end;white-space:nowrap}
.tpl-clim thead th:nth-child(3),.tpl-clim thead th:nth-child(4),.tpl-clim thead th:nth-child(5){text-align:end}
.tpl-clim td.tpl-clim-bar{width:30%;min-width:130px}
.tpl-clim-bar svg{display:block;width:100%;height:14px;overflow:visible}
.tpl-clim-bar .g{stroke:var(--line-2);stroke-width:1;vector-effect:non-scaling-stroke}
.tpl-clim-bar .b-ok{fill:var(--tpl-ok-bar)}
.tpl-clim-bar .b-hot{fill:var(--tpl-hot-bar)}
.tpl-clim-bar .b-vh{fill:var(--tpl-vh-bar)}
.tpl-clim tr.is-now{background:rgba(212,175,55,.14)}
.tpl-clim tr.is-now>th{box-shadow:inset 3px 0 0 var(--gold-ink)}
html[dir=rtl] .tpl-clim tr.is-now>th{box-shadow:inset -3px 0 0 var(--gold-ink)}
.tpl-clim tfoot th,.tpl-clim tfoot td{background:var(--cream-2,#EBE2D9);font-weight:700;border-top:2px solid var(--line-2)}
.tpl-chip{display:inline-block;padding:3px 11px;border-radius:999px;font-size:13px;font-weight:700;line-height:1.4;white-space:nowrap}
.tpl-chip-ok{background:rgba(53,98,74,.13);color:var(--tpl-ok)}
.tpl-chip-hot{background:rgba(212,175,55,.2);color:var(--tpl-hot)}
.tpl-chip-vh{background:rgba(158,71,51,.12);color:var(--tpl-vh)}
.tpl-clim-src{font-size:13.5px!important}

/* ---------------------------------------------------------------- virtual visit + cite */
.tpl-virtual{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:start;margin:30px 0;padding:22px 24px;background:linear-gradient(135deg,rgba(212,175,55,.13),var(--tpl-tint));border:1px solid var(--line-2);border-radius:16px}
.tpl-article svg.tpl-virtual-ic{width:42px;height:42px;margin-top:2px;color:var(--gold-ink);stroke-width:1.4}
.tpl-article .tpl-virtual h3{margin:4px 0 8px}
.tpl-virtual p{margin-block:8px}
.tpl-article .tpl-virtual .tpl-card-k{margin:0;font-size:12.5px!important;font-weight:700;letter-spacing:.08em;text-transform:uppercase;line-height:1.4!important;color:var(--gold-ink)}
html[dir=rtl] .tpl-virtual .tpl-card-k{letter-spacing:0;text-transform:none;font-size:14px!important}
.tpl-cite{margin:36px 0;padding:22px 24px;background:var(--bone);border:1px solid var(--line-2);border-radius:16px}
.tpl-article .tpl-cite h2{margin-top:0}
.tpl-article .tpl-cite-text{margin:14px 0!important;padding:14px 16px;background:var(--tpl-tint);border-inline-start:3px solid var(--gold);border-radius:8px;font-size:15px!important;line-height:1.7!important;overflow-wrap:anywhere}
.tpl-cite-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 14px}
.tpl-copied{min-width:7ch;font-size:14px;font-weight:700;color:var(--tpl-ok)}
.tpl-cite .tpl-note a{display:inline-flex;align-items:center;gap:6px;color:inherit}

/* Arabic: no tracking or capitals in the new components either */
html[dir=rtl] .tpl-live-tag,html[dir=rtl] .tpl-lbl,html[dir=rtl] .tpl-live-h3,html[dir=rtl] .tpl-kind,html[dir=rtl] .tpl-new,html[dir=rtl] .tpl-watch-tile .m,html[dir=rtl] .tpl-clim thead th,html[dir=rtl] .tpl-fc .d{letter-spacing:0;text-transform:none}
html[dir=rtl] .tpl-lbl,html[dir=rtl] .tpl-live-tag{font-size:13.5px}
html[dir=rtl] .tpl-kind,html[dir=rtl] .tpl-new{font-size:13px}

@media (max-width:760px){
  .tpl-article .tpl-fc{grid-template-columns:1fr;gap:6px}
  .tpl-article .tpl-fc li{display:grid;grid-template-columns:76px 34px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 14px;text-align:start}
  .tpl-fc .t{flex-direction:row;align-items:baseline;gap:9px}
  .tpl-fc .r{min-height:0}
}
@media (max-width:640px){
  .tpl-live{margin-inline:-4px;border-radius:16px}
  .tpl-live-body{padding:18px 16px 20px}
  .tpl-g-a{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tpl-g-b{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tpl-cell{padding:11px 12px}
  .tpl-lbl{font-size:12px}
  .tpl-g-b .tpl-lbl span{overflow-wrap:anywhere}
  /* two per row, but a long value (e.g. an area in hectares, written in Arabic) that cannot fit takes a row of its own instead of widening the page */
  .tpl-article .tpl-fig-grid{display:flex;flex-wrap:wrap;gap:10px}
  .tpl-article .tpl-fig-grid li{flex:1 1 calc(50% - 6px);padding:14px 14px 12px}
  .tpl-fig-l{font-size:14.5px}
  .tpl-article .tpl-entry-text{font-size:16px!important}
  .tpl-article .tpl-watch-item{grid-template-columns:1fr;gap:12px;padding:14px 16px}
  .tpl-watch-tile{flex-direction:row;justify-content:flex-start;gap:8px;padding:8px 14px;justify-self:start}
  .tpl-watch-tile .d{font-size:24px}
  .tpl-virtual{grid-template-columns:1fr;gap:10px;padding:18px}
  .tpl-cite{padding:18px}
  .tpl-cite-actions .tpl-btn{flex:1 1 100%}
  /* climate table becomes one card per month */
  .tpl-climate .tpl-table-wrap{border:0;background:none;overflow:visible}
  .tpl-clim,.tpl-clim tbody,.tpl-clim tfoot{display:block;width:auto}
  .tpl-clim caption{display:block;padding:0 0 10px}
  .tpl-clim thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%)}
  .tpl-clim tr.tpl-m,.tpl-clim tr.tpl-year{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"m m v" "bar bar bar" "h l r";gap:8px 10px;margin:0 0 10px;padding:12px 14px;background:var(--bone);border:1px solid var(--line-2);border-radius:12px}
  .tpl-clim tr.tpl-year{grid-template-areas:"m m m" "h l r";background:var(--cream-2,#EBE2D9)}
  .tpl-clim tr.tpl-m.is-now{background:rgba(212,175,55,.16);border-color:var(--gold-ink)}
  .tpl-clim tr.is-now>th{box-shadow:none}
  .tpl-clim th,.tpl-clim td{display:block;padding:0;border:0}
  .tpl-clim tbody th,.tpl-clim tfoot th{grid-area:m;align-self:center;font-size:17px}
  .tpl-clim td.tpl-clim-v{grid-area:v;justify-self:end;background:none!important}
  .tpl-clim td.tpl-clim-bar{grid-area:bar;width:auto;min-width:0}
  .tpl-clim td.num:nth-child(3){grid-area:h}
  .tpl-clim td.num:nth-child(4){grid-area:l}
  .tpl-clim td.num:nth-child(5){grid-area:r}
  .tpl-clim td.num{text-align:start;font-size:16px;font-weight:600}
  .tpl-clim td.num::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft)}
  .tpl-clim td.num::after{content:" " attr(data-unit);font-size:13px;font-weight:400;color:var(--ink-soft)}
  html[dir=rtl] .tpl-clim td.num::before{letter-spacing:0;text-transform:none;font-size:12.5px}
  .tpl-clim tfoot th,.tpl-clim tfoot td{background:none;border:0}
  .tpl-clim td[aria-hidden=true]:empty,.tpl-clim td.tpl-clim-v:empty{display:none}
}
@media (max-width:380px){
  .tpl-g-b{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tpl-article .tpl-fig-grid li{flex-basis:100%}
}
@media (forced-colors:active){
  .tpl-chip,.tpl-kind,.tpl-new,.tpl-count,.tpl-cell,.tpl-fc li{border:1px solid CanvasText}
  .tpl-clim-bar .b{fill:CanvasText}.tpl-sunpath{stroke:CanvasText}
}
@media print{
  .tpl-live,.tpl-filter,.tpl-ledger-status,.tpl-cite-actions,.tpl-virtual .tpl-btn{display:none!important}
  .tpl-entry[hidden]{display:block!important}
  .tpl-ledger-list,.tpl-watch-list,.tpl-fig-grid{display:block}
  .tpl-entry,.tpl-watch-item,.tpl-fig-grid li,.tpl-clim tr,.tpl-clim-points li,.tpl-virtual,.tpl-cite{break-inside:avoid}
  .tpl-watch-tile{background:none;color:#000;border:1px solid #000}.tpl-watch-tile .m{color:#000}
  .tpl-ledger-src a::after,.tpl-fig-n a::after{content:" (" attr(href) ")";font-size:11px;word-break:break-all}
}

/* Photos: the credit under the hero picture and the "in pictures" gallery (see photo_render.py).
   Space is reserved by width/height attributes plus aspect-ratio, so nothing shifts while images load. */
.tpl-hero{margin:32px 0}
.tpl-hero .archive-photo{margin:0}
.tpl-credit{display:block;font-size:12.5px;line-height:1.55;color:var(--ink-soft)}
.tpl-credit a{color:inherit;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:2px}
.tpl-credit a:hover,.tpl-credit a:focus-visible{text-decoration-color:currentColor}
.tpl-hero figcaption{margin-top:8px;text-align:end}
.tpl-gallery .tpl-note{margin-bottom:16px}
.tpl-shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px;margin:18px 0}
.tpl-shot{margin:18px 0}
.tpl-shots .tpl-shot{margin:0}
.tpl-shot picture{display:block}
.tpl-shot img{display:block;width:100%;height:auto;border-radius:14px;background:var(--bone)}
.tpl-shots .tpl-shot img{aspect-ratio:4/3;object-fit:cover}
.tpl-shot--wide img{aspect-ratio:16/9;object-fit:cover}
.tpl-shot figcaption{display:flex;flex-direction:column;gap:5px;margin-top:10px}
.tpl-cap{font-size:15.5px;line-height:1.6;color:var(--ink)}
.tpl-shot-media:focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px;border-radius:14px}
.tpl-pano-hint{display:none;font-size:12.5px;line-height:1.4;color:var(--ink-soft)}
@media (max-width:640px){
  .tpl-shots{grid-template-columns:1fr;gap:20px}
  .tpl-hero{margin:24px 0}
  .tpl-shot--pano .tpl-shot-media{overflow-x:auto;border-radius:14px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .tpl-shot--pano img{width:auto;max-width:none;height:220px;border-radius:0}
  .tpl-pano-hint{display:block}
}
@media (forced-colors:active){.tpl-shot img{border:1px solid CanvasText}}

/* Live panel, sunrise / sunset / solar noon tiles: one tile per row on phones and small tablets, so long labels
   (German "Sonnenaufgang", "Sonnenhöchststand") are never cut in the middle of a word. */
@media (max-width:760px){
  .tpl-g-b{grid-template-columns:1fr}
  .tpl-g-b .tpl-cell{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:2px}
  .tpl-g-b .tpl-lbl{grid-column:1;overflow-wrap:normal}
  .tpl-g-b .tpl-lbl span{overflow-wrap:normal}
  .tpl-g-b .tpl-val{grid-column:2;text-align:end}
  .tpl-g-b .tpl-sub{grid-column:1/-1}
}

/* Live-panel scene: extra layers (hazy hills, shaded faces, masonry courses, dunes, Nile, palms) per time of day */
.tpl-live{--far:#C7B38C;--pyr2:#8C6A38;--course:rgba(60,40,10,.28);--dune1:#DDBE8A;--dune2:#CBA66C;--crest:rgba(255,243,208,.62);--tree:#5C5A2E;--nile:#7FB1C6;--palm:#3E5A32}
.tpl-live[data-phase=dawn]{--far:#8E6C66;--pyr2:#523A40;--course:rgba(20,10,22,.32);--dune1:#B38968;--dune2:#8C6750;--crest:rgba(255,205,155,.38);--tree:#3A3042;--nile:#6B7098;--palm:#2B3040}
.tpl-live[data-phase=dusk]{--far:#7D5C5E;--pyr2:#432C37;--course:rgba(10,5,16,.34);--dune1:#9E725A;--dune2:#7B5648;--crest:rgba(255,170,120,.32);--tree:#33283A;--nile:#6A5E8C;--palm:#2A2638}
.tpl-live[data-phase=night]{--far:#181B36;--pyr2:#0E0D1D;--course:rgba(255,255,255,.07);--dune1:#262238;--dune2:#191627;--crest:rgba(160,170,255,.12);--tree:#0D0C1A;--nile:#0F1B3D;--palm:#0B0F1C}
.tpl-far{fill:var(--far)}
.tpl-far polygon{fill:var(--far)}
.tpl-far polygon.s{fill:var(--far);opacity:.8}
.tpl-pyr polygon.s,.tpl-pyr rect.s{fill:var(--pyr2)}
.tpl-pyr .c{fill:none;stroke:var(--course);stroke-width:.8;stroke-linejoin:round}
.tpl-temple rect{fill:var(--pyr2)}
.tpl-dune1{fill:var(--dune1)}
.tpl-dune2{fill:var(--dune2)}
.tpl-crest{fill:none;stroke:var(--crest);stroke-width:1;vector-effect:non-scaling-stroke}
.tpl-ripple{fill:none;stroke:var(--crest);stroke-width:.8;opacity:.7;vector-effect:non-scaling-stroke}
.tpl-tree path{fill:none;stroke:var(--tree);stroke-width:1.2;stroke-linecap:round}
.tpl-tree ellipse{fill:var(--tree)}
.tpl-nile{fill:var(--nile)}
.tpl-palms path{fill:none;stroke:var(--palm);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@media (forced-colors:active){.tpl-far,.tpl-dune1,.tpl-dune2,.tpl-nile,.tpl-pyr polygon{fill:CanvasText}.tpl-crest,.tpl-ripple{stroke:CanvasText}}
