/* SpaceTRC 7 — scoped, readable programme and publication workspaces. */
#strc-root .rp-page{--rp-ink:#e3f0ed;--rp-muted:#a8bdc4;--rp-line:#2b4852;--rp-accent:#95dec9;color:var(--rp-ink);max-width:1500px;margin-inline:auto;line-height:1.75}
#strc-root .rp-page *{box-sizing:border-box;min-inline-size:0}
#strc-root .rp-page [hidden]{display:none!important}
#strc-root .rp-page h2,#strc-root .rp-page h3{color:var(--rp-ink);line-height:1.18;font-weight:450;letter-spacing:-.035em}
#strc-root .rp-page h2{font-size:clamp(28px,3vw,45px);margin:12px 0 22px}
#strc-root .rp-page h3{font-size:clamp(20px,1.8vw,28px);margin:14px 0}
#strc-root .rp-page p{margin:12px 0 20px;color:var(--rp-muted)}
#strc-root .rp-kicker{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px!important;line-height:1.8!important;letter-spacing:.16em;text-transform:uppercase;color:var(--rp-accent)!important}
#strc-root .rp-hero{display:grid;grid-template-columns:1.25fr 1fr;gap:clamp(24px,4vw,70px);align-items:center;padding:clamp(26px,4.5vw,70px);border:1px solid var(--rp-line);border-radius:20px;background:radial-gradient(ellipse at 92% 20%,#19414a55,transparent 60%),#0a1b24;margin:32px 0}
#strc-root .rp-hero h2{font-size:clamp(40px,5vw,76px);line-height:1.04;margin:24px 0 30px;letter-spacing:-.055em}
#strc-root .rp-hero .rp-lede{font-size:clamp(16px,1.5vw,20px);line-height:1.8;max-width:720px}
#strc-root .rp-hero figure{margin:0;text-align:center}
#strc-root .rp-hero svg{display:block;width:100%;height:auto;max-height:430px}
#strc-root .rp-hero figcaption{font-size:11px;color:#90b3bc;font-family:ui-monospace,monospace;letter-spacing:.04em}
#strc-root .rp-nav{display:flex;flex-wrap:wrap;gap:4px;border-top:1px solid var(--rp-line);border-bottom:1px solid var(--rp-line);padding:10px 0;margin:28px 0 34px}
#strc-root .rp-nav a{display:inline-flex;align-items:center;min-height:46px;padding:8px 17px;border-radius:5px;color:#c6dedc;font-size:13px;text-decoration:none}
#strc-root .rp-nav a:hover{background:#18363e;color:#fff}
#strc-root .rp-programmes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:28px 0 32px}
#strc-root .rp-programmes article{padding:clamp(20px,2vw,32px);border-top:1px solid #47727a;background:linear-gradient(150deg,#10293277,transparent);border-radius:0 0 12px 12px}
#strc-root .rp-programmes article>span{font-size:10px;font-family:ui-monospace,monospace;color:#8ccaba;letter-spacing:.1em}
#strc-root .rp-programmes article p{font-size:14px;line-height:1.85;margin-bottom:0}
#strc-root .rp-panel{background:#10232d;border:1px solid var(--rp-line);border-radius:16px;padding:clamp(22px,3vw,45px);margin:28px 0 38px;scroll-margin-top:115px}
#strc-root .rp-section-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
#strc-root .rp-section-head h2{margin-bottom:28px}
#strc-root .rp-badge{display:inline-flex;align-items:center;min-height:34px;background:#173b36;color:#b4e6d4;padding:5px 12px;border:1px solid #36685e;border-radius:30px;font-size:11px;white-space:normal;line-height:1.6;flex-shrink:0;max-width:40%}
#strc-root .rp-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--rp-line);padding-bottom:18px;margin-bottom:28px}
#strc-root .rp-tabs button{border:1px solid #345560;background:#102731;color:#bfd6d9;min-height:46px;cursor:pointer;padding:10px 17px;border-radius:6px;font:inherit;font-size:13px}
#strc-root .rp-tabs button[aria-selected=true]{color:#05271f;background:#9cddc7;border-color:#9cddc7}
#strc-root .rp-page label{display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.75;color:#c4d9dd;margin:16px 0 22px}
#strc-root .rp-page input:not([type=checkbox]):not([type=file]),#strc-root .rp-page textarea,#strc-root .rp-page select{width:100%;max-width:100%;min-height:46px;background:#091b24;border:1px solid #365660;border-radius:6px;padding:12px 14px;color:#e5f3ef;font:inherit;font-size:16px;line-height:1.55;box-shadow:none}
#strc-root .rp-page textarea{resize:vertical;min-height:105px}
#strc-root .rp-page input[type=date]{color-scheme:dark}
#strc-root .rp-page select{appearance:auto;color-scheme:dark}
#strc-root .rp-page input::placeholder,#strc-root .rp-page textarea::placeholder{color:#7f9da7;opacity:1}
#strc-root .rp-page label.rp-check{display:flex;flex-direction:row;gap:12px;align-items:flex-start;border:1px solid #31565b;background:#14313777;border-radius:8px;padding:15px 17px;font-size:13px;line-height:1.85;cursor:pointer}
#strc-root .rp-check input[type=checkbox]{width:20px;height:20px;min-width:20px;min-height:20px;margin:5px 0 0;accent-color:#a0e0c9;cursor:pointer}
#strc-root .rp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
#strc-root .rp-grid label{margin-top:0}
#strc-root .rp-common{grid-template-columns:1fr}
#strc-root .rp-weeks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}
#strc-root .rp-weeks fieldset{border:1px solid #31555f;border-radius:10px;margin:0;padding:16px 20px 2px}
#strc-root .rp-weeks legend{font-family:ui-monospace,monospace;color:#b0e2d0;padding:0 8px;font-size:12px}
#strc-root .rp-weeks label{font-size:12px;margin:12px 0 16px}
#strc-root .rp-date{font-size:11px;font-family:ui-monospace,monospace;margin:0 0 15px!important;color:#9fc7c7!important}
#strc-root .rp-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:22px 0 12px}
#strc-root .rp-page .button{min-height:46px;white-space:normal;text-align:center;line-height:1.6;display:inline-flex;align-items:center;justify-content:center;gap:8px;margin:0;max-width:100%;cursor:pointer;font-size:13px;padding:10px 17px}
#strc-root .rp-page .button:disabled,#strc-root .rp-tabs button:disabled{opacity:.48;cursor:not-allowed}
#strc-root .rp-page .button.primary{background:#99dec8;color:#06261f;border-color:#99dec8}
#strc-root .rp-page .button.small{background:#142f39;border:1px solid #355861;color:#d5e7e5}
#strc-root .rp-page label.rp-file{display:flex;position:relative;gap:10px;margin:0;max-width:100%;overflow:hidden;cursor:pointer}
#strc-root .rp-file input[type=file]{display:block;width:100%;max-width:100%;font-size:12px;color:#aec9cd;cursor:pointer}
#strc-root .rp-actions label.rp-file input[type=file]{max-width:190px}
#strc-root .rp-status{font-size:13px!important;color:#afe2d0!important;line-height:1.85;white-space:pre-line;overflow-wrap:anywhere;min-height:1.8em}
#strc-root .rp-status.rp-error{color:#f4c0a8!important}
#strc-root .rp-note{font-size:12px!important;line-height:1.95!important;color:#9eb9c2!important}
#strc-root .rp-rubric{border-top:1px solid var(--rp-line);border-bottom:1px solid var(--rp-line);padding:14px 0 18px;margin:30px 0}
#strc-root .rp-table-wrap{overflow-x:auto;border:1px solid #31535d;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;margin:20px 0}
#strc-root .rp-page table{width:100%;min-width:480px;border-collapse:collapse;text-align:left;font-size:13px;background:#102b33}
#strc-root .rp-page caption{text-align:left;padding:14px;background:#17343e;color:#d1e6e2;font-family:ui-monospace,monospace;font-size:11px}
#strc-root .rp-page th,#strc-root .rp-page td{padding:14px 16px;border:1px solid #2b4b55;vertical-align:middle;text-align:left;font-weight:400}
#strc-root .rp-page th{color:#c3dedc}
#strc-root .rp-page td label{margin:0}
#strc-root .rp-page td select{max-width:130px;min-width:80px;padding:8px;min-height:44px}
#strc-root .rp-preview:empty,#strc-root [data-rp-history-output]:empty{display:none}
#strc-root .rp-preview{background:#0a1c24;border:1px solid #31545b;border-radius:8px;padding:24px;margin-top:24px}
#strc-root .rp-preview dl{display:grid;grid-template-columns:minmax(120px,.5fr) minmax(0,1.5fr);gap:12px 22px;align-items:start;font-size:13px}
#strc-root .rp-preview dt{color:#7ebfaf;font-family:ui-monospace,monospace;font-size:11px;padding-top:4px}
#strc-root .rp-preview dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#c5d9d9}
#strc-root [data-rp-history-output]{margin:25px 0 0;padding:24px;background:#0a1b24;border:1px solid #31535d;border-radius:9px}
#strc-root [data-rp-history-output] article{padding:20px;border-left:2px solid #76b7a6;background:#102a32;white-space:pre-line;margin:16px 0;color:#c0d9d8;font-size:13px}
#strc-root .rp-page code{display:block;font-family:ui-monospace,monospace;font-size:11px;color:#abd8ce;overflow-wrap:anywhere;white-space:normal;background:transparent;padding:5px 0}
#strc-root .rp-feedback{margin-top:32px;border-top:1px solid #3c686b;padding-top:22px}
#strc-root .rp-reading{padding:24px 0 10px;margin:20px 0}
#strc-root .rp-sources{display:flex;flex-wrap:wrap;gap:14px 25px;padding:22px 0 8px;list-style:none;font-size:12px}
#strc-root .rp-sources a{color:#aadbcf;text-decoration:underline;text-underline-offset:4px}
#strc-root .rp-page :is(a,button,input,textarea,select,[tabindex]):focus-visible{outline:2px solid #e5c693;outline-offset:4px}
@media(max-width:1100px){#strc-root .rp-hero{grid-template-columns:1.4fr 1fr;padding:35px}#strc-root .rp-hero h2{font-size:52px}#strc-root .rp-programmes{gap:12px}#strc-root .rp-programmes article{padding:20px}}
@media(max-width:760px){#strc-root .rp-hero{grid-template-columns:1fr;padding:26px;gap:12px}#strc-root .rp-hero h2{font-size:clamp(38px,8vw,58px)}#strc-root .rp-hero figure{max-width:340px;margin:auto}#strc-root .rp-programmes{grid-template-columns:1fr;gap:16px}#strc-root .rp-programmes article{padding:22px}#strc-root .rp-grid,#strc-root .rp-weeks{grid-template-columns:1fr;gap:12px}#strc-root .rp-panel{padding:22px;border-radius:12px;scroll-margin-top:100px}#strc-root .rp-section-head{flex-direction:column;gap:0}#strc-root .rp-badge{max-width:100%;margin-bottom:20px}#strc-root .rp-nav a{padding:8px 12px;font-size:12px}#strc-root .rp-preview{padding:18px}#strc-root .rp-preview dl{grid-template-columns:1fr;gap:5px}#strc-root .rp-preview dd{margin-bottom:14px}#strc-root .rp-actions{align-items:stretch}#strc-root .rp-actions>.button{flex:1 1 170px}#strc-root .rp-tabs button{flex:1 1 160px}}
@media(prefers-reduced-motion:reduce){#strc-root .rp-page *{scroll-behavior:auto;transition:none;animation:none}}
@media(forced-colors:active){#strc-root .rp-page :is(button,input,textarea,select,fieldset,article,.rp-panel){border:1px solid CanvasText}#strc-root .rp-tabs button[aria-selected=true]{outline:2px solid Highlight}#strc-root .rp-status{color:CanvasText!important}}
@media print{#strc-root .rp-page .rp-actions,#strc-root .rp-page .rp-tabs,#strc-root .rp-page .rp-nav,#strc-root .rp-page input[type=file],#strc-root .rp-page [data-rp-feedback],#strc-root .rp-page [id$="-account"]{display:none!important}#strc-root .rp-page,#strc-root .rp-page p,#strc-root .rp-page h2,#strc-root .rp-page h3,#strc-root .rp-preview dd{color:#111!important;background:#fff!important}#strc-root .rp-panel,#strc-root .rp-hero,#strc-root .rp-preview{border:1px solid #aaa;background:#fff!important;break-inside:avoid}#strc-root .rp-page textarea,#strc-root .rp-page input,#strc-root .rp-page select{color:#111;background:#fff;border:1px solid #aaa}#strc-root .rp-preview{display:block!important}}
