@layer responsive {
.directory-group{margin:35px 0 52px}
.directory-group>h2,.directory-heading{font:600 clamp(22px,3vw,30px)/1.25 var(--sans);letter-spacing:-.035em;margin:30px 0 20px}
.directory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:16px}
.directory-card{display:flex;flex-direction:column;gap:11px;min-width:0;padding:24px;border:1px solid #d6dfce;border-radius:16px;background:linear-gradient(145deg,#fffefa,#edf2e7);color:var(--ink);overflow-wrap:anywhere;transition:transform .2s,border-color .2s,box-shadow .2s}
.directory-card h3{font:400 clamp(23px,2.5vw,29px)/1.17 var(--serif);letter-spacing:-.025em}
.directory-card p{font-size:15px;line-height:1.65;margin-bottom:8px}
.directory-card .eyebrow{font-size:11px;color:#4e6555}
.directory-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#e0ead6;color:#183e32}
.directory-card .text-link{margin-top:auto;font-size:13px}
.directory-notice{background:#edf2e7;border:1px solid #d3dfca;border-radius:12px;padding:19px 22px;margin:0 0 24px;line-height:1.65;font-size:15px}
.directory-notice p{margin-top:6px}
.directory-source{margin:0 0 22px;font-size:14px}
.directory-source a{text-decoration:underline;text-underline-offset:4px;color:#28583e}
.exam-directory .directory-grid+p,.exam-directory .directory-grid+.directory-notice{margin-top:24px}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.directory-card:hover{transform:translateY(-3px);border-color:#779b72;box-shadow:0 12px 30px #193c311a}}
@media(max-width:600px){.directory-card{padding:20px}.directory-group{margin:26px 0 35px}}
@media(prefers-reduced-motion:reduce){.directory-card{transition:none}}
}
@layer responsive {
.directory-card h3{font:700 clamp(20px,2.3vw,27px)/1.24 var(--sans);letter-spacing:-.025em;color:#183b32;}
.directory-card .science-icon{width:52px;height:52px;border-radius:14px;border:1px solid currentColor;background:#e8efdf;color:#365f40}
.directory-card .science-icon svg{width:27px;height:27px}
.directory-card .tone-green{background:#e7f0df;color:#37613f;border-color:#cedec5}
.directory-card .tone-teal{background:#e0efeb;color:#236760;border-color:#c4ded6}
.directory-card .tone-amber{background:#f5ebd8;color:#8a5d23;border-color:#e9d6b5}
.directory-card .tone-violet{background:#ede8f5;color:#65468a;border-color:#ded3ef}
.directory-card .tone-rose{background:#f7e6e7;color:#954b56;border-color:#ebcdd0}
.directory-card .tone-blue{background:#e5edf6;color:#395e8e;border-color:#cdddeb}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
.directory-card .science-icon{transition:transform .18s ease,box-shadow .18s ease}
.directory-card:hover .science-icon{transform:translateY(-2px) scale(1.05);box-shadow:0 4px 14px #183c3214}
}
}

/* Science collection — tactile, restrained illustration tiles. */
@layer responsive {
  .directory-card, .up-subject-card, .up-unit-card{
    --science-accent:#37613f;--science-tint:#e7f0df;--science-edge:#cedec5;
    position:relative;isolation:isolate;
    border-radius:20px;
    background:linear-gradient(150deg,#fffefa 4%,#f7f9f3 75%,var(--science-tint) 150%);
    border:1px solid #dce4d8;
    box-shadow:0 3px 10px #233e2810;
  }
  .directory-card:has(.tone-teal),.up-subject-card:has(.tone-teal),.up-unit-card:has(.tone-teal){--science-accent:#236760;--science-tint:#e0efeb;--science-edge:#c4ded6}
  .directory-card:has(.tone-amber),.up-subject-card:has(.tone-amber),.up-unit-card:has(.tone-amber){--science-accent:#8a5d23;--science-tint:#f5ebd8;--science-edge:#e9d6b5}
  .directory-card:has(.tone-violet),.up-subject-card:has(.tone-violet),.up-unit-card:has(.tone-violet){--science-accent:#65468a;--science-tint:#ede8f5;--science-edge:#ded3ef}
  .directory-card:has(.tone-rose),.up-subject-card:has(.tone-rose),.up-unit-card:has(.tone-rose){--science-accent:#954b56;--science-tint:#f7e6e7;--science-edge:#ebcdd0}
  .directory-card:has(.tone-blue),.up-subject-card:has(.tone-blue),.up-unit-card:has(.tone-blue){--science-accent:#395e8e;--science-tint:#e5edf6;--science-edge:#cdddeb}
  .directory-card .science-icon,.up-portal .science-icon{
    flex:none;position:relative;overflow:hidden;isolation:isolate;
    width:60px;height:60px;border-radius:18px;
    background:linear-gradient(145deg,#ffffffc9,var(--science-tint));
    color:var(--science-accent);border-color:var(--science-edge);
    box-shadow:inset 0 1px 0 #fff,0 3px 8px #223b3010;
  }
  .directory-card .science-icon::before,.up-portal .science-icon::before{
    content:"";position:absolute;z-index:-1;width:54px;height:54px;border-radius:50%;
    border:1px solid currentColor;opacity:.07;top:-23px;right:-21px;box-shadow:0 0 0 7px currentColor;
  }
  .directory-card .science-icon svg,.up-portal .science-icon svg{width:33px;height:33px;overflow:visible}
  .directory-card .eyebrow,.up-subject-card .up-mini,.up-unit-card .up-mini{color:var(--science-accent);font-weight:650;letter-spacing:.055em}
  .directory-card h3,.up-subject-card h2,.up-unit-card h2{font-weight:750;line-height:1.2;letter-spacing:-.028em}
  .directory-card .text-link{color:var(--science-accent)}
  .directory-card:focus-visible,.up-subject-card:focus-visible,.up-unit-card:focus-visible{outline:3px solid var(--science-accent);outline-offset:3px}
  @media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
    .directory-card,.up-subject-card,.up-unit-card{transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease}
    .directory-card:hover,.up-subject-card:hover,.up-unit-card:hover{transform:translateY(-3px);border-color:var(--science-accent);box-shadow:0 14px 34px #183c3215}
    .directory-card:hover .science-icon,.up-portal a:hover .science-icon{transform:translateY(-2px) rotate(-3deg) scale(1.045);box-shadow:0 5px 16px #183c321c}
  }
  @media (max-width:600px){
    .directory-card .science-icon,.up-portal .science-icon{width:54px;height:54px;border-radius:15px}
    .directory-card .science-icon svg,.up-portal .science-icon svg{width:30px;height:30px}
  }
  @media (prefers-reduced-motion:reduce){.directory-card,.up-subject-card,.up-unit-card,.science-icon{transition:none!important;transform:none!important}}
}

@layer responsive {
.directory-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:30px}
.directory-actions .directory-card{min-height:210px}
@media(min-width:1200px){.directory-actions{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:480px){.directory-actions{grid-template-columns:1fr;gap:12px}.directory-actions .directory-card{min-height:0}}
}

@layer responsive {
.hy-table-wrap{overflow-x:auto;border:1px solid #cfdcd0;border-radius:16px;margin:20px 0 24px;max-width:100%;background:#fffefa;box-shadow:0 5px 20px #233e2810}
.hy-table-wrap:focus-visible{outline:3px solid #37613f;outline-offset:3px}
.hy-table{width:100%;min-width:580px;border-collapse:separate;border-spacing:0;line-height:1.55;font-size:15px;color:#183b32}
.hy-table caption{text-align:left;font-weight:750;font-size:18px;padding:18px 20px;background:#e7f0df}
.hy-table thead th{background:#224f3c;color:white;text-align:left;font-weight:650}
.hy-table th,.hy-table td{padding:14px 16px;vertical-align:top;border-bottom:1px solid #dce4d8;text-align:left}
.hy-table tbody th{width:23%;font-weight:700}
.hy-table tbody td{width:38.5%}
.hy-table tbody tr:nth-child(even){background:#f2f6ee}
.hy-table tbody tr:last-child>*{border-bottom:0}
.hy-table tbody td:last-child{color:#355841}
.hy-reference{font-size:14px;line-height:1.6;margin:16px 0;color:var(--ink)}
.hy-nav{display:flex;flex-wrap:wrap;gap:12px;margin:25px 0 38px}
.hy-nav a{padding:10px 15px;border:1px solid #c5d6c3;border-radius:10px;color:#28583e;background:#f1f6ed;font-weight:650;text-decoration:none}
.hy-nav a:focus-visible{outline:3px solid #37613f;outline-offset:2px}
@media(hover:hover){.hy-table tbody tr:hover{background:#e6f0e0}.hy-nav a:hover{border-color:#37613f;background:#e6f0e0}}
@media(max-width:600px){.hy-table{font-size:14px;min-width:520px}.hy-table th,.hy-table td{padding:12px}}
@media print{.hy-table-wrap{overflow:visible;box-shadow:none}.hy-table{min-width:0;font-size:11pt}.hy-nav{display:none}}
}

@layer responsive {
.hy-unit-summary{padding:26px 28px;margin:12px 0 22px;border:1px solid #cedec5;border-radius:20px;background:linear-gradient(140deg,#fffefa,#e8f2e5);color:#183b32}
.hy-unit-summary h2{font-size:clamp(23px,3vw,32px);line-height:1.22;letter-spacing:-.025em;margin:8px 0}
.hy-unit-summary p{line-height:1.7}.hy-unit-summary a,.hy-outline a,.hy-reference a,.hy-pyq a,.hy-image-credit a{text-decoration:underline;text-underline-offset:3px;color:#28583e}
.hy-outline{margin:20px 0 36px;padding:22px;border:1px solid #d6e1d3;border-radius:18px;background:#fffefa;color:#183b32}
.hy-outline h2{font-size:22px;margin:0 0 12px}.hy-outline ol{list-style:none;margin:0;padding:0}.hy-outline li{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #e0e8dd;padding:14px 0;line-height:1.5}
.hy-outline li span{flex:none;font-size:13px;color:#526657}.hy-detail-meta{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 18px}.hy-detail-meta span{padding:6px 11px;border:1px solid #cedec5;border-radius:20px;color:#28583e;background:#f1f6ed;font-size:12px;font-weight:650}
.hy-science-figure{margin:0 0 24px;padding:20px;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:center;gap:22px;border:1px solid #d6e1d3;border-radius:20px;background:#fff;color:#183b32;box-shadow:0 5px 20px #233e280d}
.hy-science-figure img{display:block;max-width:100%;width:100%;height:auto;max-height:420px;object-fit:contain}.hy-science-figure a:focus-visible{outline:3px solid #37613f;outline-offset:3px}.hy-science-figure figcaption{font-size:15px;line-height:1.65}.hy-science-figure figcaption>strong{display:block;font-size:17px;margin-bottom:5px}.hy-image-credit{display:block;margin-top:12px;font-size:12px;line-height:1.65;color:#526657}
.hy-detailed .hy-table{min-width:800px;font-size:15px}.hy-detailed .hy-table tbody th{width:18%;background:#edf3e9}.hy-detailed .hy-table tbody td{width:auto}.hy-detailed .hy-table tbody td:last-child{background:#eaf3ea;color:#234a37;font-weight:550}.hy-detailed .hy-table caption{background:linear-gradient(100deg,#e4efde,#f2f5ec);font-size:19px}.hy-detailed .hy-table thead th{padding:15px 17px}.hy-detailed .hy-table tbody td,.hy-detailed .hy-table tbody th{padding:15px 17px;line-height:1.65}
.hy-takeaway{padding:18px 20px;border-left:4px solid #37613f;background:#eef5e9;border-radius:0 12px 12px 0;margin:24px 0;color:#183b32}.hy-takeaway strong{font-size:15px}.hy-takeaway p{margin:6px 0 0;line-height:1.65}
.hy-pyq{margin:25px 0;color:#183b32}.hy-pyq h2{font-size:23px;margin-bottom:12px}.hy-pyq article{background:#fffefa;border:1px solid #d6e1d3;border-radius:12px;margin:10px 0;padding:15px 18px}.hy-pyq article h3{font-size:15px;margin:0 0 5px}.hy-pyq article p{margin:0;line-height:1.6}.hy-pyq-status{font-size:13px;color:var(--ink);margin:16px 0}
@media(max-width:650px){.hy-science-figure{grid-template-columns:1fr;padding:14px;gap:12px}.hy-outline li{align-items:flex-start;flex-direction:column;gap:3px}.hy-detailed .hy-table{font-size:14px;min-width:700px}.hy-detailed .hy-table tbody td,.hy-detailed .hy-table tbody th{padding:12px}}
@media print{.hy-science-figure{box-shadow:none;break-inside:avoid}.hy-detailed .hy-table{min-width:0;font-size:10pt}.hy-takeaway,.hy-pyq article{break-inside:avoid}}
}
