/* NEPHRA · refinement candidate, 23 October 2026. Opaque surfaces by default. */
:root { --surface: #f8f7f8; --edge: #ded9dd; --focus: #223a7a; }
html { scroll-padding-block: 1.5rem 8rem; }
body { background: linear-gradient(180deg,#fff 0,#fff 280px,#faf8f9 900px); }
button,a,input,textarea,select,summary { -webkit-tap-highlight-color: #9f1d3520; }
:where(button,a,input,textarea,select,summary):focus-visible {
 outline: 3px solid var(--focus); outline-offset: 4px;
 box-shadow: 0 0 0 3px #fff;
}
main :where(button,a,input,textarea,select,summary) { scroll-margin-block: 1.5rem 8rem; }
.masthead { border-bottom-color: var(--edge); }
.wordmark { letter-spacing: .01em; }
.masthead-note { color: #4c4f5d; }
.header-actions .quiet { border: 1px solid #e3dfe2; }
.shell { max-width: 1550px; }
main { overflow-wrap: anywhere; }
.section-heading { flex-wrap: wrap; }
.section-heading>* { min-width: 0; }
.sidebar nav { gap: 7px; }
.nav-link { min-height: 50px; }
.nav-link[aria-current=page] { background: #f7e9ed; }
.aside-section { background: #fff; border-color: var(--edge); box-shadow: 0 4px 18px #3b182803; }
.aside-section>.eyebrow { color: var(--accent); }
.hero {
 padding: 32px; margin-bottom: 18px; gap: 20px;
 border: 1px solid #e8d8de; border-radius: 28px;
 background: radial-gradient(ellipse at 100% 10%,#f7e5eb 0,transparent 62%),#fff;
 grid-template-columns: minmax(0,1fr) 148px;
}
.hero h1 { font-size: clamp(2.7rem,3.8vw,4rem); letter-spacing: -.045em; }
.hero .eyebrow { color: var(--accent); }
.hero p { color: #4c4f5d; line-height: 1.7; }
.hero-symbol { width: 148px; height: 200px; border-radius: 90px; background: #fff8fa; box-shadow: 0 10px 35px #9f1d350a; }
.hero-symbol::after { inset: 11px; border-color: #dfb5c1; }
.hero-symbol::before { content: ''; position: absolute; inset: -9px; border: 1px solid #e8cbd4; border-radius: inherit; }
.hero-symbol img { width: 136px; height: 136px; }
.hero-actions .button { font-size: .87rem; }
.research-strip { background: #fff; border-color: var(--edge); margin-bottom: 18px; }
.explore-nephra { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0 0 36px; }
.explore-card { display: grid; grid-template-columns: 36px minmax(0,1fr) 20px; gap: 12px; align-items: start; padding: 20px; border: 1px solid var(--edge); border-radius: 18px; background: #fff; text-decoration: none; color: var(--ink); }
.explore-card svg { width: 29px; height: 29px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.explore-card strong { display: block; font-size: .98rem; line-height: 1.45; }
.explore-card small { display: block; color: #565966; font-size: .82rem; line-height: 1.65; margin-top: 6px; }
.explore-arrow { color: var(--accent); font-size: 1.3rem; line-height: 1.3; }
.section-heading h2 { font-size: 1.75rem; }
.searchbar input,.faq-search input { background: #fff; box-shadow: 0 2px 4px #3b182803; }
.tabs { margin-top: 22px; }
.tab { min-height: 48px; }
.chip { border-color: #8b818d; }
.chip[aria-pressed=true] { background: #f7e9ed; box-shadow: inset 0 0 0 1px var(--accent); }
.article-card { border-color: var(--edge); animation: none; }
.article-card.featured { background: linear-gradient(120deg,#f9ecf0,#fff8fa); border: 1px solid #e6cbd4; border-radius: 22px; padding: 30px; }
.article-card h3 { line-height: 1.35; }
.article-title { max-width: 100%; overflow-wrap: anywhere; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.article-actions>div { flex-wrap: wrap; min-width: 0; }
.source-badge.editorial { background: #fff; border-color: #b7697d; }
.post-card,.person-card,.research-card,.editor-summary { border-color: var(--edge); animation: none; }
.post-card,.person-card,.research-card { box-shadow: 0 5px 20px #3b182803; }
.research-card.wide { background: linear-gradient(125deg,#8a182e,#a72644); border-color: #8a182e; }
.empty { background: #fff; border: 1px solid var(--edge); border-radius: 22px; }
.podcast-intro { padding: 28px; border-radius: 28px; border: 1px solid #e8d8de; background: linear-gradient(125deg,#fff,#fcf0f4); }
.podcast-intro img { box-shadow: 0 12px 30px #5d243a17; }
.faq-hero { position: relative; padding: 26px 0 30px; border-bottom-color: #d9c4cc; }
.faq-hero::before { content: ''; display: block; width: 54px; height: 4px; background: var(--accent); border-radius: 4px; margin-bottom: 22px; }
.faq-hero h1 { line-height: 1.12; letter-spacing: -.04em; }
.faq-search { background: linear-gradient(125deg,#faedf1,#fff7f9); border-color: #dfbcc8; box-shadow: 0 8px 28px #5d243a05; }
.faq-card { border-color: var(--edge); border-radius: 20px; box-shadow: 0 3px 12px #3b182803; }
.faq-card[open] { border-color: #a85a70; }
.faq-card[open] summary { background: #faedf1; }
.faq-summary-category { font-size: .82rem; font-weight: 600; }
.faq-card summary h2 { overflow-wrap: anywhere; }
.faq-card summary:focus-visible { outline-offset: -6px; box-shadow: none; }
.faq-source { border-left-color: #ab6077; }
.faq-scope { background: #fff; border: 1px solid var(--edge); }
dialog { border-color: #d2c5ce; box-shadow: 0 24px 100px #35152433; }
dialog::backdrop { background: #20232c80; backdrop-filter: none; }
.dialog-top { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.motion-toggle { background: #fff; color: #4c4f5d; border: 1px solid #8b818d; border-radius: 12px; padding: 10px 14px; min-height: 44px; font-size: .8rem; }
.motion-toggle[aria-pressed=true] { color: var(--accent); border-color: var(--accent); background: #fbf0f2; }
.motion-toggle:disabled { opacity: 1; cursor: default; }
.footer { align-items: center; background: #fff; border-color: var(--edge); }
.footer a { display: inline-flex; min-height: 44px; align-items: center; }
@media (prefers-reduced-motion:no-preference) {
 .button,.chip,.nav-link,.mobile-nav a,.explore-card,.follow-small { transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
 #main > :first-child { animation: nephra-enter 220ms ease-out; }
 .faq-card[open] .faq-answer { animation: nephra-read 160ms ease-out; }
 dialog[open] { animation: nephra-enter 180ms ease-out; }
 @media (hover:hover) and (pointer:fine) {
  .explore-card:hover { transform: translateY(-2px); border-color: #b7697d; box-shadow: 0 8px 24px #5d243a0b; }
  .button:hover { transform: translateY(-1px); }
 }
 .button:active,.explore-card:active { transform: translateY(1px); }
 @keyframes nephra-enter { from { opacity: .94; transform: translateY(3px); } to { opacity: 1; transform: none; } }
 @keyframes nephra-read { from { opacity: .92; } to { opacity: 1; } }
}
@media(max-width:1050px) and (min-width:761px) { .hero { grid-template-columns: minmax(0,1fr); } .hero-symbol { display: none; } .explore-card { grid-template-columns: 28px minmax(0,1fr); padding: 16px; } .explore-arrow { display: none; } }
@media(max-width:760px) {
 .masthead { padding: 16px 18px; flex-wrap: wrap; row-gap: 12px; }
 .header-actions { margin-left: auto; }
 .shell { padding: 20px 18px 8rem; }
 .research-grid,.people-grid { grid-template-columns: minmax(0,1fr); }
 .hero { padding: 24px 20px; border-radius: 24px; grid-template-columns: minmax(0,1fr) 56px; gap: 10px; }
 .hero h1 { font-size: 2.5rem; overflow-wrap: anywhere; }
 .hero .eyebrow { font-size: .8rem; }
 .hero-copy>h1 { grid-column: 1 / -1; }
 .hero-symbol { display: grid; grid-row: 1; width: 44px; height: 64px; margin: 0; box-shadow: none; }
 .hero-symbol img { width: 58px; height: 58px; }
 .hero-symbol::before { inset: -4px; }
 .hero-symbol::after { inset: 4px; }
 .hero-actions .button { font-size: .87rem; }
 .explore-nephra { grid-template-columns: minmax(0,1fr); gap: 10px; margin-bottom: 30px; }
 .explore-card { padding: 18px; border-radius: 16px; }
 .article-card.featured { padding: 24px 20px; }
 .podcast-intro { padding: 22px; }
 .podcast-intro img { width: min(200px,100%); height: auto; }
 .podcast-intro h1 { font-size: 2.1rem; overflow-wrap: anywhere; }
 .faq-hero { padding-top: 10px; }
 .faq-hero h1 { font-size: 2.5rem; overflow-wrap: anywhere; }
 .faq-search { border-radius: 20px; }
 .faq-search-row .button { flex: 1 1 auto; }
 .mobile-nav { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.25fr) minmax(0,.85fr) minmax(0,.95fr) minmax(0,1fr); gap: 3px; padding: 8px 6px max(8px,env(safe-area-inset-bottom)); background: #fff; border-color: #cbc1c8; box-shadow: 0 -6px 24px #35152406; }
 .mobile-nav a { min-width: 0; min-height: 58px; padding: 7px 2px; font-size: .74rem; overflow-wrap: anywhere; text-align: center; border-radius: 13px; }
 .mobile-nav a[aria-current=page] { box-shadow: inset 0 3px var(--accent); background: #f7e9ed; }
 .mobile-nav svg { width: 23px; height: 23px; flex-shrink: 0; }
 .footer { gap: 10px 20px; padding: 24px 18px 8rem; }
 .toast { bottom: 7rem; }
}
@media(max-width:360px) {
 .masthead { padding-inline: 12px; }
 .shell { padding-inline: 12px; }
 .hero { display: block; }
 .hero-copy { display: block; }
 .hero-symbol { display: none; }
 .hero h1 { font-size: 2rem; }
 .hero-actions .button { width: 100%; }
}
@media(max-width:760px) {
 /* Large text gets a full-size navigation before the content, in DOM order. */
 :root[data-large-text=true] .mobile-nav { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); box-shadow: none; padding: 10px; }
 :root[data-large-text=true] .mobile-nav a { flex-direction: column; padding: 12px 6px; gap: 8px; }
 :root[data-large-text=true] .mobile-nav a:last-child { grid-column: 1 / -1; }
 :root[data-large-text=true] .footer { padding-bottom: 24px; }
}
@media(prefers-contrast:more) {
 :root { --muted: #36323e; --line: #736873; --edge: #736873; }
 .chip,input,textarea,select,.faq-card,.faq-search,.explore-card { border-color: #736873; }
 .aside-section p,.hero p,.explore-card small { color: #36323e; }
}
:root[data-native-contrast=more] { --muted: #36323e; --line: #736873; --edge: #736873; }
:root[data-native-contrast=more] :is(.chip,input,textarea,select,.faq-card,.faq-search,.explore-card) { border-color: #736873; }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; } }
:root[data-motion=reduce] *, :root[data-motion=reduce] *::before, :root[data-motion=reduce] *::after,
:root[data-native-motion=reduce] *, :root[data-native-motion=reduce] *::before, :root[data-native-motion=reduce] *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
:root[data-native-transparency=reduce] :is(.hero,.article-card.featured,.podcast-intro,.faq-search) { background: #fff; }
@media(forced-colors:active) { :where(button,a,input,textarea,select,summary):focus-visible { outline-color: Highlight; } .mobile-nav a[aria-current=page],.nav-link[aria-current=page] { border: 2px solid Highlight; } .hero-symbol::before,.hero-symbol::after { border-color: CanvasText; } }
@media print { body { background: #fff; } .hero,.article-card.featured,.faq-search { background: #fff; box-shadow: none; } }

/* Hero senza attribuzione personale in apertura, su richiesta di Alessandro. */
@media(max-width:760px) { .hero { display: block; } .hero-copy { display: block; } .hero-symbol { display: none; } .hero h1 { margin-top: 0; margin-bottom: 20px; } .hero-actions { margin-top: 22px; } }
