/*
 * Operation 5 "Gatekeeper" design system — the qualification layer.
 * Deep teal ground, emerald = qualify, amber = borderline, rose = not eligible.
 * The palette IS the verdict language. Scope: .elig (hub + singles).
 * Rails (o4-*) read the --o-* tokens defined here.
 */

.elig {
	--gk-teal: #0f4c4c;
	--gk-teal-2: #10736a;
	--gk-em: #10b981;
	--gk-em-soft: #e9f7f1;
	--gk-amber: #d97706;
	--gk-amber-soft: #fef3e2;
	--gk-rose: #e11d48;
	--gk-rose-soft: #fdecf0;
	--gk-ink: #132420;
	--gk-mut: #4a6a62;
	--gk-line: #d8e8e1;
	--gk-bg: #f4faf7;
	--gk-surface: #fff;
	--gk-grad: linear-gradient(120deg, #0f4c4c, #10736a);
	/* rails tokens */
	--o-primary: #0f4c4c;
	--o-primary-2: #10736a;
	--o-accent: #10b981;
	--o-ink: #132420;
	--o-line: #d8e8e1;
	--o-bg: #f4faf7;
	--o-surface: #fff;
	--o-grad: linear-gradient(120deg, #0f4c4c, #10736a);
	background: var(--gk-bg);
	color: var(--gk-ink);
}
.elig a { color: #ffb020; }

/* thin reading-progress bar (singles) */
.elig-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gk-teal), var(--gk-em)); z-index: 500; transition: width .1s linear; }

/* reveal-on-scroll */
.elig .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.elig .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .elig .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================== HUB (smart sheet) ============================== */

