#section-page {

&{--bg:#f2eee6;--bg2:#e8e2d4;--fg:#0f141b;--mut:#5d646d;--line:rgba(15,20,27,.16);--ac:#e2452b;--ink:#0f141b;--paper:#f2eee6;
--serif:"Instrument Serif",Georgia,"Times New Roman",serif;--sans:"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);color-scheme:light}
@media (prefers-color-scheme:dark){&:not([data-theme="light"]){--bg:#10151c;--bg2:#18202a;--fg:#f2eee6;--mut:#a3aab3;--line:rgba(242,238,230,.18);color-scheme:dark}}
&[data-theme="dark"]{--bg:#10151c;--bg2:#18202a;--fg:#f2eee6;--mut:#a3aab3;--line:rgba(242,238,230,.18);color-scheme:dark}
&{scroll-padding-top:env(safe-area-inset-top,0px)}
*,*::before,*::after{box-sizing:border-box}
&{margin:0;background:var(--bg);color:var(--fg);font:400 17px/1.55 var(--sans)}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--ac);outline-offset:3px}
.wrap{max-width:1240px;margin:0 auto;padding:0 clamp(20px,5vw,48px)}
.top{background:var(--ink);color:var(--paper)}
nav{display:flex;align-items:center;justify-content:space-between;padding:22px 0;border-bottom:1px solid rgba(242,238,230,.16)}
.logo{font:400 30px/1 var(--serif)}.logo i{font-style:italic}.logo b{color:var(--ac)}
.btn{display:inline-flex;align-items:center;height:40px;padding:0 20px;border-radius:20px;font:600 15px var(--sans);background:var(--ac);color:#fff}
.crumb{font-size:14px;color:rgba(242,238,230,.65);padding:20px 0 0}
.crumb a:hover{color:var(--paper)}
.head{display:flex;flex-wrap:wrap;gap:24px;justify-content:space-between;align-items:flex-end;padding:18px 0 34px}
h1{font:400 clamp(48px,7vw,96px)/.98 var(--serif);margin:0;letter-spacing:-.015em}
.head p{margin:12px 0 0;color:rgba(242,238,230,.75);max-width:44ch}
.tabs{display:flex;gap:8px;overflow-x:auto;padding:0 0 22px;scrollbar-width:thin}
.tabs a{white-space:nowrap;border:1px solid rgba(242,238,230,.3);border-radius:18px;padding:6px 15px;font-size:14.5px;color:rgba(242,238,230,.85)}
.tabs a[aria-current="page"]{background:var(--paper);color:var(--ink);border-color:var(--paper)}
.main{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:clamp(24px,4vw,56px);padding:48px 0 72px;align-items:start}
.side{position:sticky;top:20px}
h2{font:400 30px/1.1 var(--serif);margin:0 0 16px}
.mats{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.mats button{width:100%;text-align:left;font:400 16.5px var(--sans);color:var(--fg);background:transparent;border:0;border-left:3px solid var(--line);padding:11px 14px;cursor:pointer;display:flex;justify-content:space-between;gap:10px;border-radius:0 10px 10px 0}
.mats button:hover{background:var(--bg2)}
.mats button[aria-pressed="true"]{border-left-color:var(--ac);background:var(--bg2);font-weight:600}
.tag{font-size:12px;color:var(--ac);font-weight:600}
.legend{margin-top:20px;font-size:13.5px;color:var(--mut);display:flex;gap:8px;align-items:center}
.dot{width:9px;height:9px;border-radius:50%;background:var(--ac);display:inline-block;flex:none}
.bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 20px;margin-bottom:8px}
.bar h2{margin:0}.bar span{color:var(--mut);font-size:14.5px}
.rows{border-top:2px solid var(--fg)}
.row{display:grid;grid-template-columns:110px 1fr 1fr;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.yr{font:400 38px/1 var(--serif)}
.ses{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--bg2);border-radius:12px;padding:12px 16px;font-size:15.5px}
.ses:hover{outline:2px solid var(--fg)}
.ses small{color:var(--mut);font-size:13px;display:flex;gap:6px;align-items:center}
.note{margin-top:20px;font-size:13.5px;color:var(--mut)}
@media (max-width:820px){.main{grid-template-columns:1fr}.side{position:static}.mats{flex-direction:row;overflow-x:auto;padding-bottom:6px}.mats button{border-left:0;border-bottom:3px solid var(--line);border-radius:10px 10px 0 0;white-space:nowrap;width:auto}.mats button[aria-pressed="true"]{border-bottom-color:var(--ac)}.row{grid-template-columns:70px 1fr 1fr}.yr{font-size:28px}.ses{padding:10px 12px;flex-direction:column;align-items:flex-start}}
@media (max-width:480px){.row{grid-template-columns:1fr 1fr}.yr{grid-column:1/-1}}

}
body.is-section { background: #f2eee6; }
body.is-section > .site-header { display: none; }
#section-page { width: 100%; margin: 0; padding: 0; --title: var(--serif); --accent: var(--ac); --page: var(--bg); --muted: var(--mut); }
#section-page .wrap { width: 100%; }
#section-page nav { gap: 14px; font-weight: 400; }
#section-page .back { margin: 0; font: inherit; color: inherit; }
#section-page .head { margin: 0; }
#section-page .head h1 { color: var(--paper); }
#section-page .head .section-arabic { font: 400 22px/1.5 var(--sans); margin-top: 8px; }
#section-page .section-views { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 22px; }
#section-page .section-views a { border-bottom: 2px solid transparent; padding: 8px 0; font-size: 16px; }
#section-page .section-views a[aria-current="page"] { border-color: var(--ac); }
#section-page .tabs { font-weight: 400; }
#section-page .main { padding-top: 44px; }
#section-page .mats { max-width: 100%; }
#section-page .mats li { min-width: 0; }
#section-page .mats button { min-height: 44px; align-items: baseline; }
#section-page .tag { font-size: 14px; }
#section-page .subject-badges { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
#section-page .interactive-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--fg); }
#section-page .interactive-symbol { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 19px; height: 19px; border: 1px solid currentColor; border-radius: 50%; font: 600 10px/1 var(--sans); color: var(--fg); }
#section-page .legend, #section-page .note { font-size: 14px; }
#section-page .legend { align-items: start; }
#section-page .row { align-items: start; }
#section-page .yr { padding-top: 10px; }
#section-page .session-entry { min-width: 0; border-radius: 12px; background: var(--bg2); }
#section-page .ses { cursor: pointer; list-style: none; min-height: 70px; margin: 0; flex-wrap: wrap; font-size: 16px; }
#section-page .ses::-webkit-details-marker { display: none; }
#section-page .ses small { font-size: 14px; }
#section-page .session-kind { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
#section-page .corrected-badge { display: inline-flex; align-items: center; flex: none; padding: 3px 8px; border: 1px solid #8fbba7; border-radius: 20px; background: #e6f3ea; color: #205f47; font: 600 12px/1.3 var(--sans); white-space: nowrap; }
#section-page .session-entry[open] .ses { border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
#section-page .exam-resources { padding: 0 14px; font-size: 14px; }
#section-page .exam-resources p { margin: 10px 0; line-height: 1.5; }
#section-page .exam-resources .resource-links { display: grid; gap: 8px; padding: 12px 0; }
#section-page .exam-resources a { padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; line-height: 1.4; }
#section-page .exam-resources .annales-3d { background: var(--ac); color: white; border-radius: 8px; padding: 10px 12px; text-decoration: none; }
#section-page .catalog { border-top: 0; padding: 44px 0 72px; color: var(--fg); }
#section-page .catalog .card { background: var(--bg2); border-color: var(--line); }
#section-page .catalog .card h3 { font: 400 28px/1.1 var(--serif); }
#section-page .catalog h2 { font-weight: 400; letter-spacing: -.02em; }
#section-page .catalog .text-link, #section-page .catalog .card-link { color: var(--ac); }
#section-page .catalog .card p { font-family: var(--sans); }
#section-page .catalog .card-icon svg { max-width: 24px; }
#section-page .catalog .empty { background: var(--bg2); }
#section-page .catalog .search { background: var(--bg2); border-color: var(--line); }
#section-page .catalog .search input { color: var(--fg); }
#section-page .filters button { color: var(--fg); background: var(--bg2); border-color: var(--line); }
#section-page .filters button[aria-pressed="true"] { color: white; background: var(--ac); }
#section-page .search { max-width: 100%; }
body.is-section > .footer { border-color: rgba(15,20,27,.16); color: #5d646d; font-family: 'Instrument Sans', 'Segoe UI', sans-serif; }
body.is-section > .footer .brand { font: 400 26px/1 'Instrument Serif', Georgia, serif; letter-spacing: normal; color: #0f141b; }
body.is-section > .footer .brand > span { color: #e2452b; }
@media (prefers-color-scheme: dark) {
  body.is-section { background: #10151c; }
  body.is-section > .footer { color: #a3aab3; border-color: rgba(242,238,230,.18); }
  body.is-section > .footer .brand { color: #f2eee6; }
}
@media (max-width: 820px) {
  #section-page .side { min-width: 0; }
  #section-page .mats li { flex: 0 0 auto; }
  #section-page .ses { min-height: 84px; align-items: flex-start; }
  #section-page .exam-resources { padding-inline: 10px; }
}
