/*
Theme Name: Skanderborg Skakklub
Theme URI: https://www.skanderborgskakklub.dk/
Author: OpenAI
Description: Blåt, responsivt WordPress-tema med sponsorområde, klubforside og indholdssider med venstremenu.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: skanderborg-skakklub
*/
:root{--navy:#063866;--blue:#075b98;--blue2:#1682c4;--pale:#eaf4fb;--ink:#092b52;--muted:#4e6780;--line:#d9eafa;--white:#fff;--shadow:0 2px 10px rgba(7,61,105,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f7fbff;color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.55}a{color:#075b98;text-decoration:none}a:hover{text-decoration:underline;color:#063866}img{max-width:100%;height:auto}.site-shell{max-width:1280px;margin:0 auto;background:#fff;box-shadow:0 0 28px rgba(3,39,73,.08)}
.sponsor-strip{background:#f3f8fc;border-bottom:1px solid #d6e6f4;padding:12px 22px;display:grid;grid-template-columns:150px repeat(5,minmax(0,1fr));gap:12px;align-items:stretch}.sponsor-label{display:flex;align-items:center;font-weight:800;color:var(--navy);letter-spacing:.04em;border-right:2px solid #c6dff3;padding-left:10px}.sponsor{display:flex;min-height:58px;flex-direction:column;align-items:center;justify-content:center;background:#fff;border:1px solid #e0e9f1;border-radius:5px;color:#213d57;font-weight:700;text-align:center;box-shadow:0 1px 4px rgba(5,52,89,.04);font-size:14px}.sponsor small{display:block;width:100%;background:#d9e1e9;color:#5c3d1e;font-size:9px;letter-spacing:.08em;padding:3px}.sponsor.gold small{background:#efb34c}.sponsor strong{padding:6px 4px;font-size:15px}
.topnav{height:46px;background:linear-gradient(90deg,#063866,#07518b);display:flex;align-items:center;justify-content:space-between;padding:0 32px;color:#fff}.topnav a{color:#fff;font-weight:700;text-transform:uppercase;font-size:14px}.topnav .nav-links{display:flex;align-items:center;justify-content:flex-start;gap:34px;flex:1}.topnav .nav-links ul.top-menu{display:flex;align-items:center;justify-content:flex-start;gap:34px;list-style:none;margin:0;padding:0}.topnav .nav-links ul.top-menu li{list-style:none;margin:0;padding:0}.topnav .nav-right{display:flex;align-items:center;justify-content:flex-end;margin-left:auto}.search-form{display:flex;gap:6px}.search-form input{width:130px;border:1px solid #b9d5ed;border-radius:4px;padding:5px 8px}.search-form button{background:transparent;border:0;color:#fff;font-size:22px;cursor:pointer}.hero{min-height:148px;padding:12px 30px;display:flex;align-items:center;gap:28px;background:linear-gradient(90deg,rgba(236,247,255,.97) 0%,rgba(236,247,255,.94) 48%,rgba(236,247,255,.18) 100%),url('images/hero-chess.jpg') center 45%/cover no-repeat;border-bottom:1px solid #e3eff8}.hero-logo{width:118px;height:118px;object-fit:contain;flex:0 0 auto}.hero h1{font-size:clamp(30px,4vw,48px);line-height:1.1;margin:0 0 8px;color:#09284d}.hero p{margin:0;font-size:20px;color:#123f70}
.home-content{padding:18px 28px 12px}.feature-grid,.info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.feature-card{position:relative;min-height:252px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#f3f9ff;box-shadow:var(--shadow);display:flex;flex-direction:column}.feature-card .card-photo{position:absolute;inset:0 0 0 auto;width:46%;height:100%;object-fit:cover;opacity:.88;mask-image:linear-gradient(90deg,transparent 0%,#000 32%)}.feature-card:nth-child(2){background:#e7f3fd}.feature-card:nth-child(2) .card-photo{width:52%;mask-image:linear-gradient(90deg,transparent 0%,#000 35%)}.feature-card:nth-child(3) .card-photo{width:42%;mask-image:linear-gradient(90deg,transparent 0%,#000 35%)}.card-inner{position:relative;z-index:1;padding:17px 18px;max-width:76%;display:flex;flex-direction:column;flex:1}.feature-card h2{font-size:23px;line-height:1.15;margin:0 0 3px;color:#0a315e}.feature-card .sub{font-size:14px;color:#07518b;margin:0 0 14px}.round-icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#0869a9,#063866);color:#fff;font-size:24px;font-weight:bold;margin-bottom:10px}.feature-card ul{list-style:none;margin:0;padding:0;font-size:14px}.feature-card li{margin:6px 0}.feature-card li:before{content:'✓';font-weight:900;color:#075b98;margin-right:8px}.button{display:inline-block;align-self:flex-start;margin-top:auto;background:linear-gradient(90deg,#075b98,#063866);color:#fff;border-radius:9px;padding:9px 15px;font-weight:700;font-size:13px}.button:hover{color:#fff;text-decoration:none;filter:brightness(1.1)}.info-grid{margin-top:14px}.panel{border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:var(--shadow);padding:14px 16px;min-height:326px;overflow:hidden}.panel-heading{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e5eff8;padding-bottom:8px;margin-bottom:8px}.panel-heading .symbol{font-size:26px;color:#07518b}.panel h2{font-size:19px;margin:0;color:#0a315e}.panel-heading a{margin-left:auto;font-size:12px;white-space:nowrap}.news-item{display:flex;gap:12px;padding:8px 0;border-bottom:1px solid #e4eef7}.news-item:last-child{border-bottom:0}.news-item img{width:86px;height:63px;object-fit:cover;border-radius:6px}.news-item time{font-size:11px;color:#60758b;display:block}.news-item strong{display:block;font-size:13px;line-height:1.3}.news-item p{margin:2px 0;font-size:12px;color:#536c83}.event{display:grid;grid-template-columns:54px 1fr;gap:10px;padding:6px 0;border-bottom:1px solid #e5eff8}.event-date{border-radius:7px;background:#e6f3fd;text-align:center;color:#07518b;font-weight:800;line-height:1.1;padding:5px}.event-date small{display:block;font-size:10px}.event-date strong{display:block;font-size:22px}.event strong{display:block;font-size:13px;line-height:1.3}.event p{font-size:12px;margin:1px 0;color:#536c83;line-height:1.3}.puzzle-layout{display:grid;grid-template-columns:58% 1fr;gap:12px;align-items:center;padding-top:4px}.chessboard{aspect-ratio:1;display:grid;grid-template-columns:repeat(8,1fr);border:3px solid #174d7e;max-width:100%}.chessboard span:nth-child(16n+1),.chessboard span:nth-child(16n+3),.chessboard span:nth-child(16n+5),.chessboard span:nth-child(16n+7),.chessboard span:nth-child(16n+10),.chessboard span:nth-child(16n+12),.chessboard span:nth-child(16n+14),.chessboard span:nth-child(16n+16){background:#8bb6d7}.chessboard span{display:flex;align-items:center;justify-content:center;background:#edf5fb;font-size:clamp(10px,1.4vw,21px);color:#092b52}.puzzle-copy strong{font-size:15px;line-height:1.3;display:block}.puzzle-copy p{font-size:12px;color:#536c83}.puzzle-copy .button{font-size:11px;padding:8px}
.site-footer{margin-top:0;background:linear-gradient(100deg,#042e55,#07518b);color:#fff;padding:25px 28px;display:grid;grid-template-columns:1fr 1fr;gap:30px;min-height:145px}.site-footer a{color:#fff}.footer-contact{font-size:13px;align-self:center}.footer-links{border-left:1px solid rgba(255,255,255,.35);padding-left:20px;font-size:12px}.footer-links strong{display:block;text-transform:uppercase;margin-bottom:6px}.footer-links ul{list-style:none;margin:0;padding:0}.footer-links li{margin:2px 0}
/* Content pages with left-hand navigation */
.page-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:28px;padding:28px;min-height:440px}.page-sidebar{align-self:start;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#f4f9fd}.page-sidebar h2{font-size:17px;color:#fff;background:var(--navy);padding:13px 16px;margin:0}.page-sidebar ul{list-style:none;padding:8px 0;margin:0}.page-sidebar li a{display:block;padding:9px 15px;border-bottom:1px solid #e0edf7;color:#17456f;font-weight:600}.page-sidebar li.current-menu-item>a,.page-sidebar li.current_page_item>a{background:#dceefb;border-left:4px solid #1682c4;padding-left:11px}.page-sidebar .sub-menu{padding-left:12px}.page-article{min-width:0}.page-article h1{font-size:34px;line-height:1.2;margin:0 0 18px;color:#09284d}.page-article h2{color:#0a477b}.page-article p,.page-article li{line-height:1.75}.page-article img{border-radius:8px}.breadcrumbs{font-size:12px;color:#68829a;margin-bottom:10px}.pagination{padding:20px 0}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.sponsor-strip{grid-template-columns:repeat(3,1fr)}.sponsor-label{grid-column:1/-1;border-right:0;border-bottom:1px solid #c6dff3;padding:0 0 7px}.feature-grid,.info-grid{grid-template-columns:1fr}.feature-card{min-height:260px}.card-inner{max-width:72%}.page-layout{grid-template-columns:210px minmax(0,1fr);gap:18px;padding:20px}.hero-logo{width:120px;height:120px}.hero{min-height:160px}}
@media(max-width:600px){.sponsor-strip{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px}.topnav{padding:0 16px}.topnav .nav-links ul.top-menu{gap:16px}.topnav .nav-links{gap:16px}.hero{padding:18px;gap:12px;min-height:140px}.hero-logo{width:82px;height:82px}.hero h1{font-size:27px}.hero p{font-size:15px}.home-content{padding:12px}.feature-card{min-height:275px}.card-inner{max-width:82%;padding:15px}.feature-card h2{font-size:20px}.panel{min-height:auto}.puzzle-layout{grid-template-columns:55% 1fr}.site-footer{grid-template-columns:1fr;padding:22px}.footer-links{border-left:0;border-top:1px solid rgba(255,255,255,.35);padding:15px 0 0}.page-layout{grid-template-columns:1fr;padding:14px;gap:18px}.page-sidebar{order:0}.page-article{order:1}.page-article h1{font-size:28px}}

/* Revision 1.1: editable page cards, clear icons and row proportions */
.icon-svg{display:block;width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.round-icon .icon-svg{width:27px;height:27px;color:#fff}
.panel-heading .icon-svg{width:28px;height:28px;color:#07518b}
.feature-card .card-inner{max-width:78%}
.feature-card .page-card-excerpt{font-size:13px;line-height:1.45;color:#243f5b;margin:2px 0 12px}
.feature-card.page-feature .card-photo{width:43%;mask-image:linear-gradient(90deg,transparent 0%,#000 35%)}
.info-grid .page-feature{min-height:326px}
.info-grid .page-feature .card-inner{padding:13px 14px;max-width:82%}
.info-grid .page-feature .round-icon{width:38px;height:38px;margin-bottom:7px}
.info-grid .page-feature h2{font-size:19px}
.info-grid .page-feature .sub{margin-bottom:7px}
@media(max-width:900px){.hero{min-height:130px}.hero-logo{width:100px;height:100px}.feature-card{min-height:245px}.panel{min-height:300px}}
@media(max-width:600px){.hero{min-height:112px}.hero-logo{width:76px;height:76px}.panel{min-height:auto}.feature-card{min-height:250px}}

/* Version 1.3: Team.blue replaces the gold sponsor text */
.sponsor.teamblue-sponsor{padding:5px 8px;gap:4px;background:#fff}
.sponsor.teamblue-sponsor a{display:flex;align-items:center;justify-content:center;width:100%;min-height:32px}
.sponsor.teamblue-sponsor img{display:block;width:100%;max-width:190px;height:auto;max-height:48px;object-fit:contain}

/* Editable content below the fixed Calendar / Daily Puzzle panel headings (v1.7). */
.editable-panel-content { padding: 18px 22px 22px; }
.editable-panel-content > :first-child { margin-top: 0; }
.editable-panel-content > :last-child { margin-bottom: 0; }
.editable-panel-content img { max-width: 100%; height: auto; }
