/* Grahan calendar: site variables, layouts and controls; no independent theme. */
#gc{margin:20px 0;min-width:0}
#gc [hidden],#gcLegacy[hidden],#fsGuide[hidden]{display:none!important}
#gc h2{font-size:22px;margin:0 0 12px;font-family:inherit;line-height:1.5}
#gc h3{font-size:18px;margin:18px 0 10px;font-family:inherit}
#gc p{margin:8px 0;line-height:1.8}
#gc .gc-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:9px;margin:10px 0}
#gc .gc-row label{display:grid;gap:4px;font-size:13px;flex:1;min-width:115px}
#gc .gc-row :is(select,input){max-width:100%;min-width:0;width:100%;box-sizing:border-box}
#gc .gc-world{display:flex;gap:7px;margin-bottom:15px}
#gc .gc-world button{flex:1;min-height:48px;font-weight:600}
#gc button[aria-pressed=true],#gc button[aria-selected=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
#gc .gc-view{display:flex;flex-wrap:wrap;gap:7px}
#gc .gc-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;direction:ltr;margin:10px 0}
#gc .gc-calendar>div{text-align:center;font-size:12px;overflow:hidden}
#gc .gc-calendar button{position:relative;min-width:0;min-height:48px;border-radius:9px;padding:5px 1px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:14px;line-height:1.2}
#gc .gc-calendar button[data-event]{background:var(--card2);border-color:var(--accent);font-weight:700}
#gc .gc-calendar button span{font-size:12px;min-height:13px}
#gc .gc-year{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px}
#gc .gc-year section{border:1px solid var(--line);border-radius:12px;padding:10px;min-width:0}
#gc .gc-year h3{margin:0 0 5px;font-size:16px}
#gc .gc-events{display:grid;gap:8px;margin:12px 0}
#gc .gc-event{display:flex;gap:10px;align-items:center;text-align:start;border-radius:12px;padding:12px;line-height:1.6}
#gc .gc-event>span:first-child{font-size:24px;width:30px;text-align:center;flex-shrink:0}
#gc .gc-event small{display:block;color:var(--muted);font-size:13px}
#gc .gc-details{margin-top:18px}
#gc .gc-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}
#gc .gc-metrics div{padding:10px;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}
#gc .gc-metrics dt{color:var(--muted);font-size:13px}
#gc .gc-metrics dd{margin:4px 0 0;font-weight:600}
#gc .gc-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}
#gc .gc-table th,#gc .gc-table td{padding:9px 5px;border-bottom:1px solid var(--line);text-align:start;vertical-align:top;overflow-wrap:anywhere}
#gc .gc-table th:first-child{width:16%}
#gc .gc-table th:last-child{width:28%}
#gc .gc-figure{margin:18px 0 12px;padding:12px;background:var(--bg2);border:1px solid var(--line);border-radius:12px;min-width:0}
#gc .gc-figure svg{display:block;width:100%;max-height:350px;direction:ltr}
#gc .gc-figure figcaption{font-size:13px;color:var(--muted)}
#gc input[type=range]{width:100%;padding:0;min-height:44px;direction:ltr;accent-color:var(--accent)}
#gc .gc-status{padding:10px 12px;border-inline-start:4px solid var(--accent);background:var(--bg2);font-weight:600}
#gc .gc-note{font-size:13px;color:var(--muted)}
#gc .gc-book{border-top:1px solid var(--line);margin-top:20px;padding-top:14px}
#gc .gc-book details{margin:8px 0}
#gc .gc-book summary,#gcLegacy>summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:600}
#gc [dir=ltr]{unicode-bidi:isolate}
#gcLegacy{margin:25px 0;border-top:1px solid var(--line)}
@media(min-width:850px){#gc .gc-layout{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(380px,1.1fr);gap:18px;align-items:start}#gc .gc-details{margin-top:0}}
@media(prefers-reduced-motion:reduce){#gc *{scroll-behavior:auto!important;transition:none!important}}