.gk-hero { background: var(--gk-grad); color: #fff; padding: 44px 0 68px; position: relative; overflow: hidden; }
.gk-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 300px at 85% -10%, rgba(16, 185, 129, .35), transparent 65%); pointer-events: none; }
.gk-hero .wrap { position: relative; z-index: 1; }
.gk-kicker { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #9be8cd; }
.gk-hero h1 {
    font-size: clamp(26px, 4.2vw, 44px);
    margin: 8px 0 6px;
    line-height: 1.12;

    /* Animated green/white text */
    background: linear-gradient(
        110deg,
        #ffffff 0%,
        #ffffff 35%,
        #b7ffd1 45%,
        #ffffff 55%,
        #ffffff 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    animation:
        gkTextShimmer 4s ease-in-out infinite,
        gkTextFloat 3s ease-in-out infinite;

    filter: drop-shadow(0 0 10px rgba(255,255,255,.18));
}


/* Fast moving light sweep */
@keyframes gkTextShimmer {
    0% {
        background-position: 200% 50%;
    }

    45% {
        background-position: -50% 50%;
    }

    100% {
        background-position: -50% 50%;
    }
}


/* Tiny premium floating effect */
@keyframes gkTextFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}
.gk-hero p { color: #cfe9df; max-width: 640px; margin: 0 0 20px; font-size: 15px; }

.gk-search { position: relative; max-width: 620px; }
.gk-search input {
	width: 100%; padding: 15px 52px 15px 20px; font-size: 15.5px; color: var(--gk-ink);
	border: 0; border-radius: 15px; background: #fff; box-shadow: 0 18px 44px rgba(4, 24, 20, .35);
}
.gk-search input:focus { outline: 3px solid var(--gk-em); }
.gk-search .gk-search-ic { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; background: var(--gk-grad); border-radius: 11px; color: #fff; font-size: 17px; }

.gk-stats { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.gk-stats span { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 20px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gk-stats b { color: #9be8cd; }

/* sector tabs */
.gk-tabs { position: sticky; top: 0; z-index: 60; background: rgba(244, 250, 247, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gk-line); margin-top: -26px; }
.gk-tabs .wrap { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.gk-tabs .wrap::-webkit-scrollbar { display: none; }
.gk-tab {
	flex: 0 0 auto; border: 1.5px solid var(--gk-line); background: #fff; color: var(--gk-ink);
	border-radius: 22px; padding: 8px 16px; font-size: 13.5px; font-weight: 800; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap;
}
.gk-tab:hover { transform: translateY(-1px); border-color: var(--gk-teal-2); }
.gk-tab.is-on { background: var(--gk-grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(13, 76, 66, .28); }
.gk-tab b { opacity: .6; font-weight: 800; }

/* the sheet */
.gk-sheet { max-width: 1080px; margin: 26px auto 60px; padding: 0 16px; }
.gk-sheet-card { background: var(--gk-surface); border: 1px solid var(--gk-line); border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(13, 60, 50, .07); }
.gk-sheet-head { display: grid; grid-template-columns: 110px 180px minmax(0, 1fr) 130px; gap: 12px; padding: 13px 20px; background: var(--gk-grad); color: #9be8cd; font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.gk-row { border-bottom: 1px solid var(--gk-line); animation: gk-rowin .4s ease both; }
.gk-row:last-child { border-bottom: 0; }
@keyframes gk-rowin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gk-row-main { display: grid; grid-template-columns: 110px 180px minmax(0, 1fr) 130px; gap: 12px; align-items: center; padding: 14px 20px; cursor: pointer; transition: background .15s; }
.gk-row-main:hover { background: var(--gk-bg); }
.gk-date { font-size: 13px; font-weight: 700; color: var(--gk-mut); }
.gk-new { display: inline-block; margin-left: 6px; background: var(--gk-rose); color: #fff; font-size: 9.5px; font-weight: 900; letter-spacing: .5px; border-radius: 7px; padding: 2px 6px; vertical-align: 2px; animation: gk-pulse 1.6s infinite; }
@keyframes gk-pulse { 50% { opacity: .55; } }
.gk-board { font-size: 13.5px; font-weight: 800; color: var(--gk-teal); }
.gk-exam { font-size: 14.5px; font-weight: 700; min-width: 0; }
.gk-exam .gk-cycle { margin-left: 7px; background: var(--gk-em-soft); border: 1px solid #bfe8d6; color: #0b7a55; font-size: 10.5px; font-weight: 900; border-radius: 8px; padding: 2px 7px; }
.gk-get { justify-self: end; background: var(--gk-teal); color: #fff; border-radius: 11px; padding: 8px 14px; font-size: 12.5px; font-weight: 800; text-decoration: none; transition: background .2s, transform .2s; }
.gk-get:hover { background: var(--gk-em); color: #fff; transform: translateY(-1px); text-decoration: none; }

/* inline expand */
.gk-row-detail { max-height: 0; overflow: hidden; transition: max-height .38s cubic-bezier(.2, .8, .3, 1); background: var(--gk-bg); }
.gk-row.is-open .gk-row-detail { max-height: 260px; }
.gk-row-detail-in { padding: 6px 20px 16px; display: grid; gap: 10px; }
.gk-chiprow { display: flex; flex-wrap: wrap; gap: 7px; }
.gk-chiprow span { background: #fff; border: 1px solid var(--gk-line); border-radius: 13px; padding: 5px 11px; font-size: 12px; font-weight: 700; color: var(--gk-teal); }
.gk-linkrow { display: flex; flex-wrap: wrap; gap: 8px; }
.gk-linkrow a { background: #fff; border: 1.5px solid var(--gk-line); border-radius: 11px; padding: 7px 13px; font-size: 12.5px; font-weight: 800; color: var(--gk-teal); text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.gk-linkrow a:hover { border-color: var(--gk-em); background: var(--gk-em-soft); text-decoration: none; }

.gk-empty { padding: 44px 20px; text-align: center; color: var(--gk-mut); font-weight: 700; }
.gk-skel { padding: 14px 20px; border-bottom: 1px solid var(--gk-line); }
.gk-skel i { display: block; height: 13px; border-radius: 7px; background: linear-gradient(90deg, #e8f2ed 25%, #f6fbf8 50%, #e8f2ed 75%); background-size: 300% 100%; animation: gk-sh 1.1s infinite linear; }
@keyframes gk-sh { to { background-position: -300% 0; } }

.gk-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 22px 0; }
.gk-pager button { border: 1.5px solid var(--gk-line); background: #fff; border-radius: 12px; padding: 9px 18px; font-size: 13.5px; font-weight: 800; color: var(--gk-teal); cursor: pointer; transition: background .2s, color .2s; }
.gk-pager button:not([disabled]):hover { background: var(--gk-teal); color: #fff; }
.gk-pager button[disabled] { opacity: .35; cursor: default; }
.gk-pager .gk-pageno { font-size: 13px; font-weight: 800; color: var(--gk-mut); }

/* mobile sheet → stacked cards */
@media (max-width: 760px) {
	.gk-sheet-head { display: none; }
	.gk-row-main { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'exam get' 'meta get'; padding: 13px 15px; }
	.gk-exam { grid-area: exam; }
	.gk-date, .gk-board { grid-area: meta; display: inline; }
	.gk-date { margin-right: 8px; }
	.gk-get { grid-area: get; }
}

/* ============================== SINGLES (3-col cluster pages) ============================== */

.elig .single-head h1 { font-size: clamp(23px, 3.4vw, 34px); line-height: 1.18; margin: 0 0 10px; }

/* exam header card */
.gk-exam-head { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--gk-surface); border: 1px solid var(--gk-line); border-radius: 16px; padding: 16px 18px; margin: 4px 0 14px; box-shadow: 0 10px 28px rgba(13, 60, 50, .06); }
.gk-exam-disc { width: 62px; height: 62px; display: grid; place-items: center; background: var(--gk-grad); color: #fff; font-size: 22px; font-weight: 900; border-radius: 17px; box-shadow: 0 8px 20px rgba(13, 76, 66, .3); }
.gk-exam-meta { min-width: 0; }
.gk-exam-meta .gk-board-line { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gk-mut); }
.gk-exam-meta h2, .gk-exam-meta .gk-exam-name { font-size: 18px; margin: 3px 0; font-weight: 800; color: var(--gk-teal); }
.gk-exam-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.gk-exam-badges span, .gk-exam-badges a { font-size: 11.5px; font-weight: 800; border-radius: 9px; padding: 3px 9px; background: var(--gk-bg); border: 1px solid var(--gk-line); color: var(--gk-teal-2); text-decoration: none; }
.gk-exam-badges .gk-verified { background: var(--gk-em-soft); border-color: #bfe8d6; color: #0b7a55; }

/* cluster tab bar */
.gk-cluster-tabs { position: sticky; top: 0; z-index: 55; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; background: rgba(244, 250, 247, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--gk-line); border-radius: 14px; padding: 6px; margin: 0 0 18px; }
.gk-cluster-tabs::-webkit-scrollbar { display: none; }
.gk-cluster-tabs a { flex: 1 0 auto; text-align: center; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 800; color: var(--gk-teal); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.gk-cluster-tabs a:hover { background: var(--gk-em-soft); text-decoration: none; }
.gk-cluster-tabs a.is-here { background: var(--gk-grad); color: #fff; box-shadow: 0 6px 16px rgba(13, 76, 66, .25); }

/* AEO answer box */
.gk-answer { border-left: 4px solid var(--gk-em); background: var(--gk-em-soft); border-radius: 0 14px 14px 0; padding: 15px 18px; margin: 0 0 18px; font-size: 15px; line-height: 1.65; }
.gk-answer b { color: var(--gk-teal); }

/* quick chips */
.gk-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 20px; }
.gk-quick div { background: var(--gk-surface); border: 1px solid var(--gk-line); border-radius: 14px; padding: 12px 14px; transition: transform .2s, box-shadow .2s; }
.gk-quick div:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 60, 50, .1); }
.gk-quick .gk-q-ic { font-size: 19px; }
.gk-quick .gk-q-label { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--gk-mut); margin-top: 4px; }
.gk-quick .gk-q-val { font-size: 14.5px; font-weight: 800; color: var(--gk-teal); margin-top: 1px; }

/* ============================== THE CHECKER ============================== */

.gk-checker { background: var(--gk-surface); border: 1.5px solid var(--gk-line); border-radius: 18px; overflow: hidden; margin: 0 0 24px; box-shadow: 0 14px 40px rgba(13, 60, 50, .08); }
.gk-checker-head { background: var(--gk-grad); color: #fff; padding: 15px 20px; display: flex; align-items: center; gap: 12px; }
.gk-checker-head .gk-ch-ic { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255, 255, 255, .15); border-radius: 12px; font-size: 19px; }
.gk-checker-head b { display: block; font-size: 16px; }
.gk-checker-head span { font-size: 12.5px; color: #b9e9d6; }
.gk-checker-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 18px 20px 6px; }
.gk-field label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--gk-mut); margin-bottom: 5px; }
.gk-field input, .gk-field select { width: 100%; padding: 11px 12px; font-size: 14px; border: 1.5px solid var(--gk-line); border-radius: 11px; background: var(--gk-bg); color: var(--gk-ink); transition: border-color .2s, box-shadow .2s; }
.gk-field input:focus, .gk-field select:focus { outline: none; border-color: var(--gk-em); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.gk-checker-act { padding: 12px 20px 20px; }
.gk-check-btn { width: 100%; border: 0; cursor: pointer; background: var(--gk-grad); color: #fff; font-size: 15px; font-weight: 900; border-radius: 13px; padding: 14px; letter-spacing: .3px; transition: transform .15s, box-shadow .2s, filter .2s; box-shadow: 0 10px 26px rgba(13, 76, 66, .3); }
.gk-check-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.gk-check-btn:active { transform: scale(.98); }

.gk-verdict { margin: 0 20px 20px; border-radius: 14px; padding: 16px 18px; display: none; animation: gk-verdict-in .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.gk-verdict.is-show { display: block; }
@keyframes gk-verdict-in { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
.gk-verdict b { display: block; font-size: 16.5px; margin-bottom: 4px; }
.gk-verdict p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.gk-verdict.gk-ok { background: var(--gk-em-soft); border: 1.5px solid #a9e3c9; color: #0b6647; }
.gk-verdict.gk-warn { background: var(--gk-amber-soft); border: 1.5px solid #f3d9a8; color: #8a5410; }
.gk-verdict.gk-no { background: var(--gk-rose-soft); border: 1.5px solid #f5c2cf; color: #a3184a; }
.gk-verdict .gk-v-note { margin-top: 8px; font-size: 12px; opacity: .8; }

/* ============================== CONTENT SECTIONS ============================== */

.elig .entry { font-size: 15.5px; line-height: 1.75; }
.elig .entry h2 { font-size: 21px; margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gk-line); color: var(--gk-teal); }
.elig .entry h3 { font-size: 17px; margin: 22px 0 8px; color: var(--gk-teal-2); }
.elig .entry table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(13, 60, 50, .06); }
.elig .entry th { background: var(--gk-grad); color: #fff; text-align: left; padding: 10px 13px; font-size: 12.5px; letter-spacing: .5px; }
.elig .entry td { padding: 10px 13px; border-bottom: 1px solid var(--gk-line); }
.elig .entry tr:nth-child(even) td { background: var(--gk-bg); }
.elig .entry tr:last-child td { border-bottom: 0; }
.elig .entry-table-scroll { overflow-x: auto; }
.elig .entry ul li::marker { color: var(--gk-em); }
.elig .entry blockquote { border-left: 4px solid var(--gk-amber); background: var(--gk-amber-soft); margin: 16px 0; padding: 12px 16px; border-radius: 0 12px 12px 0; font-size: 14px; }

/* stage timeline (selection page) */
.gk-stages { position: relative; margin: 18px 0; padding-left: 30px; }
.gk-stages::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--gk-teal), var(--gk-em)); }
.gk-stage { position: relative; margin-bottom: 16px; background: #fff; border: 1px solid var(--gk-line); border-radius: 13px; padding: 13px 16px; }
.gk-stage::before { content: ''; position: absolute; left: -25px; top: 18px; width: 13px; height: 13px; border-radius: 50%; background: var(--gk-em); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gk-em); }

/* syllabus checklist */
.gk-syl-topic { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px dashed var(--gk-line); font-size: 14px; cursor: pointer; transition: background .15s; }
.gk-syl-topic:hover { background: var(--gk-bg); }
.gk-syl-topic .gk-syl-box { width: 20px; height: 20px; flex: 0 0 20px; border: 2px solid var(--gk-line); border-radius: 7px; display: grid; place-items: center; font-size: 12px; color: #fff; transition: background .2s, border-color .2s; }
.gk-syl-topic.is-done .gk-syl-box { background: var(--gk-em); border-color: var(--gk-em); }
.gk-syl-topic.is-done { color: var(--gk-mut); text-decoration: line-through; }

/* official source band */
.gk-official { display: flex; align-items: center; gap: 12px; background: var(--gk-surface); border: 1.5px dashed var(--gk-teal-2); border-radius: 14px; padding: 13px 17px; margin: 20px 0; font-size: 13.5px; }
.gk-official a { font-weight: 800; }

@media (max-width: 760px) {
	.gk-exam-head { grid-template-columns: 48px minmax(0, 1fr); padding: 13px 14px; }
	.gk-exam-disc { width: 48px; height: 48px; font-size: 17px; border-radius: 13px; }
	.gk-checker-form { grid-template-columns: 1fr; }
}

/* ============================== HERO MATCH ENGINE (60/40) ============================== */

.gk-hero-grid { display: grid; grid-template-columns: 60fr 40fr; gap: 34px; align-items: start; }
.gk-hcheck-open { display: none; }

.gk-hcheck-card {
	position: relative; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18);
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	border-radius: 20px; padding: 18px; box-shadow: 0 24px 60px rgba(3, 20, 17, .4);
}
.gk-hcheck-close { display: none; }
.gk-hcheck-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.gk-hcheck-ic { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; background: linear-gradient(135deg, #10b981, #34d399); border-radius: 13px; font-size: 19px; box-shadow: 0 8px 20px rgba(16, 185, 129, .4); }
.gk-hcheck-head b { display: block; font-size: 16.5px; color: #fff; }
.gk-hcheck-head span { font-size: 12px; color: #b9e9d6; }
.gk-hcheck-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-bottom: 12px; }
.gk-hcheck .gk-field label { color: #9be8cd; }
.gk-hcheck .gk-field input, .gk-hcheck .gk-field select { background: rgba(255, 255, 255, .95); border-color: transparent; }
.gk-hcheck .gk-check-btn { width: 100%; background: linear-gradient(120deg, #10b981, #0e9f6e); box-shadow: 0 12px 30px rgba(16, 185, 129, .4); }

/* results — the full network pops in one place */
.gk-hcheck-results { max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.2, .8, .3, 1); }
.gk-hcheck-results.is-live { max-height: 60vh; overflow-y: auto; margin-top: 14px; scrollbar-width: thin; }
.gk-res-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.gk-res-summary span { border-radius: 12px; padding: 6px 12px; font-size: 12.5px; font-weight: 800; }
.gk-res-summary .s-ok { background: rgba(16, 185, 129, .22); color: #7ef5c8; border: 1px solid rgba(16, 185, 129, .5); }
.gk-res-summary .s-warn { background: rgba(217, 119, 6, .2); color: #ffd28a; border: 1px solid rgba(217, 119, 6, .5); }
.gk-res-summary .s-no { background: rgba(225, 29, 72, .18); color: #ffa8be; border: 1px solid rgba(225, 29, 72, .45); }
.gk-res-group { font-size: 11.5px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: #9be8cd; margin: 14px 2px 8px; }
.gk-res-card {
	background: #fff; border-radius: 15px; padding: 13px 15px; margin-bottom: 10px;
	border-left: 5px solid var(--res, #10b981); animation: gk-rowin .4s ease both;
}
.gk-res-card.res-ok { --res: #10b981; }
.gk-res-card.res-warn { --res: #d97706; }
.gk-res-card.res-no { --res: #e11d48; opacity: .82; }
.gk-res-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.gk-res-top a { font-size: 14.5px; font-weight: 800; color: var(--gk-teal); }
.gk-res-top i { font-size: 11px; font-weight: 800; font-style: normal; color: var(--gk-mut); white-space: nowrap; }
.gk-res-reason { font-size: 12.5px; color: #405d55; margin: 4px 0 8px; line-height: 1.5; }
.gk-res-net { display: flex; flex-wrap: wrap; gap: 6px; }
.gk-res-net a {
	font-size: 11.5px; font-weight: 800; border-radius: 9px; padding: 4px 9px; text-decoration: none;
	background: var(--gk-bg); border: 1px solid var(--gk-line); color: var(--gk-teal-2); transition: background .2s, color .2s;
}
.gk-res-net a:hover { background: var(--gk-teal); color: #fff; text-decoration: none; }
.gk-res-net a.n-job { background: #fff8e8; border-color: #f0dcae; color: #8a6210; }
.gk-res-net a.n-quiz { background: #eef2ff; border-color: #d4dcf7; color: #3948a5; }

/* mobile: card becomes a modal behind one button */
@media (max-width: 900px) {
	.gk-hero-grid { grid-template-columns: 1fr; }
	.gk-hcheck-open {
		display: inline-block; margin-top: 16px; border: 0; cursor: pointer;
		background: linear-gradient(120deg, #10b981, #0e9f6e); color: #fff;
		font-size: 15px; font-weight: 900; border-radius: 14px; padding: 14px 22px;
		box-shadow: 0 12px 30px rgba(16, 185, 129, .45); transition: transform .15s;
	}
	.gk-hcheck-open:active { transform: scale(.97); }
	.gk-hcheck {
		display: none; position: fixed; inset: 0; z-index: 600;
		background: rgba(6, 20, 17, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
		padding: 4vh 4vw; overflow-y: auto;
	}
	.gk-hcheck.is-open { display: block; animation: gk-modalin .3s ease both; }
	@keyframes gk-modalin { from { opacity: 0; } to { opacity: 1; } }
	.gk-hcheck-card { background: linear-gradient(150deg, #0f4c4c, #0a3532); max-width: 560px; margin: 0 auto; animation: gk-verdict-in .35s cubic-bezier(.2, .9, .3, 1.15) both; }
	.gk-hcheck-close {
		display: grid; place-items: center; position: absolute; top: 12px; right: 12px;
		width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 11px;
		background: rgba(255, 255, 255, .12); color: #fff; font-size: 15px; cursor: pointer;
	}
	.gk-hcheck-form { grid-template-columns: 1fr; }
	.gk-hcheck-results.is-live { max-height: 46vh; }
	body.gk-modal-lock { overflow: hidden; }
}

/* ============================== THE PLANNER ============================== */

.gk-planner { background: var(--gk-surface); border: 1.5px solid var(--gk-line); border-radius: 18px; padding: 0 0 18px; margin: 24px 0; overflow: hidden; box-shadow: 0 14px 40px rgba(13, 60, 50, .08); }
.gk-planner-head { background: linear-gradient(120deg, #123f63, #0f4c4c); color: #fff; padding: 15px 20px; display: flex; gap: 12px; align-items: center; }
.gk-planner-ic { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; background: rgba(255, 255, 255, .15); border-radius: 12px; font-size: 19px; }
.gk-planner-head b { display: block; font-size: 16px; }
.gk-planner-head span { font-size: 12.5px; color: #b9d6e9; }
.gk-planner-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding: 18px 20px 6px; }
.gk-planner > .gk-check-btn { display: block; width: calc(100% - 40px); margin: 12px 20px 0; }
.gk-planner-out { display: none; padding: 0 20px; }
.gk-planner-out.is-live { display: block; animation: gk-verdict-in .45s cubic-bezier(.2, .9, .3, 1.15) both; }

.gkp-verdict { border-radius: 14px; padding: 14px 17px; margin: 16px 0 14px; }
.gkp-verdict b { display: block; font-size: 16px; margin-bottom: 3px; }
.gkp-verdict p { margin: 0; font-size: 13px; line-height: 1.6; }
.gkp-verdict.v-ok { background: var(--gk-em-soft); border: 1.5px solid #a9e3c9; color: #0b6647; }
.gkp-verdict.v-warn { background: var(--gk-amber-soft); border: 1.5px solid #f3d9a8; color: #8a5410; }
.gkp-verdict.v-no { background: var(--gk-rose-soft); border: 1.5px solid #f5c2cf; color: #a3184a; }

.gkp-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.gkp-meter { background: var(--gk-bg); border: 1px solid var(--gk-line); border-radius: 13px; padding: 11px 13px; text-align: center; }
.gkp-meter b { display: block; font-size: 21px; color: var(--gk-teal); }
.gkp-meter span { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--gk-mut); }

.gkp-phases { position: relative; margin: 6px 0 16px; padding-left: 26px; }
.gkp-phases::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #123f63, var(--gk-em)); }
.gkp-phase { position: relative; background: #fff; border: 1px solid var(--gk-line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.gkp-phase::before { content: ''; position: absolute; left: -21px; top: 15px; width: 11px; height: 11px; border-radius: 50%; background: var(--gk-em); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gk-em); }
.gkp-phase b { font-size: 13.5px; color: var(--gk-teal); }
.gkp-phase i { float: right; font-size: 11px; font-style: normal; font-weight: 800; color: var(--gk-mut); }
.gkp-phase p { margin: 3px 0 0; font-size: 12.5px; color: #405d55; line-height: 1.55; }

.gkp-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 14px; }
.gkp-table th { background: linear-gradient(120deg, #123f63, #0f4c4c); color: #fff; text-align: left; padding: 8px 11px; font-size: 11.5px; letter-spacing: .5px; }
.gkp-table td { padding: 8px 11px; border-bottom: 1px solid var(--gk-line); }
.gkp-table tr:last-child td { border-bottom: 0; }
.gkp-bar { height: 7px; border-radius: 5px; background: var(--gk-line); overflow: hidden; min-width: 70px; }
.gkp-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #123f63, var(--gk-em)); }

.gkp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.gkp-day { background: var(--gk-bg); border: 1px solid var(--gk-line); border-radius: 11px; padding: 8px 6px; text-align: center; min-height: 74px; }
.gkp-day b { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--gk-mut); margin-bottom: 5px; }
.gkp-day span { display: block; font-size: 10.5px; font-weight: 700; color: var(--gk-teal); line-height: 1.35; }
.gkp-day.gkp-off { opacity: .55; }
.gkp-day.gkp-off span { color: var(--gk-amber); }
@media (max-width: 760px) { .gkp-week { grid-template-columns: repeat(4, 1fr); } }

/* ---------- the desk (planner.md Phase 1) ---------- */
.gk-sheet-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--gk-line); font-size: 12.5px; color: var(--gk-mut); }
.gk-sort { display: inline-flex; gap: 4px; background: var(--gk-bg); border-radius: 999px; padding: 3px; } .gk-sort button { border: 0; background: none; font: 700 12px/1 system-ui, sans-serif; color: var(--gk-mut); padding: 7px 12px; border-radius: 999px; cursor: pointer; } .gk-sort button.is-on { background: var(--gk-teal); color: #fff; }
.gk-sheet-head, .gk-row-main { grid-template-columns: 100px 150px minmax(0, 1fr) 120px 120px; }
.gk-when { display: flex; flex-direction: column; line-height: 1.2; } .gk-when b { font-size: 13px; color: var(--gk-teal); } .gk-when small { font-size: 11px; color: var(--gk-mut); }
@media (max-width: 760px) { .gk-sheet-head { display: none; } .gk-row-main { grid-template-columns: 1fr auto; } .gk-board, .gk-date { display: none; } .gk-when { grid-column: 1; } }
.gk-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 18px; } @media (max-width: 760px) { .gk-timeline { grid-template-columns: repeat(2, 1fr); } }
.gk-tl { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; background: var(--gk-surface); border: 1px solid var(--gk-line); border-radius: 14px; padding: 10px 12px; }
.gk-tl-ic { font-size: 18px; } .gk-tl b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gk-mut); } .gk-tl span { display: block; font-weight: 800; font-size: 13.5px; color: var(--gk-ink, #16181d); } .gk-tl small { display: block; font-size: 11.5px; color: var(--gk-mut); } .gk-tl small a { color: var(--gk-teal); }
.gk-tl.is-near { border-color: #d97706; background: #fff8e8; } .gk-tl.is-near small { color: #8a6210; font-weight: 700; } .gk-tl.is-past { opacity: .75; } .gk-tl.is-unknown .gk-tl-none { font-weight: 600; color: var(--gk-mut); }
.gk-calc { background: var(--gk-surface); border: 1px solid var(--gk-line); border-radius: 18px; padding: 16px 18px; margin: 0 0 20px; } .gk-calc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; } .gk-calc-head b { display: block; font-size: 15px; } .gk-calc-head span { font-size: 12.5px; color: var(--gk-mut); }
.gk-calc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; } .gk-calc-out { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; } .gk-calc-out b { font: 800 2rem/1 Georgia, serif; color: var(--gk-teal); } .gk-calc-out span { font-weight: 700; } .gk-calc-out small { flex-basis: 100%; color: var(--gk-mut); font-size: 12.5px; }
.gk-syl-progress { background: var(--gk-surface); border: 1px solid var(--gk-line); border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; } .gk-syl-progress-top { display: flex; justify-content: space-between; font-size: 13px; } .gk-syl-progress-top em { font-style: normal; font-weight: 800; color: var(--gk-teal); } .gk-syl-progress-bar { height: 8px; background: var(--gk-bg); border-radius: 4px; margin: 8px 0 6px; overflow: hidden; } .gk-syl-progress-bar i { display: block; height: 100%; width: 0; background: var(--gk-em, #10b981); transition: width .4s; } .gk-syl-progress small { font-size: 11.5px; color: var(--gk-mut); }
.gk-res-dates { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; } .gk-res-dates span { font-size: 11.5px; font-weight: 700; color: #405d55; background: #f4faf7; border-radius: 999px; padding: 4px 9px; } .gk-res-dates .d-exam { background: #e6f7f1; color: #0e7a6e; } .gk-res-dates .d-none { color: var(--gk-mut); font-weight: 600; }
.gk-res-doors { display: flex; gap: 6px; margin: 4px 0 8px; } .gk-res-doors a { font: 800 12px/1 system-ui, sans-serif; border-radius: 8px; padding: 8px 12px; text-decoration: none; } .gk-res-go { background: var(--gk-teal); color: #fff; } .gk-res-plan { background: #fff4d6; color: #7a5410; border: 1px solid #eed596; }

.gk-planner-doors { display: flex; flex-wrap: wrap; gap: 8px; } .gk-planner-full { text-decoration: none; display: inline-flex; align-items: center; } .gk-check-btn--ghost { background: #fff !important; color: var(--gk-teal) !important; border: 1.5px solid var(--gk-line) !important; }

/* ---------- the planner on the hub, and the gate (members only) ---------- */
.gk-hero-doors { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.gk-hero-plan { display: inline-flex; align-items: center; gap: 6px; font: 800 .86rem/1 system-ui, sans-serif; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); border-radius: 12px; padding: 12px 16px; text-decoration: none; } .gk-hero-plan:hover { background: rgba(255, 255, 255, .24); text-decoration: none; }
.gk-plan { padding: 8px 0 4px; } .gk-plan-head { margin: 10px 0 12px; } .gk-plan-head h2 { margin: 6px 0 4px; font-family: var(--font-head); font-size: 1.4rem; } .gk-plan-head p { margin: 0; color: var(--gk-mut, #5b6b66); font-size: .92rem; max-width: 720px; }
.gk-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0 0 12px; }
.gk-plan-card { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; background: #fff; border: 1px solid #d9e6e0; border-radius: 16px; padding: 12px 14px; text-decoration: none; color: #16181d; } .gk-plan-card:hover { border-color: #0e7a6e; text-decoration: none; } .gk-plan-card.is-near { border-color: #d94a3d; }
.gk-plan-days { display: flex; flex-direction: column; align-items: center; background: #fffdf8; border-top: 5px solid #d94a3d; border-radius: 12px; padding: 6px 0 5px; } .gk-plan-days b { font: 800 1.6rem/1 Georgia, serif; color: #d94a3d; } .gk-plan-days small { font: 700 .56rem/1.3 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: #5b6b66; }
.gk-plan-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .gk-plan-body b { font-family: var(--font-head); } .gk-plan-body small { font-size: .78rem; color: #5b6b66; }
.gk-plan-doors { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .gk-plan-note { font-size: .78rem; color: #5b6b66; }
.pl-gate { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; background: #fff; border: 1px solid #d9e6e0; border-radius: 22px; padding: 26px 28px; box-shadow: 0 24px 60px -30px rgba(11, 59, 52, .35); }
.pl-gate-art { display: grid; place-items: center; gap: 8px; font-size: 3rem; line-height: 1; background: linear-gradient(135deg, #0b3b34, #0e7a6e); border-radius: 18px; padding: 24px 0; } .pl-gate-art span:nth-child(2) { transform: rotate(-8deg); } .pl-gate-art span:nth-child(3) { transform: rotate(6deg); }
.pl-gate-body h2 { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 8px 0 8px; line-height: 1.15; } .pl-gate-body p { color: #5b6b66; margin: 0 0 12px; line-height: 1.55; max-width: 640px; }
.pl-gate-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 14px; font-size: .92rem; }
@media (max-width: 720px) { .pl-gate { grid-template-columns: 1fr; padding: 18px; } .pl-gate-art { padding: 14px 0; font-size: 2.2rem; grid-auto-flow: column; } }
.gk-plan-doors .gk-check-btn { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px; }
