/* News page (news.html). Uses the site's tokens from styles.css. */
/* The site styles .btn and friends with display, which would beat the hidden attribute. */
.news-section [hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.news-section{background:var(--bg)}
.news-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:16px}
.news-search{position:relative;flex:1 1 320px;display:flex;align-items:center}
.news-search svg{position:absolute;left:14px;color:var(--muted);pointer-events:none}
.news-search input{width:100%;height:46px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 14px 0 42px;font:inherit;font-size:15px;color:var(--ink);transition:border-color .2s,box-shadow .2s}
.news-search input:focus,.news-select select:focus{outline:none;border-color:var(--sky);box-shadow:0 0 0 3px rgba(36,183,238,.18)}
.news-selects{display:flex;flex-wrap:wrap;gap:12px}
.news-select{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted)}
.news-select select{height:46px;width:180px;max-width:100%;text-overflow:ellipsis;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 34px 0 12px;font:inherit;font-size:14px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--ink);appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2365758a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;cursor:pointer}
.news-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.news-chip{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:999px;padding:8px 15px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.news-chip:hover{border-color:var(--sky)}
.news-chip[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.news-chip span{opacity:.6;margin-left:6px;font-weight:600}
.news-status{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px;margin-bottom:18px}
.news-status p{margin:0;color:var(--muted);font-size:14px}
.news-clear{border:0;background:none;color:#007eb8;font:inherit;font-size:13px;font-weight:800;cursor:pointer;padding:4px 0}
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.news-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;color:inherit;text-decoration:none;transition:transform .25s,box-shadow .25s,border-color .25s}
.news-card:hover,.news-card:focus-visible{transform:translateY(-4px);box-shadow:0 18px 40px rgba(6,31,60,.12);border-color:#cfe3f0}
.news-card:focus-visible{outline:3px solid rgba(36,183,238,.45);outline-offset:2px}
.news-thumb{position:relative;aspect-ratio:16/9;background:linear-gradient(135deg,var(--deep),var(--blue) 60%,var(--sky));overflow:hidden}
.news-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.news-card:hover .news-thumb img{transform:scale(1.04)}
.news-thumb .news-thumb-mark{position:absolute;inset:0;display:grid;place-items:center;color:rgba(255,255,255,.9);font-size:42px;font-weight:800;letter-spacing:-1px}
.news-card-body{display:flex;flex-direction:column;gap:9px;padding:20px 20px 22px;flex:1}
.news-card-body :is(h2,h3){margin:0;font-size:19px;line-height:1.3;color:var(--ink)}
.news-card-body p{margin:0;color:var(--muted);font-size:14px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.news-meta{margin-top:auto;padding-top:8px;color:var(--muted);font-size:12px;font-weight:600;line-height:1.6}
.news-featured{display:grid;grid-template-columns:1.25fr 1fr;margin-bottom:22px}
.news-featured .news-thumb{aspect-ratio:auto;min-height:340px}
.news-featured .news-thumb img{position:absolute;inset:0}
.news-featured .news-card-body{padding:34px;justify-content:center}
.news-featured .news-card-body :is(h2,h3){font-size:clamp(24px,2.4vw,32px);line-height:1.2}
.news-featured .news-card-body p{-webkit-line-clamp:4;font-size:15px}
.news-badge{align-self:flex-start;background:#eaf6fc;color:#0b7fb3;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase}
.news-more{display:flex;justify-content:center;margin-top:34px}
.news-empty{grid-column:1/-1;text-align:center;padding:64px 20px;border:1px dashed #cfdbe6;border-radius:12px;background:#fff;color:var(--muted)}
.news-empty h3{margin:0 0 6px;color:var(--ink);font-size:20px}
.news-empty p{margin:0 0 16px}
.news-skel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.news-skel div{background:linear-gradient(90deg,#edf2f7 25%,#f6f9fc 50%,#edf2f7 75%);background-size:200% 100%;animation:news-shimmer 1.4s infinite;border-radius:6px}
.news-skel .s-img{aspect-ratio:16/9;border-radius:0}
.news-skel .s-line{height:14px;margin:16px 20px 0}
.news-skel .s-line.short{width:40%;margin-bottom:22px}
@keyframes news-shimmer{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.news-skel div{animation:none}.news-card,.news-thumb img{transition:none}}

/* Article view */
.news-article{max-width:780px;margin:0 auto}
.news-back{display:inline-flex;align-items:center;gap:8px;border:0;background:none;color:#007eb8;font:inherit;font-size:14px;font-weight:800;cursor:pointer;padding:0;margin-bottom:26px}
.news-article h1{font-size:clamp(30px,4vw,44px);line-height:1.15;letter-spacing:-.5px;color:var(--ink);margin:10px 0 18px}
.news-byline{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px;margin-bottom:28px}
.news-avatar{width:40px;height:40px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:800;font-size:15px;overflow:hidden;flex-shrink:0}
.news-avatar img{width:100%;height:100%;object-fit:cover}
.news-byline strong{display:block;color:var(--ink);font-size:15px}
.news-hero-img{width:100%;max-height:520px;object-fit:contain;background:#eef3f8;border-radius:12px;margin-bottom:30px;display:block}
.news-prose{font-size:17px;line-height:1.75;color:#24384d}
.news-prose h2{font-size:26px;line-height:1.3;color:var(--ink);margin:38px 0 12px}
.news-prose h3{font-size:21px;color:var(--ink);margin:30px 0 10px}
.news-prose p{margin:0 0 18px}
.news-prose a{color:#007eb8;font-weight:700}
.news-prose img,.news-prose video,.news-prose iframe{max-width:100%;height:auto;border-radius:10px}
.news-prose ul,.news-prose ol{padding-left:24px;margin:0 0 18px}
.news-prose li{margin-bottom:6px}
.news-prose blockquote{margin:24px 0;padding:6px 0 6px 20px;border-left:4px solid var(--sky);color:var(--ink);font-size:19px}
.news-prose table{width:100%;border-collapse:collapse;margin:0 0 20px;font-size:15px;display:block;overflow-x:auto}
.news-prose th,.news-prose td{border:1px solid var(--line);padding:8px 10px;text-align:left}
.news-tags{display:flex;flex-wrap:wrap;gap:8px;margin:34px 0 0;padding-top:24px;border-top:1px solid var(--line)}
.news-share{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:22px;color:var(--muted);font-size:13px;font-weight:700}
.news-share a,.news-share button{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:999px;padding:7px 14px;font:inherit;font-size:13px;font-weight:700;text-decoration:none;cursor:pointer}
.news-share a:hover,.news-share button:hover{border-color:var(--sky)}
.news-related{margin-top:60px}
.news-related h2{font-size:24px;color:var(--ink);margin:0 0 18px}
.news-related .news-grid{grid-template-columns:repeat(3,minmax(0,1fr))}

@media(max-width:1000px){
  .news-grid,.news-related .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .news-featured{grid-template-columns:1fr}
  .news-featured .news-thumb{min-height:0;aspect-ratio:16/9}
  .news-featured .news-thumb img{position:static}
  .news-featured .news-card-body{padding:24px}
}
@media(max-width:720px){
  .news-grid,.news-related .news-grid{grid-template-columns:1fr}
  .news-selects{width:100%}
  .news-select{flex:1 1 140px}
  .news-chips{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;margin-right:-20px;padding-right:20px;scrollbar-width:none}
  .news-chips::-webkit-scrollbar{display:none}
  .news-chip{flex-shrink:0;scroll-snap-align:start;white-space:nowrap}
  .news-select select{min-width:0;width:100%}
  .news-prose{font-size:16px}
}
