/* Homepage responsive refinements, from desktop to 320 CSS pixels. */
.site-header .rss-short{display:none}
.home .wrap,.home .post-grid,.home .topic-layout,.home .topic-stories,.home .francisco-grid,.home .footer-top,.home .footer-top>div,.home .weekly-controls,.home .search-panel-body{min-width:0}
.home .post-card,.home .card-content,.home .card-byline,.home .card-author,.home .francisco-copy,.home .archive-invitation>div{min-width:0}
.home .card-content h3,.home .weekly-story h2{overflow-wrap:anywhere}
.home .card-author>a{max-width:100%;min-width:0}
.home .card-author>a>span:last-child{min-width:0;overflow-wrap:anywhere}
.home .card-byline>span:last-child{flex-shrink:0}
.home .weekly-thumbnails{min-width:0;max-width:100%}
:is(.home,.writers-directory-page) .voices-lanes{max-width:100%;min-width:0}
@media(max-width:1000px){
 .site-header .main-nav .nav-inner{display:block}
 .site-header .main-nav .nav-links{display:block}
 .site-header .main-nav .nav-links a{min-height:44px;padding-block:10px;line-height:1.5}
 .site-header .main-nav .theme-toggle{margin-block:12px}
 .home .archive-invitation{grid-template-columns:minmax(90px,.4fr) minmax(0,1fr)}
}
@media(max-width:700px){
 .home .post-grid{grid-template-columns:minmax(0,1fr)}
 .home .weekly-opening .latest-heading{display:block}
 .home .edition-date{margin-top:15px;padding-left:0;border-left:0;align-items:flex-start}
 .home .weekly-controls-heading{min-width:0;flex-wrap:wrap}
 .home .live-search .search-form input{font-size:1rem}
 .home .archive-invitation{grid-template-columns:minmax(0,1fr);padding-inline:24px}
 .home .archive-invitation h2{font-size:clamp(1.7rem,6vw,2.3rem);line-height:1.25;overflow-wrap:anywhere}
 .home .topic-section .topic-intro>h2{font-size:clamp(2rem,7.5vw,3rem);line-height:1.15;overflow-wrap:anywhere}
 .home .reading-section .section-heading h2,:is(.home,.writers-directory-page) .voices-section .section-heading :is(h1,h2){font-size:clamp(2rem,7vw,2.6rem);line-height:1.18}
 .home .francisco-copy h2{font-size:clamp(2rem,8vw,3.3rem);line-height:1.18}
 .home .francisco-copy{padding-left:16px}
 .home .topic-section .card-meta{flex-wrap:wrap}
 .home .footer-top{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home .footer-bottom{align-items:flex-start}
}
@media(max-width:600px){.home .topic-section .topic-stories{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){
 .wrap{width:calc(100% - 32px)}
 .site-header .header-top{gap:10px;letter-spacing:.035em;font-size:.625rem}
 .site-header .rss-full{display:none}
 .site-header .rss-short{display:inline}
 .site-header .header-top a{flex-shrink:0;gap:5px;font-size:.6875rem}
 .site-header .header-top a>.icon{display:inline-block;width:14px;height:14px}
 .home .site-header .masthead .brand,.home .site-header .masthead .custom-logo-link,.site-header .masthead .brand,.site-header .masthead .custom-logo-link{width:calc(100vw - 145px);max-width:230px}
 .site-header .masthead{gap:12px}
 .site-header .header-actions{gap:8px;flex-shrink:0}
 .home .weekly-story{padding-inline:19px}
 .home .weekly-controls{padding-inline:12px}
 .home .weekly-controls-heading{gap:10px}
 .home .weekly-controls-heading>span{flex-basis:100%}
 .home .weekly-actions{width:100%;gap:8px}
 .home .weekly-counter{margin-right:auto}
 .home .weekly-icon{width:40px;height:40px}
 .home .filter-bar{flex-wrap:wrap;overflow:visible;gap:8px}
 .home .filter{padding:10px 13px;max-width:100%;font-size:.8125rem}
 .home .voice-group-heading{display:block}
 .home .voice-group-heading h3{font-size:1.5rem;line-height:1.3;flex-wrap:wrap;gap:8px}
 .home .voice-group-heading p{font-size:.875rem;line-height:1.65}
 :is(.home,.writers-directory-page) .voices-pause{display:inline-flex;margin-top:12px;padding:9px 12px;font-size:.6875rem;min-height:36px}
 :is(.home,.writers-directory-page) .voices-search{width:100%;max-width:100%;min-width:0}
 :is(.home,.writers-directory-page) .voices-status{line-height:1.7}
 .home .footer-top{grid-template-columns:minmax(0,1fr);gap:28px;padding-block:36px}
 .home .footer-top>div{grid-column:1/-1}
 .home .footer-top>div>a:not(.brand):not(.custom-logo-link){padding-block:4px}
 .home .footer-bottom{gap:12px;padding-block:24px}
 .home .footer-about{max-width:none}
 .home .card-byline{gap:9px}
 .home .card-byline>span:last-child{font-size:.6875rem}
}

@media(max-width:1000px){.site-header .header-actions>.button{display:none}}
@media(max-width:700px){
 .home .topic-section .topic-intro{display:block}
 .home .topic-section .topic-symbol{display:inline-flex;vertical-align:middle;margin:0 10px 18px 0}
 .home .topic-section .topic-intro>.eyebrow{display:inline-block;vertical-align:middle;margin:0 0 18px}
 .home .topic-section .topic-intro>h2{margin-bottom:18px}
 .home .topic-section .topic-intro>p{max-width:none;margin-bottom:22px}
}

/* Nine primary items remain readable before the compact menu takes over. */
@media(min-width:1001px){.site-header .main-nav .nav-links{gap:clamp(9px,1.4vw,20px)}.site-header .main-nav .nav-links a{white-space:nowrap}}
.site-header .main-nav .nav-links a[aria-current="page"]{color:var(--green)}

/* Author portraits must not set the minimum width of their grid track. */
.author-hero>*{min-width:0}
@media(max-width:700px){.author-hero{grid-template-columns:minmax(0,1fr)}.author-hero-photo{max-width:min(220px,100%)}.author-hero h1{font-size:clamp(2rem,9vw,3.2rem);overflow-wrap:anywhere}}

/* Imported article media and long references must fit their grid track. */
.article-layout{grid-template-columns:100px minmax(0,1fr)}
.article-layout>*{min-width:0}
.article-body{overflow-wrap:anywhere}
.article-body :is(img,figure,video,iframe){max-width:100%}
.article-body img{height:auto}
.article-body :is(table,pre){max-width:100%;overflow-x:auto}
@media(max-width:900px){.article-layout{grid-template-columns:55px minmax(0,1fr)}}
@media(max-width:700px){.article-layout{grid-template-columns:minmax(0,1fr)}}

/* Plugin-owned language selector, styled to match the editorial header. */
.header-utilities{display:flex;align-items:center;gap:18px;min-width:0}
.header-languages{display:flex;align-items:center;gap:7px;min-width:0;max-width:155px;text-transform:none;letter-spacing:normal}
.language-symbol{display:inline-flex;width:18px;height:18px;flex-shrink:0}
.language-symbol svg{width:100%;height:100%}
.header-languages .gtranslate_wrapper{min-width:0;max-width:100%}
.header-languages select{font-family:var(--sans);font-size:.75rem;color:var(--ink);background:var(--paper,#f5f9f6);border:1px solid var(--line);border-radius:20px;padding:5px 7px;max-width:125px;min-height:30px}
html[data-theme="dark"] .header-languages select{color:#e5f1ef;background:#102f38;border-color:#40616a;color-scheme:dark}
.header-languages select:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:700px){.site-header .header-top{flex-wrap:wrap;gap:8px;justify-content:space-between;padding-block:6px}.header-utilities{gap:10px}.header-languages{max-width:135px}.header-languages select{max-width:108px}.header-utilities>a{display:none}}
.article-body .gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-block:25px}
.article-body .gallery .gallery-item{float:none!important;width:auto!important;margin:0!important;min-width:0}
.article-body .gallery img{width:100%;height:auto;border:0!important;border-radius:8px}
.article-body .gallery br{display:none}
.article-body .gallery-caption{font-size:.8rem;line-height:1.5}
@media(max-width:600px){.article-body .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.article-body .gallery{grid-template-columns:minmax(0,1fr)}}

/* Ten editorial links fit comfortably before the mobile navigation takes over. */
@media(min-width:1001px){.site-header .main-nav .nav-inner{gap:14px}.site-header .main-nav .nav-links{gap:clamp(7px,1vw,15px)}.site-header .main-nav .nav-links a{font-size:clamp(.875rem,1.12vw,1rem);padding-inline:0}}

/* The archive total is an editorial highlight, rather than a small footnote. */
.author-publications{display:inline-flex;align-items:center;gap:12px;max-width:100%;flex-shrink:0;padding:16px 20px;border:1px solid #527d7466;border-radius:17px;background:linear-gradient(135deg,#20494a,#112e3a);box-shadow:0 8px 28px #02141a16;color:#bddbcf;position:relative;overflow:hidden}
.author-publications::after{content:"";position:absolute;bottom:0;left:20px;width:58px;height:2px;background:linear-gradient(90deg,#69aed3,#7ec5a0)}
.author-publications>strong{font:500 clamp(2rem,3vw,2.6rem)/1 var(--serif);font-variant-numeric:tabular-nums;letter-spacing:-.045em;color:#e2f5e9}
.author-publications-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#85c9a318;color:#a2d3c1}
.author-publications-icon>.icon{width:20px;height:20px}
.author-publications-label{font:500 .75rem/1.5 var(--sans);letter-spacing:.02em}
html[data-theme=light] .author-publications{background:linear-gradient(135deg,#edf6ee,#e4efef);color:#4b6b61;border-color:#b8d2c5;box-shadow:0 8px 28px #183e2a08}
html[data-theme=light] .author-publications>strong{color:#1e5c48}
html[data-theme=light] .author-publications-icon{background:#d7eadd;color:#28694e}
@media(max-width:700px){.author-publications{align-self:flex-start;gap:10px;padding:14px 17px;border-radius:14px}.author-publications>strong{font-size:2.2rem}}

/* GTranslate's own flag dropdown, with compact spacing and a floating list. */
.site-header .header-languages{width:max-content;max-width:180px;display:block;flex-shrink:0}
.site-header .header-languages .gtranslate_wrapper .gt_switcher{width:max-content;max-width:100%;overflow:visible;position:relative;font-family:var(--sans);font-size:12px;line-height:1.4}
.site-header .header-languages .gtranslate_wrapper .gt_selected{width:max-content;background:none;border-radius:19px}
.site-header .header-languages .gtranslate_wrapper .gt_selected>a{display:flex;align-items:center;gap:6px;width:max-content;min-height:32px;box-sizing:border-box;padding:5px 9px;border:1px solid #44646b;border-radius:19px;background:#102f38;color:#e5f1ef;white-space:nowrap;font:500 12px/1.5 var(--sans)}
.site-header .header-languages .gtranslate_wrapper .gt_switcher a img{width:20px;height:20px;object-fit:contain;flex-shrink:0;margin:0;padding:0;border:0;opacity:1;vertical-align:middle}
.site-header .header-languages .gtranslate_wrapper .gt_selected>a:after{position:static;flex-shrink:0;width:6px;height:6px;margin:0 0 3px 1px;background:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.site-header .header-languages .gtranslate_wrapper .gt_selected>a.open:after{transform:rotate(225deg);margin:3px 0 0 1px}
.site-header .header-languages .gtranslate_wrapper .gt_option{position:fixed;z-index:99999;width:190px;box-sizing:border-box;border:1px solid #486b70;border-radius:13px;padding:5px;background:#102c36;box-shadow:0 14px 42px #02141a45;transition:height .18s ease;overscroll-behavior:contain}
.site-header .header-languages .gtranslate_wrapper .gt_option>a{display:flex;align-items:center;gap:9px;box-sizing:border-box;padding:8px 10px;color:#e4f1eb;border-radius:7px;white-space:nowrap;font:400 12px/1.5 var(--sans)}
.site-header .header-languages .gtranslate_wrapper .gt_option>a.gt_current{display:none}
.site-header .header-languages .gtranslate_wrapper .gt_selected>a:hover,.site-header .header-languages .gtranslate_wrapper .gt_option>a:hover{background:#21444b;color:#fff}
.site-header .header-languages .gtranslate_wrapper .gt_switcher a:focus-visible{outline:2px solid #86bda4;outline-offset:2px}
html[data-theme=light] .site-header .header-languages .gtranslate_wrapper .gt_selected>a{background:#f5faf6;color:#275345;border-color:#bdd0c3}
html[data-theme=light] .site-header .header-languages .gtranslate_wrapper .gt_option{background:#f8fcf8;border-color:#bdd0c3;box-shadow:0 14px 42px #183d2926}
html[data-theme=light] .site-header .header-languages .gtranslate_wrapper .gt_option>a{color:#214e40}
html[data-theme=light] .site-header .header-languages .gtranslate_wrapper .gt_selected>a:hover,html[data-theme=light] .site-header .header-languages .gtranslate_wrapper .gt_option>a:hover{background:#e1eee3;color:#133f30}
@media(max-width:700px){.site-header .header-languages,.site-header .header-languages .gtranslate_wrapper .gt_switcher{width:max-content;max-width:180px}}
@media(prefers-reduced-motion:reduce){.site-header .header-languages .gtranslate_wrapper .gt_option{transition:none}}
