/*
Theme Name: SCART
Description: Shared SCART and SCART Live design, with accessible navigation and dark content panels.
Version: 1.0.0
*/
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:16px/1.75 system-ui,-apple-system,"Segoe UI",sans-serif;color:#eaf0f6}a{color:#a6d8ff;text-underline-offset:3px}a:hover{color:#ffd166}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #ffd166;outline-offset:3px}h1,h2,h3,h4{line-height:1.3;color:#eaf0f6}h1{font-size:clamp(1.6rem,3vw,2.15rem)}h2{font-size:1.45rem}h3{font-size:1.2rem}.site-grid{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:26px;max-width:1160px;margin:26px auto 40px;padding:0 14px}.site-main{min-width:0}.content-panel,.widget{background:#1b2b3af5;border:1px solid #486779;border-radius:14px;padding:28px;margin-bottom:24px;overflow-wrap:anywhere}.content-panel>:first-child{margin-top:0}.entry-content{line-height:1.85}.entry-content img,.widget img{max-width:100%;height:auto;border-radius:8px}.entry-content iframe{max-width:100%}.entry-content figure{max-width:100%;margin:24px 0}.entry-content table{display:block;max-width:100%;overflow:auto;border-collapse:collapse}.entry-content th,.entry-content td{padding:10px;border:1px solid #486779}.entry-meta,.wp-caption-text,figcaption{font-size:.88rem;color:#afc4d8}.widget{padding:18px}.widget h2,.widget h3{font-size:1.1rem;margin-top:0}.widget ul{padding-left:20px}.widget li{margin-bottom:8px}.site-footer{max-width:1200px;margin:30px auto 0;padding:24px 20px 32px;text-align:center;border-top:1px solid #486779;color:#afc4d8;font-size:.85rem}.site-footer p{margin:7px 0}.skip-link{position:absolute;top:-100px;left:12px;z-index:9999;background:#fff;color:#101923;padding:12px}.skip-link:focus{top:12px}.pagination,.nav-links{display:flex;gap:12px;flex-wrap:wrap}.page-numbers{padding:8px 14px;border:1px solid #486779;border-radius:6px}.page-numbers.current{background:#245846}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}input,textarea,select{max-width:100%;background:#122733;color:#eaf0f6;border:1px solid #486779;border-radius:5px;padding:10px;font:inherit}input[type=submit],button{cursor:pointer;background:#245846;color:#eaf0f6;border:1px solid #74bca1;border-radius:6px;padding:10px 16px}.entry-content div[style*="background:#edf5fa"]{background:#183d50!important}.entry-content div[style*="background:#edf5fa"] p{color:#eaf0f6!important}.entry-content a[style*="background:#205c7b"]{color:#fff!important}.subnav-toggle{font-size:12px;padding:4px 7px;position:absolute;right:0;top:12px}.scart-main-nav>.menu-item-has-children>a{padding-right:30px!important}.scart-main-nav li.subnav-open>ul{display:block}.scart-main-nav ul{box-shadow:0 12px 24px #0006}.scart-shared-header::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,#3189bd,#9cddff,#3189bd);background-size:220% 100%;animation:scart-line 12s linear infinite;pointer-events:none}@keyframes scart-line{to{background-position:220% 50%}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.scart-shared-header::after{animation:none}}@media(max-width:850px){.site-grid{grid-template-columns:1fr}.site-sidebar{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.widget{margin-bottom:0}.content-panel{padding:22px}}@media(max-width:600px){.site-grid{margin-top:20px;padding:0 14px}.content-panel{padding:20px}.scart-main-nav{row-gap:7px!important}}
/* Keep legacy content/plugin colours from overriding the dark palette. */
body.scart-themed .entry-content a{color:#a6d8ff!important}body.scart-themed .entry-content a:hover{color:#ffd166!important}body.scart-themed .entry-content a[style*="background:#205c7b"]{color:#fff!important}body.scart-themed .entry-content h1{font-size:clamp(1.45rem,2.4vw,1.85rem)!important;line-height:1.4!important}body.scart-themed .entry-content h2{font-size:1.45rem!important}body.scart-themed .entry-content p,body.scart-themed .entry-content li{font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important}body.scart-themed .scart-main-nav>.menu-item-has-children>a{padding-right:34px!important}.subnav-toggle{right:4px;top:10px;min-width:24px;min-height:26px;padding:2px 5px}.entry-content>h1:first-child{margin-top:0}.entry-content input[type=submit]{color:#fff!important}
.scart-cta{display:inline-flex;align-items:center;min-height:46px;background:#245846;border:1px solid #74bca1;border-radius:7px;padding:12px 20px;text-decoration:none;font-weight:700}.scart-cta:hover{background:#30735b}
/* Public sidebar buttons and homepage gallery follow the panel geometry. */
.site-sidebar .widget{text-align:center}.site-sidebar .widget ul{text-align:left}.site-sidebar .widget figure,.site-sidebar .widget .wp-block-image{margin-left:auto;margin-right:auto}.site-sidebar .widget .wp-block-buttons{justify-content:center}.site-sidebar .widget a:has(>img){display:inline-block;max-width:100%}.site-sidebar .widget img{display:block;margin-left:auto;margin-right:auto}
.home .entry-content [id^="bwg_container"],.home .entry-content .bwg_slideshow_image_wrap,.home .entry-content .bwg_slideshow_image_container,.home .entry-content .bwg_slideshow_image,.home .entry-content .bwg_slideshow_image_spun{border-radius:12px!important;overflow:hidden!important}
/* Fort Widley station-location table. */
body.page-id-269 .entry-content table{display:table;width:100%;max-width:100%;border-collapse:separate;border-spacing:0;border:1px solid #486779;border-radius:12px;overflow:hidden;background:#152635;margin:18px 0 24px}
body.page-id-269 .entry-content table th,body.page-id-269 .entry-content table td{border:0;border-bottom:1px solid #344c60;padding:13px 16px;text-align:left;vertical-align:top}
body.page-id-269 .entry-content table th{width:38%;background:#203647;color:#c9dce9;font-weight:600;border-right:1px solid #344c60}
body.page-id-269 .entry-content table tr:last-child th,body.page-id-269 .entry-content table tr:last-child td{border-bottom:0}
body.page-id-269 .entry-content table tr:first-child th{border-top-left-radius:11px}body.page-id-269 .entry-content table tr:first-child td{border-top-right-radius:11px}body.page-id-269 .entry-content table tr:last-child th{border-bottom-left-radius:11px}body.page-id-269 .entry-content table tr:last-child td{border-bottom-right-radius:11px}
@media(max-width:600px){body.page-id-269 .entry-content table th,body.page-id-269 .entry-content table td{padding:10px;font-size:14px;overflow-wrap:anywhere}}
.scart-main-nav>li>a[href="https://scartgroup.co.uk/join/"]{background:#245846!important;border-color:#74bca1!important;color:#eaf0f6!important}

/* Align public content and sidebar to the shared 1200px Live page edges. */
body.scart-themed .site-grid{box-sizing:border-box;width:calc(100% - 40px);max-width:1200px;padding:0;margin:26px auto 40px;align-items:start}
body.scart-themed .site-sidebar{min-width:0}
@media(max-width:600px){body.scart-themed .site-grid{width:calc(100% - 28px);padding:0;margin-top:20px}}

/* Match the 10px primary panel corners used by SCART Live. */
body.scart-themed .content-panel,body.scart-themed .site-sidebar .widget,body.scart-themed .scart-contact-card{border-radius:10px!important}

/* SCART Team: dark table, clear roles and consistent portrait sizing. */
body.page-id-14 #tablepress-1{display:table!important;table-layout:auto;width:100%!important;max-width:100%;border-collapse:separate!important;border-spacing:0!important;border:1px solid #486779!important;border-radius:10px!important;overflow:hidden;background:#162a3a!important;color:#eaf0f6!important;font:15px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif!important;margin:18px 0 28px!important}
body.page-id-14 #tablepress-1 thead th{background:#203d50!important;color:#d9f4ed!important;font-weight:700!important;text-align:left;border:0!important;border-bottom:2px solid #5eaa94!important;padding:13px 14px!important;vertical-align:middle}
body.page-id-14 #tablepress-1 tbody td{background:#162a3a!important;color:#e0eaf2!important;border:0!important;border-bottom:1px solid #365064!important;padding:16px 14px!important;text-align:left;vertical-align:middle!important;white-space:normal;overflow-wrap:normal}
body.page-id-14 #tablepress-1 tbody tr:nth-child(even) td{background:#1b3141!important}body.page-id-14 #tablepress-1 tbody tr:hover td{background:#24423f!important}body.page-id-14 #tablepress-1 tbody tr:last-child td{border-bottom:0!important}
body.page-id-14 #tablepress-1 .column-1{width:92px;white-space:nowrap;font-weight:700;color:#92dfc4!important;letter-spacing:.03em}body.page-id-14 #tablepress-1 .column-2{width:155px;font-weight:650;color:#f1f5f8!important}body.page-id-14 #tablepress-1 .column-3{line-height:1.75}body.page-id-14 #tablepress-1 .column-4{width:100px;text-align:center!important}
body.page-id-14 #tablepress-1 img{display:block!important;width:72px!important;height:82px!important;max-width:72px!important;object-fit:cover;object-position:center 20%;border:1px solid #638295!important;border-radius:10px!important;margin:0 auto!important;background:#213747;box-shadow:0 3px 10px #0003}
body.page-id-14 #scart-team{margin-top:30px;margin-bottom:12px}
@media(max-width:650px){body.page-id-14 #tablepress-1{display:block!important;border:0!important;background:transparent!important;overflow:visible!important}body.page-id-14 #tablepress-1 thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}body.page-id-14 #tablepress-1 tbody{display:block}body.page-id-14 #tablepress-1 tbody tr{display:grid;grid-template-columns:minmax(0,1fr) 74px;grid-template-areas:"callsign photo" "name photo" "notes notes";column-gap:12px;row-gap:7px;padding:16px;margin:0 0 12px;border:1px solid #486779;border-radius:10px;background:#162a3a}body.page-id-14 #tablepress-1 tbody tr:nth-child(even){background:#1b3141}body.page-id-14 #tablepress-1 tbody tr td{display:block!important;background:transparent!important;border:0!important;padding:0!important;width:auto!important;min-width:0!important;overflow-wrap:anywhere}body.page-id-14 #tablepress-1 .column-1{grid-area:callsign;align-self:end;font-size:16px}body.page-id-14 #tablepress-1 .column-2{grid-area:name;align-self:start;font-size:16px}body.page-id-14 #tablepress-1 .column-3{grid-area:notes;margin-top:5px;font-size:14px}body.page-id-14 #tablepress-1 .column-4{grid-area:photo}body.page-id-14 #tablepress-1 img{height:78px!important}}
