/*
Theme Name: CrackCUET
Theme URI: https://crackcuet.com
Author: CrackCUET
Description: Fast, premium theme for CrackCUET: answer-first guides, free CUET tools and links into the mock-test app. Pairs with the CrackCUET Tools plugin and Rank Math.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: crackcuet
*/

/* ==========================================================================
   Tokens (same system as the CrackCUET app)
   ========================================================================== */
:root {
  --ink: #0B4160;
  --night: #06283D;
  --signal: #2563EB;
  --signal-press: #1D4ED8;
  --gold: #FCD34D;
  --paper: #F4F6F8;
  --surface: #FFFFFF;
  --line: #DCE2E9;
  --line-strong: #C3CCD6;
  --text: #0F1B26;
  --muted: #5B6B7B;
  --go: #0F8A5F;
  --flag: #B7791F;
  --miss: #C2410C;
  --radius: 16px;
  --wrap: 1180px;
  --shadow: 0 1px 0 rgba(15,27,38,.03), 0 18px 40px -26px rgba(11,65,96,.30);
  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--signal-press); }
:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; border-radius: 4px; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.cc-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.cc-skip:focus { left: 12px; }

.cc-wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.cc-narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

/* Type */
.cc-h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin: 0; text-wrap: balance; }
.cc-h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; margin: 0; text-wrap: balance; }
.cc-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.55; color: #C9D9E5; margin: 18px 0 0; max-width: 60ch; }
.cc-lead-dark { color: var(--muted); }
.cc-sub { color: var(--muted); font-size: 1.06rem; margin: 10px 0 0; max-width: 62ch; }
.cc-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #B9CCDA; margin: 0 0 18px; padding: 6px 12px 6px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; background: rgba(255,255,255,.05); }

