/* Shared shell layout. All colors come from grid-blue.css. */
body .site-header.site-shell-header {
  position:relative; display:grid; grid-template-columns:auto 1fr auto;
  align-items:center; gap:8px clamp(10px,1.8vw,25px); width:100%; max-width:none;
  margin:0; min-height:0; padding:16px max(28px,calc((100% - 1224px)/2));
  border:0; border-bottom:1px solid var(--nav-line); z-index:1000;
  background:var(--navy); color:var(--nav-text);
}
.site-shell-header .shell-identity {display:flex;align-items:center;gap:10px;min-width:0}
body .brand {display:inline-flex;align-items:center;gap:.35em;font-size:19px;font-weight:800;letter-spacing:.02em;text-decoration:none;white-space:nowrap;line-height:1.2}
body .brand b {font-weight:500;color:inherit}
body .site-shell-header .shell-nav {display:flex;grid-column:2;grid-row:1;justify-content:flex-end;align-items:center;gap:16px;margin:0;padding:0}
body .site-shell-header .shell-nav a {font-size:13px;line-height:1.4;letter-spacing:0;text-decoration:none;white-space:nowrap}
body .site-shell-header .shell-nav a:hover,body .site-shell-header .shell-nav a:focus-visible {text-decoration:underline;text-underline-offset:5px}
body .site-shell-header .shell-nav a[aria-current="page"] {text-decoration:underline;text-decoration-color:var(--blue);text-decoration-thickness:3px;text-underline-offset:5px}
body .site-shell-header .shell-actions {display:flex;align-items:center;gap:8px;grid-column:3;grid-row:1}
body .site-shell-header .header-cta {display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 12px;font:inherit;font-size:12px;font-weight:700;line-height:1.25;letter-spacing:0;text-transform:none;text-decoration:none;white-space:nowrap;border-radius:6px;background:var(--blue)!important;color:var(--card)!important;border:1px solid var(--blue)}
body .site-shell-header .masthead-tagline {grid-column:1/-1;margin:0;font-size:13px;line-height:1.4;color:var(--nav-text)}
body .site-shell-header .learn-label {grid-column:auto;padding:0;color:var(--amber)!important;font-size:12px;font-weight:700;text-decoration:none}
body .site-shell-header .nav-toggle {display:flex;align-items:center;justify-content:center;width:40px;min-height:40px;padding:0;border:1px solid var(--nav-line);border-radius:6px;background:var(--clear);color:var(--card);font-size:23px;cursor:pointer}
body .site-footer {display:block;grid-template-columns:none;width:100%;max-width:none;margin:0;padding:44px max(28px,calc((100% - 1224px)/2)) 20px;border:0;border-top:1px solid var(--nav-line);background:var(--navy)!important;color:var(--nav-text)}
.footer-inner {max-width:1224px;margin:auto}
.footer-brand {margin-bottom:30px}
body .site-footer .footer-brand p {margin:10px 0 0;font-size:14px;text-align:left;color:var(--nav-text)}
.footer-grid {display:grid;grid-template-columns:1fr 1fr 1fr minmax(240px,1.8fr);gap:28px}
.footer-grid section {min-width:0;background:var(--clear)}
body .site-footer h2 {font-size:15px;font-weight:800;line-height:1.4;margin:0 0 12px;color:var(--nav-text)}
.site-footer ul {list-style:none;padding:0;margin:0}
.site-footer li {margin:0;padding:0}
body .site-footer a {display:inline-block;font-size:14px;line-height:1.5;color:var(--nav-text)!important;text-decoration:none}
body .site-footer .brand {font-size:19px}
.site-footer li a {padding:6px 0}
body .site-footer a:hover,body .site-footer a:focus-visible {text-decoration:underline;text-underline-offset:4px}
body .site-footer .embeddable-buttondown-form {display:flex;flex-direction:column;gap:10px;width:100%;max-width:none;margin:0 0 16px;padding:0;background:var(--clear);border:0;border-radius:0;color:var(--nav-text)}
body .site-footer .embeddable-buttondown-form label {font-size:13px;line-height:1.6;color:var(--nav-text)}
body .site-footer .embeddable-buttondown-form input {flex:0 0 auto;width:100%;min-height:44px;margin:0}
body .site-footer .alerts {display:flex;flex-wrap:wrap;gap:10px;margin:0 0 12px}
body .site-footer .alerts span {flex-basis:100%;font-size:13px}
body .site-footer .footer-bottom {padding-top:20px;margin:32px 0 0;border-top:1px solid var(--nav-line);background:var(--navy);color:var(--nav-text);font-size:12px;line-height:1.7;text-align:left;overflow-wrap:anywhere}
body .site-footer .footer-bottom a {font-size:inherit}
/* Explicit foregrounds prevent legacy form and article rules winning. */
body button,body input[type="submit"],body .button-primary,body .embeddable-buttondown-form input[type="submit"],body .rss-copy button,body .rss-actions a {
  background:var(--blue-text);color:var(--card)!important;border-color:var(--blue-text);
}
body .button-primary *,body button span {color:var(--card)!important}
body .embeddable-buttondown-form input[type="email"] {background:var(--card);color:var(--body-text);border:1px solid var(--secondary)}
body .marker-cluster div {background:var(--blue);color:var(--card);font-weight:800}
body .marker-cluster {background:var(--blue-soft)}
body .marker-cluster div span {color:var(--card);font-weight:800}
body nav[aria-label="Glossary terms"] {display:flex;flex-wrap:wrap;white-space:normal;gap:6px;max-width:100%;overflow-wrap:anywhere}
body nav[aria-label="Glossary terms"] a {white-space:normal;max-width:100%}
body .site-footer .alerts button {border-radius:4px;padding:.85rem 1.3rem;font:inherit;font-weight:700;cursor:pointer}
@media(max-width:899px) {
  body .site-header.site-shell-header {position:sticky;top:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px;min-height:56px;padding:8px 12px;box-shadow:var(--shadow)}
  body .site-shell-header .shell-identity {flex-wrap:wrap;gap:2px 8px;grid-column:1;grid-row:1}
  body .site-shell-header .brand {font-size:clamp(13px,3.6vw,17px);letter-spacing:0;gap:.25em}
  body .site-shell-header .shell-actions {grid-column:2;grid-row:1;gap:6px}
  body .site-shell-header .header-cta {min-height:40px;padding:8px;font-size:11px}
  body .site-shell-header .masthead-tagline {display:none}
  body .site-shell-header .learn-label {font-size:10px;line-height:1.1}
  body .site-shell-header .shell-nav {grid-column:1/-1;grid-row:2;display:flex;flex-direction:column;align-items:stretch;gap:0;margin:8px -12px -8px;padding:8px 12px;background:var(--navy);border-top:1px solid var(--nav-line);max-height:calc(100dvh - 56px);overflow-y:auto}
  body .site-shell-header .shell-nav a {display:flex;align-items:center;min-height:48px;padding:10px 12px;font-size:16px;white-space:normal}
  body .site-footer {padding:32px 20px 20px}
  .footer-grid {grid-template-columns:1fr;gap:28px}
  .footer-grid section {padding-top:20px;border-top:1px solid var(--nav-line)}
  body .site-footer li a {min-height:44px;padding:10px 0}
  body .site-footer .alerts,body .site-footer .alerts button {width:100%}
  body .site-footer .alerts button {min-height:48px}
}
[hidden] {display:none!important}
@media print {body .site-shell-header,body .site-footer {display:none!important}}

