.articles-page [hidden] { display:none!important; }
.articles-intro { padding-top:38px; padding-bottom:48px; }
.articles-intro h1 { font-size:clamp(40px,6vw,72px); line-height:1.08; color:var(--navy); margin:20px 0; }
.articles-intro > p { max-width:640px; font-size:19px; color:var(--muted); }
.articles-page .breadcrumbs { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:40px; font-size:14px; color:var(--muted); }
.articles-page .breadcrumbs a { color:var(--blue); }
.articles-library { padding-bottom:90px; min-height:260px; }
.articles-controls { padding:24px; border:1px solid var(--line); border-radius:16px; background:#f8fbfd; margin-bottom:24px; }
.articles-search-row { display:flex; align-items:end; gap:20px; }
.articles-search { flex:1; min-width:0; }
.articles-controls label { display:block; font-size:13px; font-weight:650; color:var(--navy); margin-bottom:8px; }
.articles-controls input,.articles-controls select { width:100%; min-height:48px; border:1px solid #b8ccd9; border-radius:10px; padding:12px 14px; background:white; color:var(--navy); font:inherit; }
.articles-sort { width:180px; }
.articles-filter-row { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin-top:20px; }
.articles-filters { display:flex; flex-wrap:wrap; gap:8px; flex:1; }
.articles-filter { border:1px solid #b8ccd9; border-radius:999px; padding:9px 16px; background:white; color:var(--navy); font:inherit; font-size:14px; cursor:pointer; }
.articles-filter:hover { background:#e5f2fb; }
.articles-filter[aria-pressed="true"] { background:var(--blue); border-color:var(--blue); color:white; }
.articles-clear { background:none; border:0; padding:10px 0; color:var(--blue); font:inherit; font-size:14px; text-decoration:underline; cursor:pointer; }
.articles-controls :focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
@media(max-width:640px) { .articles-controls { padding:18px; } .articles-search-row { flex-direction:column; align-items:stretch; gap:14px; } .articles-sort { width:100%; } }
.articles-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.article-card { padding:28px; background:#f3f9fd; border:1px solid var(--line); border-radius:16px; overflow-wrap:anywhere; }
.article-card h2 { font-size:25px; line-height:1.25; margin:16px 0; }
.article-card h2 a { color:var(--navy); text-decoration:none; }
.article-card h2 a:hover { text-decoration:underline; }
.article-card > p { color:var(--muted); }
.article-meta { font-size:14px; color:var(--muted); }
.article-cover { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:12px; margin:0 0 24px; }
.article-tags { display:block; min-width:0; list-style:none; padding:0; margin:10px 0 16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#244f69; font-size:10px; line-height:22px; }
.article-tag { display:inline-block; box-sizing:border-box; max-width:calc(100% - 18px); margin-right:4px; padding:2px 6px; border:1px solid #c9dfea; border-radius:5px; background:#eaf4fa; color:#244f69; font-size:10px; font-weight:500; line-height:1.3; vertical-align:middle; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.articles-empty { grid-column:1/-1; padding:32px; background:#f3f9fd; border-radius:16px; }
.articles-library > button { margin-top:28px; }
.article-detail { max-width:820px; padding-top:38px; padding-bottom:80px; overflow-wrap:anywhere; }
.article-detail h1 { color:var(--navy); font-size:clamp(36px,5vw,58px); line-height:1.12; margin:20px 0; }
.article-lead { font-size:22px; color:var(--muted); margin:28px 0 38px; }
.article-body { font-size:18px; line-height:1.85; }
.article-body h2 { font-size:30px; line-height:1.25; margin-top:42px; }
.article-body h3 { font-size:23px; margin-top:32px; }
.article-body li { margin:10px 0; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:visited { color: var(--blue); }
.article-body a:hover { text-decoration-thickness: 2px; }
.article-next { border-top:1px solid var(--line); margin-top:50px; padding-top:28px; }
.article-next h2 { font-size:27px; }
@media(max-width:1000px) { .articles-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) {
  /* minmax(0,…) like the wider breakpoints: bare 1fr takes the cards' min-content width and scrolls the page sideways. */
  .articles-grid { grid-template-columns:minmax(0,1fr); }
  .articles-intro { padding-bottom:24px; }
  .articles-intro h1 { font-size:clamp(32px,9vw,40px); }
  .articles-intro > p { font-size:17px; }
  .article-card { padding:24px; }
  .article-card h2 { font-size:22px; }
  /* One column leaves no card heights to match, so show every tag instead of clipping the row. */
  .article-tags { white-space:normal; overflow:visible; line-height:1.3; margin-bottom:12px; }
  .article-tag { max-width:100%; margin-bottom:4px; }
  .articles-empty { padding:24px; }
  .articles-filter, .articles-clear { min-height:44px; }
  .article-detail { padding-bottom:56px; }
  .article-lead { font-size:19px; margin:22px 0 30px; }
  .article-body { font-size:17px; line-height:1.75; }
  .article-body h2 { font-size:25px; margin-top:34px; }
  .article-body h3 { font-size:20px; margin-top:26px; }
  .article-next h2 { font-size:23px; }
}
/* Comfortable touch targets for the controls that sit above the grid. */
@media(hover:none) and (pointer:coarse) {
  .articles-filter { min-height:44px; }
  .articles-clear { min-height:44px; }
}
