  :root{
    --navy:#16305C; --navy-deep:#0D2142; --gold:#F0BC1E; --gold-deep:#B9860E;
    --cream:#F7F5F0; --paper:#FFFFFF; --ink:#1B2230; --slate:#5B6472; --line:#E3DECF; --danger:#B3402E;
    --radius:2px;
  }
  html[data-theme="dark"]{
    --navy:#DCE4F2; --navy-deep:#0A1B33; --gold:#F3C536; --gold-deep:#E8B923;
    --cream:#0D1B30; --paper:#122845; --ink:#EDEAE0; --slate:#A7B0C2; --line:#26395C;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{background:var(--cream); color:var(--ink); font-family:'Inter',sans-serif; line-height:1.5; transition:background .3s ease, color .3s ease;}
  a{color:inherit; text-decoration:none; cursor:pointer;}
  img{max-width:100%; display:block;}
  .wrap{max-width:1240px; margin:0 auto; padding:0 28px;}
  .wrap-narrow{max-width:760px; margin:0 auto; padding:0 28px;}
  .wrap-admin{max-width:820px; margin:0 auto; padding:40px 28px 100px;}
  .eyebrow{font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--navy); display:inline-flex; align-items:center; gap:7px;}
  .bolt{width:11px; height:11px; flex-shrink:0;}
  .bolt path{fill:var(--gold-deep);}
  html[data-theme="dark"] .bolt path{fill:var(--gold);}

  /* Header */
  header{position:sticky; top:0; z-index:50; background:var(--paper); border-bottom:1px solid var(--line);}
  .header-inner{display:flex; align-items:center; justify-content:space-between; padding:16px 28px; gap:24px;}
  .brand{display:flex; align-items:center;}
  .brand-badge{display:flex; align-items:center; gap:16px;}
  .brand-mark-icon{width:68px; height:68px; flex-shrink:0;}
  .brand-ring{fill:var(--gold);}
  .brand-bolt-icon{fill:var(--navy);}
  .brand-word{display:flex; flex-direction:column; line-height:1;}
  .brand-eyebrow{font-family:'IBM Plex Mono',monospace; font-size:12px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--navy);}
  .brand-name{font-family:'Fraunces',serif; font-weight:700; font-size:32px; letter-spacing:-.01em; color:var(--ink); margin-top:3px;}
  .brand-rule{position:relative; display:block; height:3px; background:var(--gold); border-radius:2px; margin-top:8px;}
  .brand-rule::after{content:""; position:absolute; right:-7px; top:50%; transform:translateY(-50%); width:7px; height:7px; border-radius:50%; background:var(--gold);}
  nav{display:flex; align-items:center; gap:30px;}
  .nav-links{display:flex; gap:26px;}
  .nav-links a{font-size:14px; font-weight:600; letter-spacing:.02em; color:var(--ink); position:relative; padding:4px 0;}
  .nav-links a::after{content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background:var(--gold); transition:width .2s ease;}
  .nav-links a:hover::after{width:100%;}
  .header-tools{display:flex; align-items:center; gap:16px;}
  .theme-toggle{width:38px; height:38px; border-radius:50%; border:1px solid var(--line); background:transparent; cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--ink); transition:border-color .2s ease;}
  .theme-toggle:hover{border-color:var(--gold-deep);}
  .theme-toggle svg{width:17px; height:17px;}
  .theme-toggle .moon{display:none;}
  html[data-theme="dark"] .theme-toggle .sun{display:none;}
  html[data-theme="dark"] .theme-toggle .moon{display:block;}

  /* Ticker */
  .ticker-bar{background:var(--navy); color:var(--cream); border-bottom:2px solid var(--gold); display:flex; align-items:stretch;}
  html[data-theme="dark"] .ticker-bar{color:var(--navy-deep);}
  .live-tag{flex:0 0 auto; font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.1em; display:flex; align-items:center; gap:7px; padding:9px 18px; text-transform:uppercase; font-weight:600; border-right:1px solid rgba(255,255,255,.18); white-space:nowrap;}
  .live-dot{width:7px; height:7px; border-radius:50%; background:var(--gold); flex-shrink:0; animation:pulse 1.8s infinite ease-in-out;}
  @keyframes pulse{0%,100%{opacity:1;} 50%{opacity:.35;}}
  .ticker-viewport{flex:1 1 auto; position:relative; overflow:hidden; min-width:0;}
  .ticker-track{position:absolute; top:0; left:0; display:flex; align-items:center; height:100%; gap:52px; padding-left:24px; white-space:nowrap; animation:scroll 38s linear infinite;}
  .ticker-bar:hover .ticker-track{animation-play-state:paused;}
  @keyframes scroll{from{transform:translateX(0);} to{transform:translateX(-50%);}}
  .ticker-item{font-family:'IBM Plex Mono',monospace; font-size:12.5px; display:inline-flex; gap:10px; align-items:center; cursor:pointer;}
  .ticker-item .t-time{opacity:.65;}
  .ticker-item:hover{text-decoration:underline; text-decoration-color:var(--gold);}
  @media (prefers-reduced-motion: reduce){ .ticker-track{animation:none; position:static; padding:9px 18px;} .live-dot{animation:none;} }

  /* Hero */
  .hero{padding:52px 0 60px; border-bottom:1px solid var(--line); position:relative; overflow:hidden;}
  .hero .wrap{position:relative; z-index:1;}

  /* Page-wide EU-stars watermark — fixed behind everything, deliberately stretched
     to fill the viewport (same distort-to-fill technique as the hero bolt). It only
     shows through sections that don't have their own solid background (hero, card
     grids) since header/ticker/newsletter/footer paint over it. */
  .page-watermark{position:fixed; inset:0; width:100vw; height:100vh; z-index:-1; opacity:.05; pointer-events:none;}
  .page-watermark{fill:var(--navy);}
  html[data-theme="dark"] .page-watermark{opacity:.09; fill:var(--gold);}
  body{position:relative;}
  .hero-grid{display:grid; grid-template-columns:1fr; gap:0; max-width:820px;}
  .hero h1{font-family:'Fraunces',serif; font-weight:600; font-size:clamp(30px,4vw,46px); line-height:1.08; margin:14px 0 16px; letter-spacing:-.01em;}
  .hero h1 a:hover{text-decoration:underline; text-decoration-color:var(--gold); text-decoration-thickness:3px; text-underline-offset:5px;}
  .hero .dek{font-size:17px; color:var(--slate); margin-bottom:18px;}
  .byline{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--slate); display:flex; gap:14px; flex-wrap:wrap; margin-bottom:24px;}
  .byline b{color:var(--ink); font-weight:500;}
  .hero-body{font-size:16.5px; line-height:1.75; max-width:70ch;}
  .hero-body p{margin-bottom:20px;}
  .hero-body p:first-of-type::first-letter{font-family:'Fraunces',serif; font-size:58px; font-weight:600; float:left; line-height:.85; padding:6px 8px 0 0; color:var(--navy);}
  .hero-body a, .article-body a{color:var(--navy); text-decoration:underline; text-decoration-color:var(--gold-deep); text-underline-offset:2px;}
  .hero-body a:hover, .article-body a:hover{color:var(--gold-deep);}
  html[data-theme="dark"] .hero-body a, html[data-theme="dark"] .article-body a{color:var(--gold);}

  /* Sections / cards */
  .section{padding:58px 0;}
  .section + .section{border-top:1px solid var(--line);}
  .section-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:30px;}
  .section-head h2{font-family:'Fraunces',serif; font-weight:600; font-size:28px; letter-spacing:-.01em; display:flex; align-items:center; gap:10px;}
  .section-head h2 .dot{width:7px; height:7px; border-radius:50%; background:var(--gold);}
  .card-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:32px;}
  .card{display:flex; flex-direction:column;}
  .card h3{font-family:'Fraunces',serif; font-size:20px; font-weight:600; line-height:1.28; margin-bottom:10px;}
  .card h3 a:hover{text-decoration:underline; text-decoration-color:var(--gold); text-decoration-thickness:2px; text-underline-offset:4px;}
  .card p{font-size:14px; color:var(--slate); margin-bottom:12px;}
  .card .byline{font-size:11px; margin-bottom:0;}
  .empty-state{grid-column:1 / -1; border:1px dashed var(--line); padding:36px 28px; text-align:center; border-radius:var(--radius);}
  .empty-state p{font-size:14px; color:var(--slate); margin-bottom:4px;}
  .empty-state span{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--gold-deep); text-transform:uppercase; letter-spacing:.08em;}

  /* Article view */
  .wrap-article{max-width:1040px; margin:0 auto; padding:0 28px; display:grid; grid-template-columns:1fr 220px; gap:56px; align-items:start;}
  .wrap-article.no-toc{grid-template-columns:1fr;}
  .wrap-article.no-toc .article-toc{display:none;}
  .article-eyebrow{margin-top:40px;}
  .article-h1{font-family:'Fraunces',serif; font-weight:600; font-size:clamp(28px,4.2vw,44px); line-height:1.1; margin:14px 0 18px; letter-spacing:-.01em;}
  .article-dek{font-size:18px; color:var(--slate); margin-bottom:20px;}
  .article-byline{padding-bottom:26px; border-bottom:1px solid var(--line); margin-bottom:32px;}
  .article-body{font-size:17px; line-height:1.8; padding-bottom:70px;}
  .article-body p{margin-bottom:22px;}
  .article-body p:first-of-type::first-letter{font-family:'Fraunces',serif; font-size:60px; font-weight:600; float:left; line-height:.85; padding:6px 8px 0 0; color:var(--navy);}
  .article-body h2{margin:48px 0 18px; font-family:'Fraunces',serif; font-weight:600; font-size:clamp(24px,3.6vw,32px); line-height:1.18; letter-spacing:-.01em;}
  .article-body h2:first-child{margin-top:0;}
  .back-link{font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--slate); display:inline-block; margin-top:32px;}
  .back-link:hover{color:var(--gold-deep);}

  /* Article table of contents */
  .article-toc{display:block; position:sticky; top:88px; border-left:2px solid var(--line); padding-left:20px; max-height:calc(100vh - 120px); overflow-y:auto;}
  .article-toc h4{font-family:'IBM Plex Mono',monospace; font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--slate); margin-bottom:12px;}
  .article-toc a{display:block; font-size:13.5px; line-height:1.45; color:var(--slate); padding:7px 0 7px 14px; margin-left:-16px; border-left:2px solid transparent; transition:border-color .15s ease, color .15s ease;}
  .article-toc a:hover{color:var(--ink);}
  .article-toc a.active{color:var(--ink); font-weight:600; border-left:2px solid var(--gold);}
  @media (max-width:980px){ .wrap-article{grid-template-columns:1fr;} .article-toc{display:none;} }

  /* Contact page */
  .contact-grid{display:grid; grid-template-columns:1fr; max-width:360px; gap:24px; margin:12px 0 36px;}
  .contact-card{border:1px solid var(--line); border-radius:var(--radius); padding:22px 24px; background:var(--paper);}
  .contact-card h4{font-family:'IBM Plex Mono',monospace; font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--gold-deep); margin-bottom:8px;}
  .contact-card p{font-size:13.5px; color:var(--slate); margin-bottom:10px;}
  .contact-card a{font-weight:600; color:var(--navy); text-decoration:underline; text-decoration-color:var(--gold-deep); text-underline-offset:2px;}
  html[data-theme="dark"] .contact-card a{color:var(--gold);}

  /* Newsletter */
  .newsletter{background:var(--navy); color:var(--cream); padding:56px 0;}
  html[data-theme="dark"] .newsletter{color:var(--navy-deep);}
  .newsletter-inner{display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap;}
  .newsletter h2{font-family:'Fraunces',serif; font-size:26px; font-weight:600; margin-bottom:8px;}
  .newsletter p{opacity:.8; font-size:14px; max-width:44ch;}
  .newsletter-form-wrap{flex-shrink:0;}
  .newsletter-form{display:flex; gap:0;}
  .newsletter-form input{border:1px solid rgba(255,255,255,.3); background:transparent; color:inherit; padding:13px 16px; font-family:'Inter',sans-serif; font-size:14px; width:250px;}
  html[data-theme="dark"] .newsletter-form input{border-color:rgba(10,27,51,.3);}
  .newsletter-form input::placeholder{color:currentColor; opacity:.55;}
  .newsletter-form button{background:var(--gold); color:var(--navy-deep); border:none; padding:0 22px; font-weight:700; font-size:13px; letter-spacing:.03em; text-transform:uppercase; cursor:pointer;}
  .newsletter-form button:hover{background:var(--gold-deep);}
  .newsletter-hint{font-size:11.5px; opacity:.6; margin-top:8px;}
  .newsletter-hint a{text-decoration:underline; text-decoration-color:currentColor;}
  .newsletter-error{display:none; font-size:12.5px; margin-top:10px; color:#FF9E8A;}
  .newsletter-error.show{display:block;}
  html[data-theme="dark"] .newsletter-error{color:#B3402E;}

  /* Footer */
  footer{background:var(--navy-deep); color:#B9C3D9; padding:52px 0 26px;}
  .star-ribbon{background:var(--navy-deep); display:flex; align-items:center; justify-content:center; gap:22px; padding:14px 10px; overflow:hidden; border-top:1px solid rgba(255,255,255,.06);}
  .star-ribbon svg.tge-star-icon{width:9px; height:9px; fill:var(--gold); opacity:.55; flex-shrink:0;}
  html[data-theme="dark"] .star-ribbon svg.tge-star-icon{opacity:.7;}
  html[data-theme="dark"] footer{color:#7E8CA6;}
  .footer-grid{display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:40px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,.08);}
  .footer-brand{margin-bottom:18px;}
  .footer-brand .brand-mark-icon{width:44px; height:44px;}
  .footer-brand .brand-bolt-icon{fill:#EDEAE0;}
  .footer-brand .brand-eyebrow{font-size:9px; color:#7E8CA6;}
  .footer-brand .brand-name{font-size:21px; color:#EDEAE0;}
  .footer-brand .brand-rule{height:2px; margin-top:5px;}
  .footer-brand .brand-rule::after{width:5px; height:5px; right:-5px;}
  .footer-desc{font-size:13px; line-height:1.6; max-width:32ch;}
  .social-links{display:flex; gap:12px; margin-top:18px;}
  .social-links a{width:34px; height:34px; border-radius:50%; border:1px solid rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; color:#B9C3D9;}
  .social-links a:hover{border-color:var(--gold); color:var(--gold);}
  .social-links svg{width:16px; height:16px; fill:currentColor;}
  .social-links svg.ig-icon{fill:none; stroke:currentColor;}
  .social-links svg.ig-icon .ig-dot{fill:currentColor; stroke:none;}
  .footer-col h4{font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:#7E8CA6; margin-bottom:14px;}
  .footer-col a{display:block; font-size:13.5px; padding:6px 0; color:#B9C3D9;}
  .footer-col a:hover{color:var(--gold);}
  .footer-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:22px; font-size:12px; flex-wrap:wrap; gap:10px;}
  .admin-link{opacity:.5;}
  .admin-link:hover{opacity:1; color:var(--gold);}

  /* Admin */
  #adminApp fieldset{border:none; background:var(--paper); border:1px solid var(--line); border-radius:3px; padding:28px; margin-bottom:24px;}
  #adminApp legend{font-family:'IBM Plex Mono',monospace; font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--gold-deep); padding:0 6px;}
  #adminApp label{display:block; font-size:13px; font-weight:600; margin-bottom:6px; margin-top:18px;}
  #adminApp label:first-of-type{margin-top:0;}
  #adminApp input[type=text], #adminApp input[type=date], #adminApp select, #adminApp textarea{
    width:100%; padding:11px 13px; border:1px solid var(--line); background:var(--cream); color:var(--ink);
    font-family:'Inter',sans-serif; font-size:14px; border-radius:2px;
  }
  #adminApp textarea{min-height:180px; resize:vertical; line-height:1.6; font-family:'IBM Plex Mono',monospace; font-size:13px;}
  #adminApp .hint{font-size:12px; color:var(--slate); margin-top:5px;}
  #adminApp .row{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
  #adminApp .row3{display:grid; grid-template-columns:1fr 1fr 1fr; gap:20px;}
  #adminApp .check-row{display:flex; align-items:center; gap:8px; margin-top:20px;}
  #adminApp .check-row input{width:auto;}
  #adminApp .check-row label{margin:0; font-weight:500;}
  .btn{border:none; cursor:pointer; font-family:'Inter',sans-serif; font-weight:700; font-size:13px; letter-spacing:.02em; padding:12px 22px; border-radius:2px; text-transform:uppercase;}
  .btn-primary{background:var(--navy); color:#fff;}
  .btn-primary:hover{background:var(--navy-deep);}
  .btn-gold{background:var(--gold); color:var(--navy-deep);}
  .btn-gold:hover{background:var(--gold-deep);}
  .btn-ghost{background:transparent; color:var(--ink); border:1px solid var(--line);}
  .btn-ghost:hover{border-color:var(--danger); color:var(--danger);}
  .actions{display:flex; gap:12px; margin-top:24px; flex-wrap:wrap;}
  .list-item{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid var(--line);}
  .list-item:last-child{border-bottom:none;}
  .li-title{font-weight:600; font-size:14.5px; margin-bottom:4px;}
  .li-meta{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--slate); text-transform:uppercase; letter-spacing:.05em;}
  .li-meta .featured-tag{color:var(--gold-deep);}
  .li-buttons{display:flex; gap:8px; flex-shrink:0;}
  .li-buttons button{background:none; border:1px solid var(--line); padding:7px 12px; font-size:12px; cursor:pointer; color:var(--ink); border-radius:2px;}
  .li-buttons button:hover{border-color:var(--gold-deep); color:var(--gold-deep);}
  .li-buttons button.del:hover{border-color:var(--danger); color:var(--danger);}
  .empty{color:var(--slate); font-size:13.5px; padding:12px 0;}
  .note{background:var(--paper); border:1px solid var(--line); border-left:3px solid var(--gold-deep); padding:16px 18px; font-size:13.5px; color:var(--slate); margin-bottom:36px; border-radius:2px;}
  .note b{color:var(--ink);}
  #gate{position:fixed; inset:0; background:var(--navy-deep); display:flex; align-items:center; justify-content:center; z-index:200;}
  #gate .box{background:var(--paper); padding:36px; border-radius:4px; width:320px; text-align:center;}
  #gate h2{font-family:'Fraunces',serif; margin-bottom:6px;}
  #gate p{font-size:13px; color:var(--slate); margin-bottom:18px;}
  #gate input{width:100%; padding:11px 13px; border:1px solid var(--line); background:var(--cream); color:var(--ink); margin-bottom:14px; border-radius:2px; font-family:'Inter',sans-serif; font-size:14px;}
  #gate .err{color:var(--danger); font-size:12px; margin-top:-8px; margin-bottom:12px; display:none;}
  .admin-header{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px;}
  .admin-header h1{font-family:'Fraunces',serif; font-size:26px; font-weight:600;}
  .lede{color:var(--slate); font-size:14px; margin-bottom:32px;}

  @media (max-width:920px){ .card-grid{grid-template-columns:1fr 1fr;} .footer-grid{grid-template-columns:1fr 1fr;} }
  @media (max-width:680px){
    .nav-links{display:none;}
    .card-grid{grid-template-columns:1fr;}
    .footer-grid{grid-template-columns:1fr;}
    .newsletter-inner{flex-direction:column; align-items:flex-start;}
    .newsletter-form{width:100%;}
    .newsletter-form input{flex:1; width:auto;}
    #adminApp .row, #adminApp .row3{grid-template-columns:1fr;}
  }