/* Reading layout: compact section join without changing the desktop news grid. */
body.news-first .daily-front {padding-bottom:8px}
body.news-first .home-week {padding-top:8px}
body.news-first .home-week .home-section-head h2 {margin-top:0}
.table-scroll {max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.table-scroll:focus-visible {outline:2px solid var(--blue-text);outline-offset:3px}
.table-scroll table {min-width:100%}
body.learn-mode .key-words .keyword {padding:0;margin:14px 0 16px;border:0;background:var(--clear);box-shadow:none}
body.learn-mode .keyword summary {padding:0;list-style:none}
body.learn-mode .keyword summary::-webkit-details-marker {display:none}
body.learn-mode .keyword p {margin:4px 0 0}
@media(max-width:899px) {
  main,main article,main section,main aside {min-width:0;max-width:100%}
  main {overflow-wrap:anywhere}
  main img,main video,main iframe {max-width:100%}
  body.news-first .daily-grid,body.news-first .daily-others,body.news-first .week-list {display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
  body.news-first .daily-front,body.news-first .home-block {padding-inline:clamp(16px,4vw,24px)}
  body.news-first .daily-lead {padding:clamp(16px,4vw,24px)}
  body.news-first .daily-lead h1 {font-size:clamp(28px,5vw,40px)}
  body.news-first .lead-summary,body.news-first .lead-why {font-size:clamp(17px,2.1vw,18px);line-height:1.6}
  body.news-first .brief-mini h2 {font-size:clamp(21px,3vw,25px)}
  body.news-first .mini-source,body.news-first .lead-source {font-size:13px}
  body.news-first .daily-term {margin-top:18px}
  body.news-first .home-section-head {flex-wrap:wrap;gap:8px}
  body .brief-article {padding-inline:clamp(16px,4vw,24px)}
  body .article-body,body .brief-article {font-size:clamp(17px,2.1vw,18px);line-height:1.75}
  body .article-body p,body .article-body li,body .brief-article p:not(.byline):not(.meta):not(.edition-note),body .brief-article li {font-size:inherit;line-height:inherit}
  body .brief-article h1 {font-size:clamp(30px,5.5vw,46px);line-height:1.14}
  body .brief-article h2,body .article-body h2 {font-size:clamp(24px,4vw,32px);line-height:1.25}
  body .embeddable-buttondown-form {display:flex;flex-direction:column;align-items:stretch;gap:12px;max-width:100%;min-width:0}
  body .embeddable-buttondown-form input {width:100%;max-width:100%;min-width:0;min-height:48px;flex:0 0 auto;margin:0;font-size:17px}
  body .embeddable-buttondown-form label {width:100%;min-width:0;line-height:1.6}
  body.learn-mode .easy-card {padding:16px}
  body.learn-mode .easy-card details {padding:0;border:0;box-shadow:none;background:var(--clear)}
  body.learn-mode .easy-card details summary {box-sizing:border-box;width:100%;min-height:48px;padding:12px 16px;border-radius:6px;background:var(--amber);color:var(--body-text)}
  body.learn-mode .key-words .keyword {border:1px solid var(--border);border-left:4px solid var(--amber);background:var(--card);border-radius:6px}
  body.learn-mode .keyword summary {min-height:48px;padding:12px 16px;display:flex;justify-content:space-between;gap:12px}
  body.learn-mode .keyword summary::after {content:'+';flex:none}
  body.learn-mode .keyword[open] summary::after {content:'−'}
  body.learn-mode .keyword p {padding:0 16px 16px}
  .table-scroll {width:100%}
  .table-scroll table {width:max-content}
}
@media print {
  .table-scroll {overflow:visible}
  .table-scroll table {width:100%}
  body.learn-mode .keyword summary::after {content:none}
}

/* Header logo: spans the existing wordmark and tagline rows. */
body .site-shell-header .brand{position:relative;padding-left:64px}
body .site-shell-header .gs-wordmark{white-space:nowrap}
body .site-shell-header .gs-header-logo{position:absolute;left:0;top:0;height:52px;width:auto;max-width:none;display:block}
body .site-shell-header .masthead-tagline{padding-left:64px}
@media(max-width:899px){
 body .site-shell-header .brand{padding-left:0;gap:10px;font-size:clamp(11px,3vw,17px)}
 body .site-shell-header .gs-header-logo{position:static;height:30px;width:auto;flex:none}
 body .site-shell-header .shell-identity{flex-wrap:nowrap;gap:4px}
 body .site-shell-header .learn-label{font-size:9px}
}
@media(max-width:340px){body .site-shell-header .brand{gap:8px;font-size:10.5px}body .site-shell-header .gs-header-logo{height:28px}body .site-shell-header .shell-identity{gap:2px}}
@media(max-width:340px){body .site-header.site-shell-header{padding-inline:8px}body .site-shell-header .brand{font-size:10px}body .site-shell-header .learn-label{position:absolute;left:44px;top:39px}}
