/* Screening image cards, detail dialogs, and Guideline sources grid (demo). */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.scr-section{max-width:1200px;margin:0 auto;padding:1.5rem 1.5rem 2rem}
.scr-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem 1rem;border-bottom:3px solid var(--accent,#B31942);padding-bottom:.4rem;margin-bottom:1rem}
.scr-head h2{font-size:1.5rem;margin:0;text-align:left}
.scr-head p{margin:0;color:var(--muted,#3d4a5c);font-size:.92rem}
.scr-grid{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:0;padding:0}
.scr-card{min-width:0}
.scr-open{appearance:none;display:flex;flex-direction:column;width:100%;height:100%;text-align:left;font:inherit;color:inherit;background:#fff;border:1px solid #d7e0ea;border-radius:12px;overflow:hidden;padding:0;cursor:pointer;box-shadow:0 2px 8px rgba(15,39,68,.07);transition:transform .15s,box-shadow .15s,border-color .15s}
.scr-open:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(15,39,68,.12);border-color:#b8c6d8}
.scr-open:focus-visible{outline:3px solid var(--accent,#B31942);outline-offset:2px}
.scr-open img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#eef2f7;border-bottom:3px solid var(--navy,#0A3161)}
.scr-card-body{display:flex;flex-direction:column;gap:.25rem;padding:.7rem .85rem .8rem;flex:1}
.scr-card-title{font-weight:700;color:var(--navy,#0A3161);font-size:1rem;line-height:1.25}
.scr-card-teaser{font-size:.86rem;line-height:1.4;color:var(--text,#1e293b)}
.scr-card-more{margin-top:auto;padding-top:.3rem;font-size:.82rem;font-weight:650;color:var(--accent,#B31942)}

/* Dialog */
.scr-dialog{border:0;padding:0;margin:auto;width:min(980px,calc(100% - 2rem));max-height:calc(100dvh - 2rem);border-radius:14px;box-shadow:0 20px 60px rgba(10,49,97,.35);color:var(--text,#1e293b);background:#fff;overflow:hidden}
.scr-dialog::backdrop{background:rgba(10,49,97,.55)}
.scr-dialog-inner{display:flex;flex-direction:column;max-height:calc(100dvh - 2rem)}
.scr-dialog-head{position:relative;display:flex;align-items:center;gap:.9rem;background:linear-gradient(90deg,#19283f 0%,#1e1629 48%,#35111f 100%);color:#fff;padding:.6rem 3.4rem .6rem .6rem;border-bottom:3px solid #B22234;flex:none}
.scr-dialog-head img{width:96px;height:54px;object-fit:cover;border-radius:6px;flex:none;background:#fff}
.scr-dialog-head h3{font-size:1.2rem;line-height:1.25;margin:0;color:#fff}
.scr-close{position:absolute;top:50%;right:.6rem;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:2px solid rgba(255,255,255,.7);background:transparent;color:#fff;font-size:1.6rem;line-height:1;cursor:pointer}
.scr-close:hover{background:rgba(255,255,255,.15)}
.scr-close:focus-visible{outline:3px solid #fff;outline-offset:2px}
.scr-dialog-body{overflow-y:auto;padding:1rem 1.25rem 1.25rem;overscroll-behavior:contain}
.scr-dialog-body section+section{margin-top:1.15rem}
.scr-h{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;font-size:1.02rem;color:var(--navy,#0A3161);margin:0 0 .5rem}
.scr-step{display:inline-grid;place-items:center;width:1.5rem;height:1.5rem;border-radius:50%;background:var(--accent,#B31942);color:#fff;font-size:.8rem;font-weight:700}
.scr-sub{font-weight:500;color:var(--muted,#3d4a5c);font-size:.88rem}
.scr-summary{display:grid;gap:.4rem;margin:0;background:#f4f7fb;border:1px solid #d7e0ea;border-left:4px solid var(--navy,#0A3161);border-radius:8px;padding:.7rem .9rem}
.scr-summary>div{display:grid;grid-template-columns:8.5rem 1fr;gap:.75rem}
.scr-summary dt{font-weight:700;color:var(--navy,#0A3161);font-size:.9rem}
.scr-summary dd{margin:0;font-size:.92rem;line-height:1.45}
.scr-table-wrap{overflow-x:auto;border:1px solid #d7e0ea;border-radius:8px}
.scr-table-wrap:focus-visible{outline:3px solid var(--accent,#B31942);outline-offset:2px}
.scr-table{width:100%;border-collapse:collapse;font-size:.85rem;line-height:1.4}
.scr-table th,.scr-table td{padding:.5rem .6rem;text-align:left;vertical-align:top;border-bottom:1px solid #e3e9f1}
.scr-table thead{background:linear-gradient(90deg,#19283f 0%,#1e1629 48%,#35111f 100%)}
.scr-table thead th{background:transparent;color:#fff;font-weight:650;font-size:.8rem;white-space:nowrap}
.scr-table tbody th{color:var(--navy,#0A3161);font-weight:700;min-width:11rem}
.scr-table tbody tr:nth-child(even){background:#f7f9fc}
.scr-table tbody tr:last-child>*{border-bottom:0}
.scr-why h4{font-size:.92rem;color:var(--accent,#B31942);margin:.6rem 0 .15rem}
.scr-why p{font-size:.92rem;line-height:1.5;margin:0}
.scr-sources{margin:0;padding-left:1.1rem;font-size:.86rem;line-height:1.45}
.scr-sources li+li{margin-top:.25rem}
.scr-sources a{color:var(--navy,#0A3161);text-decoration:underline;text-underline-offset:2px}
.scr-sources a:hover{color:var(--accent,#B31942)}
.scr-checked{margin:.5rem 0 0;font-size:.78rem;color:var(--muted,#3d4a5c)}
html.scr-lock{overflow:hidden}

/* Guideline sources */
.gs-section{max-width:1200px;margin:0 auto;padding:2rem 1.5rem 1.75rem;border-top:1px solid var(--border,#d5dde8)}
.gs-section h2{font-size:1.5rem;margin:0 0 .25rem;text-align:left}
.gs-intro{margin:0 0 .6rem;color:var(--muted,#3d4a5c);font-size:.92rem}
.gs-legend{list-style:none;display:flex;flex-wrap:wrap;gap:.35rem 1rem;margin:0 0 .9rem;padding:0;font-size:.8rem;color:var(--muted,#3d4a5c)}
.gs-legend li{display:inline-flex;align-items:center;gap:.35rem}
.gs-dot{width:.7rem;height:.7rem;border-radius:3px;background:var(--gs-c);display:inline-block}
.gs-grid{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:.6rem;margin:0;padding:0}
.gs-card a{display:flex;gap:.6rem;align-items:flex-start;height:100%;padding:.6rem .7rem;border:1px solid #d7e0ea;border-left:4px solid var(--gs-c);border-radius:9px;background:var(--gs-bg);color:inherit;text-decoration:none;transition:box-shadow .15s,transform .15s}
.gs-card a:hover{box-shadow:0 6px 16px rgba(15,39,68,.12);transform:translateY(-1px)}
.gs-card a:focus-visible{outline:3px solid var(--accent,#B31942);outline-offset:2px}
.gs-badge{flex:none;display:grid;place-items:center;width:2.6rem;height:2.6rem;border-radius:50%;background:var(--gs-c);color:#fff;font-size:.68rem;font-weight:800;letter-spacing:.02em}
.gs-text{display:flex;flex-direction:column;min-width:0}
.gs-tag{font-size:.62rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--gs-c)}
.gs-short{font-weight:800;color:var(--navy,#0A3161);font-size:.98rem;line-height:1.2}
.gs-full{font-size:.78rem;color:var(--text,#1e293b);line-height:1.3}
.gs-focus{font-size:.76rem;color:var(--muted,#3d4a5c);line-height:1.3;margin-top:.15rem}
.gs-card a:hover .gs-short{color:var(--accent,#B31942)}
.gs-prev{--gs-c:#0A3161;--gs-bg:#f3f6fb}
.gs-cancer{--gs-c:#B31942;--gs-bg:#fdf4f6}
.gs-heart{--gs-c:#3B5B8C;--gs-bg:#f5f8fc}
.gs-id{--gs-c:#8C1233;--gs-bg:#fbf6f7}
.gs-gov{--gs-c:#1F3F6E;--gs-bg:#ffffff}
.gs-gov a{border-style:solid;border-color:#d7e0ea #d7e0ea #d7e0ea var(--gs-c);background-image:linear-gradient(180deg,#ffffff,#f7f9fc)}


/* Drug section reuses the screening card grid */
.scr-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
a.scr-open{text-decoration:none}
a.scr-open:hover .scr-card-more{text-decoration:underline}
.scr-soon{cursor:default}
.scr-soon:hover{transform:none;box-shadow:0 2px 8px rgba(15,39,68,.07);border-color:#d7e0ea}
.scr-badge-soon{margin-top:auto;align-self:flex-start;display:inline-block;font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#B31942;background:#FDECEF;border-radius:999px;padding:.15rem .6rem}

@media (max-width:1000px){.scr-grid,.scr-grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){
  .scr-section{padding:1.1rem 1rem 1.5rem}
  .scr-grid,.scr-grid--3{grid-template-columns:1fr;gap:.8rem}
  .scr-open{flex-direction:row;align-items:stretch}
  .scr-open img{width:38%;aspect-ratio:auto;border-bottom:0;border-right:3px solid var(--navy,#0A3161)}
  .scr-card-body{padding:.55rem .7rem}
  .scr-dialog{width:100%;max-width:100%;max-height:100dvh;height:100dvh;border-radius:0;margin:0}
  .scr-dialog-inner{max-height:100dvh;height:100%}
  .scr-dialog-head img{width:64px;height:36px}
  .scr-dialog-head h3{font-size:1.05rem}
  .scr-dialog-body{padding:.85rem .9rem 1.2rem}
  .scr-summary>div{grid-template-columns:1fr;gap:.05rem}
  /* stack table rows as cards on phones */
  .scr-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .scr-table,.scr-table tbody,.scr-table tr,.scr-table th,.scr-table td{display:block;width:100%}
  .scr-table tr{border-bottom:1px solid #d7e0ea;padding:.35rem 0}
  .scr-table tbody th{background:#eef3f9;border-bottom:0}
  .scr-table td{border-bottom:0;padding:.2rem .6rem}
  .scr-table td::before{content:attr(data-label) ": ";font-weight:700;color:var(--navy,#0A3161)}
  .gs-section{padding:1.5rem 1rem 1.25rem}
  .gs-grid{grid-template-columns:1fr;gap:.45rem}
  .gs-card a{align-items:center;gap:.6rem;padding:.5rem .6rem}
  .gs-badge{width:2.3rem;height:2.3rem;font-size:.62rem}
  .gs-tag,.gs-focus{display:none}
  .gs-short{font-size:.95rem}
}
@media (prefers-reduced-motion:reduce){.scr-open,.gs-card a{transition:none}.scr-open:hover,.gs-card a:hover{transform:none}}

/* ===== Newsletter card (homepage) ===== */
.nl-card{max-width:460px;margin:0 auto;background:#fff;border:1px solid #d7e0ea;border-top:4px solid var(--navy,#0A3161);border-radius:12px;box-shadow:0 4px 14px rgba(15,39,68,.08);padding:1.1rem 1.25rem 1.2rem}
.nl-card .subscribe-form{max-width:none;margin:0;gap:.55rem}
.nl-card .subscribe-form input,.nl-card .subscribe-form select{padding:.6rem .8rem;font-size:.95rem;background:#fff}
.nl-card .subscribe-form .check-consent{font-size:.86rem;line-height:1.4}
.nl-card .subscribe-form .check-consent a{color:var(--accent,#B31942);font-size:.86rem}
.nl-card .subscribe-form button{width:100%;margin-top:.35rem}
.nl-card .note{margin-top:.6rem}

/* ===== Inner pages (drugs, trials) ===== */
.pg-page{max-width:1200px;margin:0 auto;padding:1.5rem 1.5rem 2rem}
.pg-page .scr-head h1{font-size:1.75rem;margin:0;color:var(--navy,#0A3161);line-height:1.2}
.pg-group{margin-top:1.6rem;scroll-margin-top:84px}
.pg-group .scr-head{margin-bottom:.75rem}
.pg-group .scr-head h2{font-size:1.3rem}
.pg-grid{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:.9rem;margin:0;padding:0}
.pg-card{display:flex;flex-direction:column;gap:.35rem;background:#fff;border:1px solid #d7e0ea;border-top:3px solid var(--navy,#0A3161);border-radius:12px;box-shadow:0 2px 8px rgba(15,39,68,.07);padding:.85rem .95rem .9rem;min-width:0;overflow-wrap:anywhere}
button.pg-card{width:100%;font:inherit;text-align:left;color:inherit;cursor:pointer}
button.pg-card:focus-visible{outline:3px solid #B22234;outline-offset:2px}
.pg-tag{align-self:flex-start;font-size:.65rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#B31942;background:#FDECEF;border-radius:999px;padding:.12rem .55rem}
.pg-tag.is-navy{color:var(--navy,#0A3161);background:#E8EEF7}
.pg-card h3{font-size:1rem;line-height:1.3;color:var(--navy,#0A3161);margin:0}
.pg-card p{font-size:.88rem;line-height:1.45;margin:0;color:var(--text,#1e293b)}
.pg-meta{font-size:.78rem!important;color:var(--muted,#3d4a5c)!important}
.pg-link{margin-top:auto;padding-top:.25rem;font-size:.84rem;font-weight:650;color:var(--accent,#B31942);text-decoration:none}
.pg-link:hover{text-decoration:underline}
.pg-note{margin:1.4rem 0 0;font-size:.82rem;color:var(--muted,#3d4a5c)}
/* trials search */
.tr-search{background:#fff;border:1px solid #d7e0ea;border-top:4px solid var(--navy,#0A3161);border-radius:12px;box-shadow:0 4px 14px rgba(15,39,68,.08);padding:1rem 1.1rem;max-width:760px}
.tr-search form{display:flex;gap:.6rem;align-items:flex-end;flex-wrap:wrap}
.tr-search label{display:block;font-weight:600;font-size:.88rem;color:var(--navy,#0A3161);margin-bottom:.25rem}
.tr-field{flex:1 1 260px;min-width:0}
.tr-field input{width:100%;padding:.62rem .8rem;border:1px solid var(--border,#d5dde8);border-radius:8px;font-size:.98rem}
.tr-search .cta-button{padding:.65rem 1.4rem}
.tr-chips{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin-top:.75rem}
.tr-chips span{font-size:.82rem;font-weight:700;color:var(--muted,#3d4a5c);margin-right:.15rem}
.tr-chip{appearance:none;font:inherit;font-size:.8rem;font-weight:600;color:var(--navy,#0A3161);background:#f3f6fb;border:1px solid #d7e0ea;border-radius:999px;padding:.2rem .7rem;cursor:pointer}
.tr-chip:hover,.tr-chip[aria-pressed="true"]{color:#fff;background:var(--accent,#B31942);border-color:var(--accent,#B31942)}
.tr-chip:focus-visible{outline:3px solid var(--accent,#B31942);outline-offset:2px}
.tr-status-line{margin:.9rem 0 .6rem;font-size:.85rem;color:var(--muted,#3d4a5c)}
.tr-loading{padding:1.2rem;border:1px dashed #c9d5e3;border-radius:12px;text-align:center;color:var(--muted,#3d4a5c);font-size:.92rem}
.tr-groups{display:flex;flex-direction:column;gap:1.25rem}
.tr-group > h3{margin:0 0 .55rem;font-size:1.05rem;color:var(--navy,#0A3161)}
.tr-phase{margin:0 0 .85rem}
.tr-phase h4{margin:0 0 .4rem;font-size:.82rem;letter-spacing:.04em;text-transform:uppercase;color:var(--accent,#B31942)}
.tr-more{margin-top:.9rem}
@media (max-width:600px){
  .pg-page{padding:1.1rem 1rem 1.5rem}
  .pg-page .scr-head h1{font-size:1.45rem}
  .pg-grid{grid-template-columns:1fr}
  .tr-search .cta-button{width:100%}
}