/* Buttons */
.cc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.1; padding: 12px 18px; border-radius: 12px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .05s; white-space: nowrap; }
.cc-btn:active { transform: translateY(1px); }
.cc-btn-lg { padding: 15px 22px; font-size: 16px; }
.cc-btn-primary { background: var(--signal); color: #fff; }
.cc-btn-primary:hover { background: var(--signal-press); color: #fff; }
.cc-btn-light { background: #fff; color: var(--ink); }
.cc-btn-light:hover { background: #E8F0FF; color: var(--ink); }
.cc-btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); }
.cc-btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.cc-btn-ghost { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.cc-btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.cc-link { font-weight: 700; text-decoration: none; }
.cc-link:hover { text-decoration: underline; }
.cc-link-quiet { color: var(--text); font-weight: 600; text-decoration: none; }
.cc-chip { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #EAF0F6; color: var(--ink); text-decoration: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.cc-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.cc-header.is-scrolled { border-color: var(--line); }
.cc-header-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.cc-logo img { height: 40px; width: auto; display: block; }
.cc-nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.cc-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.cc-menu a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.cc-menu a:hover, .cc-menu .current-menu-item > a { color: var(--text); background: #F1F5F9; }
.cc-menu .sub-menu { display: none; }
.cc-nav-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.cc-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.cc-burger span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 960px) {
  .cc-burger { display: block; }
  .cc-nav { display: none; position: absolute; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 12px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2); }
  .cc-nav.is-open { display: flex; }
  .cc-menu { flex-direction: column; }
  .cc-menu a { padding: 12px 8px; font-size: 17px; }
  .cc-nav-cta { margin: 0; flex-direction: column; align-items: stretch; }
  .cc-nav-cta .cc-link-quiet { padding: 8px; }
  .cc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .cc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .cc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   Night surfaces + art
   ========================================================================== */
.cc-night { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #0E5A82 0%, var(--night) 55%); }
.cc-art { position: absolute; z-index: -1; pointer-events: none; }
.cc-art-fill { inset: 0; width: 100%; height: 100%; }

/* Hero */
.cc-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.cc-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.cc-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cc-hero-facts { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; margin: 34px 0 0; padding: 0; color: #B9CCDA; font-size: 15px; }
.cc-hero-facts b { display: block; color: #fff; font-size: 26px; letter-spacing: -.02em; }
.cc-hero-facade { right: -20px; bottom: 0; width: 520px; }
.cc-hero-tool { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; padding: 18px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.cc-hero-tool-head { padding: 6px 6px 14px; }
.cc-hero-tool-head p { margin: 0; color: #B9CCDA; font-size: 15px; }
.cc-hero-tool .cc-hero-tool-title { color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 2px; }
.cc-hero-tool .cct-tool { box-shadow: none; }
@media (max-width: 960px) { .cc-hero-grid { grid-template-columns: 1fr; } .cc-hero-facade { width: 360px; opacity: .6; } }

/* Sections */
.cc-section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.cc-section-alt { background: var(--paper); }
.cc-section-alt::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 260px; background-image: radial-gradient(#D5DEE7 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); pointer-events: none; }
.cc-section-alt > * { position: relative; }
.cc-section-head { margin-bottom: 40px; }
.cc-section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* Steps (a real sequence, so numbered) */
.cc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.cc-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.cc-step h3 { font-size: 1.25rem; letter-spacing: -.01em; margin: 18px 0 8px; }
.cc-step p { margin: 0; color: var(--muted); font-size: 16px; }
.cc-step-no { position: absolute; top: 24px; right: 26px; font-size: 44px; font-weight: 800; color: #EEF2F6; letter-spacing: -.04em; line-height: 1; }
@media (max-width: 900px) { .cc-steps { grid-template-columns: 1fr; } }

/* Split + exam screen vignette */
.cc-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cc-checks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.cc-checks li { padding-left: 32px; position: relative; font-weight: 500; }
.cc-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: #E3F4EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5 8.5 14 15 7' fill='none' stroke='%230F8A5F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100%; }
.cc-screen { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 50px 80px -40px rgba(6,40,61,.45); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.cc-screen-bar { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 700; font-size: 14px; }
.cc-screen-timer { background: rgba(255,255,255,.12); padding: 4px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.cc-screen-body { display: grid; grid-template-columns: 1fr 190px; }
.cc-screen-q { padding: 18px; border-right: 1px solid var(--line); }
.cc-screen-qno { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; margin: 0 0 10px; }
.cc-screen-qno span { color: var(--muted); font-weight: 600; }
.cc-screen-qtext { font-size: 15px; margin: 0 0 14px; line-height: 1.5; }
.cc-screen-opt { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-size: 14px; }
.cc-screen-opt b { width: 24px; height: 24px; border-radius: 7px; background: #EEF2F6; display: grid; place-items: center; font-size: 12px; color: var(--ink); }
.cc-screen-opt.is-sel { border-color: var(--signal); background: #F1F6FF; }
.cc-screen-opt.is-sel b { background: var(--signal); color: #fff; }
.cc-screen-pal { padding: 14px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-content: start; }
.cc-screen-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.cc-screen-actions span { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-strong); }
.cc-screen-actions .is-review { background: #6D28D9; color: #fff; border-color: #6D28D9; }
.cc-screen-actions .is-save { margin-left: auto; background: var(--go); color: #fff; border-color: var(--go); }
.pal { aspect-ratio: 1; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--text); position: relative; }
.pal.not-answered { background: var(--miss); border-color: var(--miss); color: #fff; border-radius: 6px 6px 50% 50%; }
.pal.answered { background: var(--go); border-color: var(--go); color: #fff; border-radius: 50% 50% 6px 6px; }
.pal.review, .pal.answered-review { background: #6D28D9; border-color: #6D28D9; color: #fff; border-radius: 50%; }
.pal.answered-review::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--go); border: 1.5px solid #fff; }
.pal.current { outline: 2px solid var(--signal); outline-offset: 1px; }
@media (max-width: 900px) { .cc-split { grid-template-columns: 1fr; } .cc-screen { transform: none; } .cc-screen-body { grid-template-columns: 1fr; } .cc-screen-q { border-right: 0; border-bottom: 1px solid var(--line); } .cc-screen-pal { grid-template-columns: repeat(10, 1fr); } }

/* Tools */
.cc-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cc-tool-card { display: flex; gap: 20px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.cc-tool-card:hover { border-color: var(--signal); color: inherit; transform: translateY(-2px); }
.cc-tool-card svg { flex: none; }
.cc-tool-card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.cc-tool-card p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.cc-more { font-weight: 700; color: var(--signal); }
.cc-subjects { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cc-subject { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 99px; background: #fff; text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
.cc-subject:hover { border-color: var(--signal); color: var(--text); }
.cc-glyph { display: inline-grid; place-items: center; border-radius: 11px; flex: none; }
@media (max-width: 800px) { .cc-tools { grid-template-columns: 1fr; } }

/* Cards */
.cc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.cc-card:hover { transform: translateY(-3px); border-color: var(--line-strong); color: inherit; }
.cc-card-art { position: relative; aspect-ratio: 1200 / 630; background: radial-gradient(120% 140% at 100% 0%, #0E5A82 0%, var(--night) 60%); overflow: hidden; }
.cc-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-card-contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.cc-card-art .cc-chip { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92); }
.cc-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.cc-card-body h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.01em; }
.cc-card-body p { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.cc-card-meta { margin-top: auto; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .cc-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cc-cards { grid-template-columns: 1fr; } }

/* Plans */
.cc-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.cc-plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); position: relative; }
.cc-plan h3 { margin: 0; font-size: 1.15rem; }
.cc-price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 14px; }
.cc-price span { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.cc-plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.cc-plan li { padding-left: 26px; position: relative; font-size: 15.5px; }
.cc-plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--go); border-bottom: 2.5px solid var(--go); transform: rotate(-45deg); }
.cc-plan .cc-btn { margin-top: auto; }
.cc-plan.is-featured { background: radial-gradient(120% 140% at 100% 0%, #0E5A82 0%, var(--night) 60%); color: #fff; border-color: transparent; box-shadow: 0 40px 70px -40px rgba(6,40,61,.7); }
.cc-plan.is-featured .cc-price span { color: #B9CCDA; }
.cc-plan.is-featured li::before { border-color: var(--gold); }
.cc-plan-tag { position: absolute; top: 22px; right: 22px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--night); background: var(--gold); padding: 4px 10px; border-radius: 99px; }
@media (max-width: 900px) { .cc-plans { grid-template-columns: 1fr; } }

/* Final band */
.cc-final { padding: clamp(64px, 8vw, 104px) 0; text-align: center; }
.cc-final-in { display: flex; flex-direction: column; align-items: center; }
.cc-final .cc-lead { margin-inline: auto; }
.cc-final .cc-hero-cta { justify-content: center; }

/* ==========================================================================
   Page + article heads
   ========================================================================== */
.cc-page-head, .cc-article-head { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #F2F6FA, #fff); padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.cc-page-head.cc-night { background: radial-gradient(120% 140% at 100% 0%, #0E5A82 0%, var(--night) 55%); border: 0; padding-bottom: clamp(90px, 10vw, 130px); }
.cc-page-head.cc-night .cc-crumbs, .cc-page-head.cc-night .cc-crumbs a { color: #B9CCDA; }
.cc-page-head-in, .cc-article-head-in { max-width: 860px; }
.cc-crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cc-crumbs a { color: var(--muted); text-decoration: none; }
.cc-crumbs a:hover { color: var(--text); text-decoration: underline; }
.cc-article-title { margin-top: 14px; font-size: clamp(2rem, 4vw, 3rem); }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.cc-meta a { color: inherit; }
.cc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cc-filter a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.cc-filter a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cc-tool-page { margin-top: clamp(-90px, -8vw, -60px); position: relative; z-index: 2; padding-bottom: 72px; max-width: 900px; }
.cc-page-body { padding: 48px 0 80px; }

/* Article layout */
.cc-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 40px 0 72px; }
.cc-article-main { min-width: 0; max-width: 740px; }
.cc-article-hero { margin: 0 0 28px; border-radius: 18px; overflow: hidden; }
.cc-article-hero img { display: block; width: 100%; }
.cc-side-sticky { position: sticky; top: 96px; display: grid; gap: 18px; }
.cc-toc { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #fff; }
.cc-toc-h { font-weight: 800; margin: 0 0 10px; font-size: 15px; }
.cc-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; }
.cc-toc a { color: var(--muted); text-decoration: none; }
.cc-toc a:hover, .cc-toc a.is-active { color: var(--signal); }
.cc-side-tool { border-radius: 18px; padding: 20px; background: linear-gradient(160deg, #F2F7FF, #fff); border: 1px solid #C9DAF8; }
.cc-side-tool svg { width: 48px; height: 48px; }
.cc-side-tool p { margin: 6px 0 14px; color: var(--muted); font-size: 15px; }
.cc-side-tool .cc-side-tool-h { color: var(--text); font-weight: 800; font-size: 17px; margin: 10px 0 0; }
.cc-sources { margin-top: 36px; padding: 18px 20px; border-radius: 14px; background: var(--paper); font-size: 15px; }
.cc-sources-h { font-weight: 800; margin: 0 0 6px; }
.cc-sources p { margin: 0 0 6px; }
@media (max-width: 1000px) { .cc-article-grid { grid-template-columns: 1fr; gap: 24px; } .cc-article-side { order: -1; } .cc-side-sticky { position: static; } .cc-side-tool { display: none; } .cc-toc { display: none; } }

/* Prose */
.cc-prose { font-size: 18px; line-height: 1.75; }
.cc-prose > * { margin-top: 0; margin-bottom: 1.1em; }
.cc-prose h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.02em; margin: 2em 0 .6em; }
.cc-prose h3 { font-size: 1.3rem; line-height: 1.3; margin: 1.6em 0 .5em; }
.cc-prose ul, .cc-prose ol { padding-left: 1.3em; }
.cc-prose li { margin-bottom: .4em; }
.cc-prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 1.4em 0; display: block; overflow-x: auto; }
.cc-prose th, .cc-prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cc-prose th { background: var(--paper); font-weight: 700; white-space: nowrap; }
.cc-prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--gold); background: #FFFBEB; border-radius: 0 12px 12px 0; }
.cc-prose img { border-radius: 14px; }
.cc-prose a { font-weight: 600; }
.cc-prose .cc-note-box { padding: 16px 18px; border-radius: 14px; background: #F2F7FF; border: 1px solid #C9DAF8; font-size: 16px; }

/* Empty + pager + 404 */
.cc-empty { display: flex; gap: 22px; align-items: center; padding: 32px; border: 1px dashed var(--line-strong); border-radius: 20px; }
.cc-pager { margin-top: 40px; }
.cc-pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-pager .page-numbers { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; }
.cc-pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.cc-search-404 { margin-top: 28px; }
.search-form { display: flex; gap: 8px; max-width: 460px; }
.search-form label { flex: 1; }
.search-field { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; }
.search-submit { font: inherit; font-weight: 700; padding: 12px 18px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; cursor: pointer; }

/* ==========================================================================
   Footer
   ========================================================================== */
.cc-footer { background: var(--night); color: #B9CCDA; padding: 64px 0 28px; font-size: 15px; }
.cc-footer a { color: #DCE7EF; text-decoration: none; }
.cc-footer a:hover { color: #fff; text-decoration: underline; }
.cc-foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; }
.cc-foot-logo { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.cc-foot-brand p { margin: 14px 0 20px; max-width: 34ch; }
.cc-foot-h { color: #fff; font-weight: 700; margin: 0 0 12px; }
.cc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cc-foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.cc-foot-base p { margin: 0; }
.cc-foot-base p:last-child a { margin-left: 16px; }
.cc-footer .cc-btn-light { color: var(--ink); }
@media (max-width: 900px) { .cc-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cc-foot-grid { grid-template-columns: 1fr; } }

/* Block editor alignment helpers */
.alignwide { width: min(1100px, 100vw - 40px); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image figcaption { font-size: 14px; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } .cc-screen { transform: none; } }
