:root{
  --navy:#0B1F3A;
  --red:#B3121D;
  --accent:#ff5f6a;
  --divider:#E5E7E8;
}
html{scroll-behavior:smooth}
body{font-family:'Source Serif 4',serif;background:#FFFFFF;color:var(--navy);margin:0}
h1,h2,h3,h4,h5,h6,.brand{font-family:'Playfair Display',serif;font-weight:800;color:var(--navy)}
a{color:var(--red)}

/* Background waving flag */
.flag-drift{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:1;
  animation:flagDrift 6s ease-in-out infinite alternate;transform-origin:left center;will-change:transform;overflow:hidden}
.flag-drift svg{width:100%;height:100%;display:block;object-fit:cover}
@keyframes flagDrift{from{transform:scale(1.06) skewY(-.15deg)}to{transform:scale(1.06) skewY(.15deg)}}

/* Masthead readability */
.masthead-title{text-shadow:0 0 2px #000,0 0 6px rgba(0,0,0,.75),0 3px 14px rgba(0,0,0,.55)}
.masthead-tagline,#headerDate{color:#FFFFFF;font-weight:600;text-shadow:0 0 2px #000,0 0 5px rgba(0,0,0,.85),0 2px 10px rgba(0,0,0,.5)}

/* Small flag next to the name */
.flag-nudge{display:inline-block;line-height:0;transform-origin:left center;
  animation:flagNudge 4s ease-in-out infinite alternate;will-change:transform}
@keyframes flagNudge{
  from{transform:perspective(300px) rotateY(-6deg) skewY(0.6deg)}
  to{transform:perspective(300px) rotateY(6deg) skewY(-0.6deg)}
}
.flag-sm{width:57px;height:30px;display:block}

@media (prefers-reduced-motion: reduce){
  .flag-drift,.flag-nudge{animation:none !important}
  .flag-drift *,.flag-nudge *{animation-play-state:paused !important}
}

.navlink{font-family:'Source Serif 4',serif;font-size:12px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:var(--navy);text-decoration:none}
.navlink:hover{color:var(--red)}

.headline{font-family:'Playfair Display',serif;font-weight:900;font-size:40px;line-height:1.1;color:var(--navy);margin:0}
.meta{font-size:14px;color:rgba(11,31,58,.65)}

.btn{background:var(--red);color:#fff;font-family:'Source Serif 4',serif;font-weight:600;border-radius:2px;padding:14px 28px;display:inline-block;text-decoration:none;border:0;cursor:pointer;font-size:16px}
.btn:hover{background:#8e0e17}

.label-sm{font-family:'Source Serif 4',serif;font-size:14px;font-weight:600;color:var(--navy);display:block;margin-bottom:6px}
.field{width:100%;border:1px solid #D8DBDD;background:#fff;padding:10px 12px;border-radius:2px;font-family:'Source Serif 4',serif;font-size:16px;color:var(--navy)}
.field:focus{outline:2px solid var(--navy);outline-offset:1px}
.field-dark{width:100%;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);padding:10px 12px;border-radius:2px;font-family:'Source Serif 4',serif;font-size:16px;color:#fff}
.field-dark:focus{outline:2px solid #fff;outline-offset:1px}

.footer-link:hover{color:#ff5f6a !important}

/* Footer legal row + signup notices: links inherit surrounding type */
.footer-legal a{color:inherit;text-decoration:none}
.footer-legal a:hover{text-decoration:underline}
.signup-note a{color:inherit;text-decoration:none}
.signup-note a:hover{text-decoration:underline}

/* Subscribe panel star pattern */
.sub-stars{opacity:.05;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpolygon fill='%230B1F3A' points='28,16 30.9,24.2 39.4,24.3 32.6,29.4 35.1,37.6 28,32.6 20.9,37.6 23.4,29.4 16.6,24.3 25.1,24.2'/%3E%3C/svg%3E");background-size:56px 56px}

/* ---- Spacing above Top news ---- */
#today{border-bottom:none !important;padding-bottom:16px !important}
#recent{padding-top:16px !important}

/* ---- Top news row (grid + optional donate column) ---- */
.tn-row{display:flex;gap:32px;align-items:flex-start}
.tn-row > #recent-stories{flex:1 1 auto;min-width:0}
.tn-row > #donate-slot[hidden]{display:none}
@media (max-width:1023px){
  .tn-row{display:block}
  .tn-row > #donate-slot{margin-top:32px}
}

/* ---- Top news image grid ---- */
.tn-grid{display:grid;gap:16px;grid-template-columns:1fr}
.tn-grid > *{min-width:0;max-width:100%}

.tn-card{position:relative;display:block;overflow:hidden;border-radius:2px;background:#0B1F3A;
  text-decoration:none;isolation:isolate;min-width:0;max-width:100%}
.tn-card__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tn-card__overlay{position:absolute;left:0;right:0;bottom:0;padding:16px;
  background:linear-gradient(to top, rgba(11,31,58,0.92) 0%, rgba(11,31,58,0.75) 35%, rgba(11,31,58,0) 70%)}
.tn-card--noimg{background:#0B1F3A}
.tn-card--noimg .tn-card__overlay{background:none}
.tn-card__title{font-family:'Playfair Display',serif;font-weight:800;color:#fff;margin:0;line-height:1.2;
  text-shadow:0 1px 3px rgba(0,0,0,0.45);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.tn-card__summary{font-family:'Source Serif 4',serif;color:#fff;font-size:16px;line-height:1.5;margin:6px 0 0;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
  text-shadow:0 1px 3px rgba(0,0,0,0.45)}
.tn-card__date{display:block;margin-top:8px;color:rgba(255,255,255,0.8);font-size:13px;font-family:'Source Serif 4',serif}
.tn-card--lg .tn-card__title{font-size:30px}
.tn-card--sm .tn-card__title{font-size:18px}
.tn-card:hover .tn-card__title{text-decoration:underline}
.tn-card:focus-visible{outline:2px solid #B3121D;outline-offset:2px}

/* Desktop */
@media (min-width:1024px){
  .tn-grid{grid-template-columns:repeat(3,1fr);grid-auto-rows:200px}
  .tn-card--lg{grid-column:span 2;grid-row:span 2}
  .tn-card--sm{height:200px}
}

/* Tablet */
@media (min-width:640px) and (max-width:1023px){
  .tn-grid{grid-template-columns:repeat(2,1fr)}
  .tn-card--lg{grid-column:1 / -1;aspect-ratio:16/9}
  .tn-card--lg .tn-card__title{font-size:26px}
  .tn-card--sm{aspect-ratio:4/3;min-height:200px}
  .tn-card--sm:last-child:nth-child(odd){grid-column:1 / -1}
}

/* Phone: large card stays a photo card, small cards become compact rows */
@media (max-width:639px){
  .tn-grid{grid-template-columns:1fr;gap:0}
  .tn-card--lg{aspect-ratio:16/10;margin-bottom:16px}
  .tn-card--lg .tn-card__title{font-size:22px}
  .tn-card--lg .tn-card__summary{font-size:15px}

  .tn-card--sm{display:flex;align-items:flex-start;gap:12px;background:transparent;border-radius:0;
    padding:12px 0;border-bottom:1px solid #E5E7E8;overflow:visible;height:auto}
  .tn-card--sm .tn-card__img{position:static;inset:auto;flex:0 0 72px;width:72px;height:72px;
    object-fit:cover;border-radius:2px}
  .tn-card--sm .tn-card__overlay{position:static;padding:0;background:none;min-width:0;flex:1 1 auto}
  .tn-card--sm .tn-card__title{font-family:'Playfair Display',serif;font-weight:800;color:#0B1F3A;
    font-size:17px;line-height:1.25;text-shadow:none;-webkit-line-clamp:3}
  .tn-card--sm .tn-card__date{color:#657075;font-size:13px;margin-top:6px}
}

@media (max-width:640px){
  .headline{font-size:28px}
  .btn{display:block;text-align:center;width:100%}
}
