﻿/* ============================================================
   Kiko school website theme (redesign Nov-22).
   A school's site reads like its notice board, not a startup page: paper and ink, the school's own colour
   doing the work (--primary, from the site settings), Martel for headings and Mukta for text - both drawn
   for Devanagari and Latin, so Nepali reads as well as English. No gradients, no floating cards.
   ============================================================ */
:root {
    --primary: #5B49B6;   /* the school's colour (per tenant, set in the layout) */
    --accent:  #F39C12;
    --dark:    #1C1F3A;

    --ink:     #1d2433;
    --ink-2:   #3d4454;
    --muted:   #6b6557;
    --paper:   #f3f1ec;
    --paper-2: #f7f4ec;
    --line:    #e4e0d6;
    --line-2:  #d9d3c5;
    --white:   #ffffff;
    --ok:      #1f7a3d;
    --bad:     #b3261e;

    /* Older names some pages still use. */
    --text:  var(--ink);
    --bg:    #ffffff;
    --bg-2:  var(--line);

    --radius:    8px;
    --radius-sm: 6px;
    --shadow:    0 1px 3px rgba(29, 36, 51, .12);
    --container: 1200px;
    --font:      'Mukta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Martel', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
::selection { background: color-mix(in srgb, var(--primary) 22%, white); color: var(--ink); }
body { font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.55; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
main p a:not(.btn), main li a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.25; color: var(--ink); }
h3, h4 { font-family: var(--font); font-weight: 700; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, white); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.text-center { text-align: center; }
.d-block { display: block; } .d-flex { display: flex; } .gap-2 { gap: .5rem; } .justify-content-center { justify-content: center; }
.w-100 { width: 100%; }
.me-1 { margin-right: .25rem; } .me-2 { margin-right: .5rem; } .ms-1 { margin-left: .25rem; } .ms-2 { margin-left: .5rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-3 { margin-bottom: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* -- Buttons: square-cornered, the school's colour, no lift --------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1.2;
    border: 1.5px solid transparent; border-radius: var(--radius-sm);
    padding: .7rem 1.3rem; cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { padding: .45rem .9rem; font-size: .92rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-primary, .btn-accent { background: var(--primary); color: #fff; }
.btn-primary:hover, .btn-accent:hover { background: color-mix(in srgb, var(--primary) 85%, black); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--paper); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-link { background: none; border: 0; padding: .7rem .3rem; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* -- Top bar: today in the school's calendar, a call, the language -------------------------------- */
.util-bar { background: var(--paper); border-bottom: 1px solid var(--line); font-size: .88rem; }
.util-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.util-bar .util-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.util-bar a:hover { text-decoration: underline; }
.util-bar .lang-toggle { font-weight: 700; }

.announce-bar { background: var(--primary); color: #fff; font-size: .95rem; padding: .5rem 0; text-align: center; }
.announce-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* -- Header ----------------------------------------------------------------------------------------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.nav-bar { display: flex; align-items: center; gap: 1.5rem; min-height: 88px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: .85rem; min-width: 0; }
.brand-logo { height: 54px; width: auto; max-width: 180px; object-fit: contain; }
.brand-mark { width: 54px; height: 54px; border-radius: 50%; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; }
.brand-sub { font-size: .9rem; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav-links > a, .nav-drop > a {
    display: inline-flex; align-items: center; gap: .3rem;
    font-weight: 600; font-size: 1rem; white-space: nowrap;
    padding: .55rem .75rem; border-radius: var(--radius-sm);
}
.nav-links > a:hover, .nav-drop > a:hover, .nav-drop:focus-within > a { background: var(--paper); }
.nav-links > a.is-current, .nav-drop > a.is-current { box-shadow: inset 0 -3px 0 var(--primary); border-radius: 0; }
.nav-links a.btn { margin-left: .5rem; padding: .65rem 1.2rem; }
.nav-links a.btn:hover { background: color-mix(in srgb, var(--primary) 85%, black); }
.nav-drop { position: relative; }
.nav-drop > a i { font-size: .7rem; }
.nav-drop-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 230px;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px -12px rgba(29,36,51,.25); padding: .4rem 0; z-index: 60; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: .55rem 1rem; font-weight: 500; }
.nav-drop-menu a:hover { background: var(--paper); }
.nav-toggle, .nav-toggle-label { display: none; }

/* -- Sections --------------------------------------------------------------------------------------- */
.section { padding: 4rem 0; }
.section-muted, .section-alt { background: var(--paper); }
.section-head { max-width: 760px; margin: 0 0 2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, .section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--muted); margin-top: .4rem; font-size: 1.08rem; }
.section-head .btn { margin-top: .75rem; }
.eyebrow { display: block; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .35rem; }
.more-link { display: inline-block; margin-top: 1rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.grid { display: grid; gap: 1.5rem; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* -- Homepage: first screen = the school's photo + its notice board ------------------------------- */
.home-top { padding: 2.25rem 0 2.5rem; }
.home-top .container { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; align-items: stretch; }
.home-top.no-board .container { grid-template-columns: minmax(0, 1fr); }
.home-lead { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.home-photo { position: relative; border-radius: 10px; overflow: hidden; min-height: 420px; background: var(--line-2);
    display: flex; align-items: flex-end; flex: 1; }
.home-top.no-board .home-photo { min-height: 480px; }
.home-photo img, .home-photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-photo .home-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: flex; align-items: flex-end; }
.home-photo .home-slide.active { opacity: 1; }
.home-caption { position: relative; width: 100%; padding: 2.5rem 2rem 1.75rem; color: #fff;
    background: linear-gradient(to top, rgba(20,22,30,.82), rgba(20,22,30,.45) 60%, rgba(20,22,30,0)); }
.home-caption h1, .home-caption .h1-like { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.18; max-width: 22em; }
.home-caption p { margin-top: .6rem; font-size: 1.1rem; max-width: 36em; color: rgba(255,255,255,.92); }
.home-dots { position: absolute; top: 1rem; right: 1rem; display: flex; gap: .4rem; z-index: 2; }
.home-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.home-dot.active { background: #fff; }
.home-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

.board { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem 1.5rem 1.1rem;
    display: flex; flex-direction: column; min-width: 0; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; }
.board-head h2 { font-size: 1.45rem; }
.board-head span { color: var(--muted); font-size: .95rem; }
.board-list { display: flex; flex-direction: column; }
.board-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.board-item:hover .board-title { text-decoration: underline; text-underline-offset: 2px; }
.board-title { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.board-meta { font-size: .88rem; color: var(--muted); margin-top: .2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.board-meta .pinned { color: var(--primary); font-weight: 600; }
.board-foot { margin-top: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* A date the way a notice board says it: the day big, the month under it. */
.date-tag { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line-2);
    border-radius: var(--radius-sm); background: #fff; padding: .35rem .2rem; line-height: 1.1; text-align: center; min-width: 0; }
.date-tag b { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; }
.date-tag span { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }

/* -- Six plain shortcuts for what a parent comes to do ---------------------------------------------- */
.tasks { padding: 0 0 3.5rem; }
.tasks .container { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.task { display: flex; flex-direction: column; gap: .3rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
    min-height: 104px; transition: border-color .15s ease, background .15s ease; }
.task:hover { border-color: var(--ink); background: var(--paper-2); }
.task i { color: var(--primary); font-size: 1.3rem; }
.task b { font-size: 1.02rem; line-height: 1.25; }
.task span { font-size: .88rem; color: var(--muted); line-height: 1.35; }

/* -- The principal's message, set as the letter it is ---------------------------------------------- */
.letter { background: var(--paper); padding: 4rem 0; }
.letter .container { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 3rem; align-items: start; max-width: 1040px; }
.letter-photo { width: 210px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.letter h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 1rem; }
.letter-body p { font-size: 1.15rem; line-height: 1.75; margin-bottom: 1rem; }
.letter-sign { margin-top: 1.25rem; display: flex; flex-direction: column; }
.letter-sign strong { font-size: 1.05rem; }

/* -- Numbers from the school's own records ---------------------------------------------------------- */
.facts { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.facts .container { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.fact { display: flex; flex-direction: column; min-width: 160px; }
.fact b { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; }
.fact span { color: var(--muted); }

/* -- What we teach: the levels as a plain list ------------------------------------------------------ */
.levels { max-width: 1040px; }
.level { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 1.5rem; padding: 1.15rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.level:last-child { border-bottom: 1px solid var(--line); }
.level-name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.level-text { color: var(--ink-2); }
.level-go { font-weight: 600; white-space: nowrap; }
a.level:hover .level-name { text-decoration: underline; text-underline-offset: 3px; }

/* -- School life: photos beside what is coming up --------------------------------------------------- */
.life .container { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.life .container.no-events { grid-template-columns: minmax(0, 1fr); }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
.mosaic a { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--line-2); }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem .7rem .5rem; color: #fff; font-size: .88rem; font-weight: 600;
    background: linear-gradient(to top, rgba(20,22,30,.75), rgba(20,22,30,0)); }
.coming h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; margin-bottom: .75rem; }
.coming-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .9rem; padding: .8rem 0; border-top: 1px solid var(--line-2); }
.coming-item b { display: block; font-weight: 600; line-height: 1.3; }
.coming-item small { color: var(--muted); font-size: .9rem; }
a.coming-item:hover b { text-decoration: underline; text-underline-offset: 2px; }

/* -- Why families choose us: a quiet four-column list ---------------------------------------------- */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.why-item i { font-size: 1.6rem; color: var(--primary); }
.why-item h3 { font-size: 1.1rem; margin: .5rem 0 .3rem; }
.why-item p { color: var(--ink-2); font-size: .98rem; }
/* The older card markup still used by CMS pages. */
.feature-card { border-top: 3px solid var(--primary); padding: 1.1rem 0 0; }
.feature-icon { color: var(--primary); font-size: 1.6rem; margin-bottom: .4rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.feature-card p { color: var(--ink-2); font-size: .98rem; }

/* -- About ------------------------------------------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.about-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: .25rem 0 1rem; }
.about-body p { color: var(--ink-2); margin-bottom: 1.5rem; font-size: 1.08rem; }

/* -- Voices ------------------------------------------------------------------------------------------ */
.voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.voice { display: flex; flex-direction: column; gap: .75rem; margin: 0; }
.voice blockquote { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.55; font-weight: 700; }
.voice figcaption { color: var(--muted); font-size: .95rem; }
.voice figcaption strong { color: var(--ink); }
.testimonial-card { border-top: 3px solid var(--primary); padding: 1rem 0 0; margin: 0; }
.testimonial-card blockquote { margin: 0 0 .75rem; font-family: var(--font-head); font-weight: 700; }
.testimonial-card figcaption { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* -- Admission band: the one thing to do, in the school's colour ----------------------------------- */
.cta-band { background: var(--primary); color: #fff; padding: 3.25rem 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .4rem; }
.cta-band p { font-size: 1.08rem; max-width: 40em; color: rgba(255,255,255,.92); }
.cta-band .cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* -- Visit ------------------------------------------------------------------------------------------ */
.visit .container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: stretch; }
.visit .container.no-map { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.visit-map { border-radius: 10px; overflow: hidden; min-height: 340px; background: var(--line-2); }
.visit-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.visit-body { display: flex; flex-direction: column; gap: 1rem; }
.visit-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.visit-lines { display: flex; flex-direction: column; gap: .5rem; font-size: 1.05rem; }
.visit-lines div { display: flex; gap: .6rem; align-items: baseline; }
.visit-lines i { color: var(--primary); }
.visit-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* -- Partner logos ---------------------------------------------------------------------------------- */
.logo-strip { padding: 2rem 0; border-top: 1px solid var(--line); }
.logo-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem; }
.logo-strip img { height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-strip img:hover { filter: none; opacity: 1; }

/* -- Program cards (Programs page) ------------------------------------------------------------------- */
.program-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.program-card-link:hover { border-color: var(--ink); }
.program-img { aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--line-2); }
.program-body { padding: 1.1rem 1.2rem 1.3rem; }
.program-level { color: var(--primary); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.program-body h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin: .3rem 0 .5rem; }
.program-body p { color: var(--ink-2); font-size: .98rem; }
.grade-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.program-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.program-fact { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.program-fact h3 { font-size: 1rem; margin: 0 0 .4rem; color: var(--primary); }
.program-fact p { margin: 0; color: var(--ink-2); }
.termdates-program { margin: 1.25rem 0 .5rem; font-size: 1.05rem; }
.termdates-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.termdates-table td { padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
.termdates-table tr:last-child td { border-bottom: 0; }
.termdates-table td.fw { font-weight: 600; width: 40%; }

/* Stats band (CMS page "stats" block). */
.stats-band { background: var(--paper); padding: 2.5rem 0; }
.stat { text-align: left; }
.stat-value { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat-label { color: var(--muted); margin-top: .2rem; }
.contact-card { border-top: 3px solid var(--primary); padding: 1rem 0 0; }
.contact-card i { font-size: 1.4rem; color: var(--primary); }
.contact-card h3 { font-size: 1.05rem; margin: .4rem 0 .25rem; }
.contact-card p { color: var(--ink-2); }
.contact-card a { color: inherit; }

/* -- Inner page heading: the page's name on paper, with the trail above it -------------------------- */
.page-hero, .page-banner { background: var(--paper); border-bottom: 1px solid var(--line); padding: 2.5rem 0 2.25rem; color: var(--ink); text-align: left; }
.page-hero h1, .page-banner h1 { color: var(--ink); font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 .35rem; }
.page-hero p, .page-banner p, .page-hero .muted { color: var(--ink-2); margin-top: .35rem; max-width: 46em; font-size: 1.08rem; }
.page-banner { text-align: left; }
.breadcrumb-trail { font-size: .92rem; margin-bottom: .6rem; color: var(--muted); }
.breadcrumb-trail a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb-trail span { margin: 0 .35rem; }
.page-hero .badge-pill { background: #fff; border: 1px solid var(--line-2); color: var(--ink); }

/* -- Notices ---------------------------------------------------------------------------------------- */
.notice-list { display: flex; flex-direction: column; max-width: 900px; border-top: 2px solid var(--ink); }
.notice-card { display: flex; align-items: center; gap: 1rem;
    padding: 1rem 0; border-bottom: 1px solid var(--line); color: inherit; }
.notice-card:hover h3 { text-decoration: underline; text-underline-offset: 2px; }
.notice-card h3 { margin: .15rem 0 .15rem; font-size: 1.1rem; font-family: var(--font); font-weight: 700; }
.notice-card p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.notice-card-body { min-width: 0; flex: 1; }
.notice-card .date-tag { flex: 0 0 64px; }
.notice-card-arrow { color: var(--muted); font-size: 1.1rem; }
.notice-card-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.notice-meta { display: flex; align-items: center; gap: .5rem; font-size: .88rem; flex-wrap: wrap; color: var(--muted); }
.badge-pill { display: inline-block; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: .05rem .5rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.badge-accent { background: var(--primary); border-color: var(--primary); color: #fff; }

.notice-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.notice-detail { max-width: 780px; }
.notice-detail p { line-height: 1.75; margin-bottom: 1rem; font-size: 1.08rem; }
.notice-cover { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; }
.notice-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.aside-box.is-school { background: var(--primary); border-color: var(--primary); color: #fff; }
.aside-box.is-school p { font-weight: 700; font-size: 1.1rem; margin-bottom: .75rem; }
.aside-box h2 { font-size: 1.15rem; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: .25rem; }
.aside-list a { display: flex; flex-direction: column; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.aside-list a:last-child { border-bottom: 0; }
.aside-list small { color: var(--muted); font-size: .85rem; }
.aside-list b { font-weight: 600; line-height: 1.3; }
.aside-list a:hover b { text-decoration: underline; text-underline-offset: 2px; }
.share-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: .95rem; }
.share-row a { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .35rem .7rem; font-weight: 600; }
.share-row a:hover { background: var(--paper); }

.notice-page { display: block; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.notice-page img { display: block; width: 100%; height: auto; }
.notice-files { display: flex; flex-direction: column; gap: .6rem; margin: .5rem 0 1.5rem; }
.notice-file { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; }
.notice-file:hover { border-color: var(--ink); }
.notice-file > i:first-child { font-size: 1.5rem; color: var(--primary); }
.notice-file-name { flex: 1; font-weight: 600; overflow-wrap: anywhere; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }

/* -- Gallery ---------------------------------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; }
.gallery-card { display: block; color: inherit; }
.gallery-card .gallery-card-img-wrap { overflow: hidden; border-radius: var(--radius); background: var(--line-2); }
.gallery-card img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-card:hover img { transform: scale(1.04); }
.gallery-card-empty { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--muted); }
.gallery-card-body { padding: .65rem 0 0; }
.gallery-card-body h3 { margin: 0 0 .15rem; font-size: 1.08rem; }
.gallery-card:hover h3 { text-decoration: underline; text-underline-offset: 2px; }
.gallery-card-body p { margin: 0; font-size: .9rem; color: var(--muted); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.photo-tile { margin: 0; }
.photo-tile a { display: block; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; background: var(--line-2); }
.photo-tile img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; transition: transform .4s ease; }
.photo-tile a:hover img { transform: scale(1.04); }
.photo-tile figcaption { font-size: .9rem; color: var(--muted); margin-top: .35rem; }

.lightbox { position: fixed; inset: 0; background: rgba(12, 14, 22, .94); z-index: 300;
    display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 2.5rem 1rem; }
.lightbox img { max-width: 94vw; max-height: 80vh; border-radius: 4px; }
.lightbox-caption { color: rgba(255,255,255,.88); font-size: .95rem; margin-top: 1rem; text-align: center; max-width: 80ch; }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: .85; }
.lightbox-close:hover { opacity: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); border: 0; color: #fff;
    width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-prev { left: 1rem; } .lightbox-next { right: 1rem; }

/* -- Events ----------------------------------------------------------------------------------------- */
.event-list { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.event-card { display: flex; align-items: center; gap: 1.1rem; padding: 1rem 0;
    border-bottom: 1px solid var(--line); color: inherit; }
.event-card:hover h3 { text-decoration: underline; text-underline-offset: 2px; }
.event-date-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line-2);
    border-radius: var(--radius-sm); background: #fff; padding: .4rem .2rem; line-height: 1.1; text-align: center; min-height: 64px; flex: 0 0 76px; }
.event-date-day { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; }
.event-date-month { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.event-date-past { background: var(--paper); }
.event-card-thumb { width: 104px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.event-card-body { min-width: 0; flex: 1; }
.event-card-body h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.event-card-body p { margin: 0; font-size: .92rem; color: var(--muted); }
.event-list-past .event-card { color: var(--ink-2); }

/* -- Downloads -------------------------------------------------------------------------------------- */
.download-list { display: flex; flex-direction: column; margin-bottom: 1.75rem; border-top: 2px solid var(--ink); }
.download-card { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); color: inherit; }
.download-card:hover h3 { text-decoration: underline; text-underline-offset: 2px; }
.download-icon { font-size: 1.6rem; color: var(--primary); }
.download-body { flex: 1; min-width: 0; }
.download-body h3 { margin: 0; font-size: 1.05rem; }
.download-body p { margin: 0; font-size: .88rem; color: var(--muted); }
.download-card-read { display: flex; align-items: center; gap: .75rem; }
.download-card-read .download-card-main { display: flex; align-items: center; gap: 1rem; flex: 1; color: inherit; text-decoration: none; min-width: 0; }

/* -- Team ------------------------------------------------------------------------------------------- */
.team-group { margin-bottom: 3.5rem; }
.team-group:last-child { margin-bottom: 0; }
.team-group-title { font-size: 1.5rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.75rem; margin-bottom: 1rem; }
.team-card { display: flex; flex-direction: column; }
.team-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); background: var(--line-2); }
.team-photo-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 3rem; }
.team-body { padding: .75rem 0 0; }
.team-body h3 { margin: 0 0 .1rem; font-size: 1.1rem; }
.team-role { display: block; color: var(--primary); font-weight: 600; font-size: .95rem; margin: 0 0 .35rem; }
.team-bio { font-size: .95rem; color: var(--ink-2); margin: .35rem 0 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* -- FAQ, CMS blocks -------------------------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: .95rem 0; }
.faq-item summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; }
.faq-item p { margin: .6rem 0 0; color: var(--ink-2); }
.cms-prose { max-width: 820px; line-height: 1.75; font-size: 1.08rem; }
.cms-prose h2 { margin: 1.6rem 0 .6rem; font-size: 1.6rem; }
.cms-prose h3 { margin: 1.2rem 0 .5rem; }
.cms-prose p { margin-bottom: 1rem; }
.cms-prose ul, .cms-prose ol { margin: 0 0 1rem 1.4rem; }
.cms-prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.cms-prose th, .cms-prose td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; }
.cms-prose a { text-decoration: underline; text-underline-offset: 2px; }
.cms-imagetext { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; }
.cms-imagetext.image-right img { order: 2; }
.cms-imagetext img { width: 100%; border-radius: var(--radius); }
.cms-video { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; max-width: 900px; margin: 0 auto; }
.cms-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -- Forms ------------------------------------------------------------------------------------------ */
.form-wrap { max-width: 780px; }
.form-card, .confirm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.form-section-title { font-size: 1.15rem; color: var(--ink); margin: 1.75rem 0 1rem; padding-bottom: .45rem; border-bottom: 2px solid var(--ink); }
.form-section-title:first-of-type { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .25rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .req { color: var(--bad); }
.field input, .field select, .field textarea {
    border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: .7rem .85rem;
    font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { margin-top: 2rem; text-align: right; }
.form-alert { background: #fdecea; color: var(--bad); border: 1px solid #f5c6c2; border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1.25rem; font-size: .95rem; }
.confirm-card { text-align: center; }
.confirm-icon { width: 68px; height: 68px; border-radius: 50%; background: #e6f2ea; color: var(--ok);
    display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1.1rem; }
.ref-pill { display: inline-block; background: var(--paper); border: 1px solid var(--line-2); color: var(--ink); font-weight: 700; font-size: 1.25rem;
    letter-spacing: 1px; padding: .55rem 1.4rem; border-radius: var(--radius-sm); margin: .75rem 0 1.25rem; }
.check-row { display: flex; align-items: center; gap: .5rem; margin: .25rem 0 1rem; cursor: pointer; }
.search-form { display: flex; gap: .6rem; max-width: 560px; margin-top: .75rem; }
.search-input { flex: 1; }

/* -- Footer ----------------------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #d7d9df; font-size: .95rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding: 3.25rem 32px 2.5rem; }
.footer-brand { display: flex; flex-direction: column; gap: .4rem; }
.footer-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff; }
.footer-logo { height: 56px; width: auto; max-width: 180px; object-fit: contain; margin-bottom: .5rem; background: #fff; border-radius: 6px; padding: 4px; }
.footer-motto { color: #b9bdc7; max-width: 320px; }
.footer-grid h4 { color: #fff; font-family: var(--font); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-grid a { display: block; color: #d7d9df; margin-bottom: .45rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.footer-grid p { margin-bottom: .45rem; }
.socials { display: flex; gap: .5rem; margin-top: .75rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #4a5163; display: flex; align-items: center; justify-content: center; color: #fff; margin: 0; }
.socials a:hover { background: #fff; color: var(--ink); text-decoration: none; }
.footer-bottom { border-top: 1px solid #39404f; padding: 1.1rem 0 4.5rem; font-size: .85rem; color: #a7abb6; } /* room for the chat bubble */
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* -- The phone's bottom bar: Call, Notices, Ask, Apply ---------------------------------------------- */
.phone-bar { display: none; }

/* -- Chat with admissions (desktop bubble; on a phone it opens from the bottom bar) ---------------- */
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 1000; }
.chat-toggle { position: absolute; opacity: 0; pointer-events: none; }
.chat-bubble { display: inline-flex; align-items: center; gap: .5rem; background: var(--ink); color: #fff;
    font-weight: 600; padding: .75rem 1.15rem; border-radius: 999px; cursor: pointer; box-shadow: 0 8px 24px -8px rgba(29,36,51,.5); }
.chat-bubble:hover { background: #000; }
.chat-bubble i { font-size: 1.15rem; }
.chat-panel { display: none; position: absolute; right: 0; bottom: 0; width: 360px; max-width: calc(100vw - 32px);
    background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(29,36,51,.5); }
.chat-toggle:checked ~ .chat-panel { display: block; }
.chat-toggle:checked ~ .chat-bubble { display: none; }
.chat-panel-head { background: var(--primary); color: #fff; padding: .85rem 1.1rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.chat-panel-close { cursor: pointer; font-size: 1.5rem; line-height: 1; }
.chat-panel-body { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; max-height: 70vh; overflow-y: auto; }
.chat-row { display: flex; gap: .6rem; }
.chat-input { border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: .6rem .75rem; font-family: inherit; font-size: .95rem; width: 100%; color: var(--ink); }
.chat-input:focus { outline: none; border-color: var(--primary); }
.chat-hint { font-size: .8rem; color: var(--muted); margin: .25rem 0 0; text-align: center; }
.chat-messages { height: 320px; max-height: 50vh; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .5rem; background: var(--paper-2); }
.kc-msg { max-width: 80%; border-radius: 12px; padding: .5rem .75rem; font-size: .95rem; line-height: 1.4; }
.kc-them { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.kc-mine { align-self: flex-end; background: var(--primary); color: #fff; }
.kc-who { font-size: .72rem; opacity: .75; margin-bottom: .15rem; }
.chat-compose { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); }
.chat-compose .chat-input { margin: 0; }
.chat-ended { padding: .85rem 1rem; border-top: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font-size: .9rem; text-align: center; }
/* The reCAPTCHA badge stays hidden; the footer carries Google's notice instead, as Google allows. */
.grecaptcha-badge { visibility: hidden; }

/* -- Announcement popup (with the poster) ------------------------------------------------------------ */
.announce-popup { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 200; }
.announce-popup-card { background: #fff; border-radius: 12px; max-width: 420px; width: calc(100% - 2rem); padding: 2rem; text-align: center; position: relative; }
.announce-popup-card p { margin-bottom: 1rem; font-size: 1.05rem; }
.announce-popup-close { position: absolute; top: .5rem; right: .8rem; border: 0; background: none; font-size: 1.6rem; cursor: pointer; }
.announce-popup-icon { font-size: 2rem; color: var(--primary); display: block; margin-bottom: .5rem; }
.announce-popup-card.has-poster { max-width: 560px; padding: 1rem 1rem 1.25rem; }
.announce-popup-poster { display: block; width: 100%; max-height: 72vh; object-fit: contain; border-radius: 8px; margin-bottom: .75rem; }

/* -- In-site PDF reader (PDF.js) ---------------------------------------------------------------------- */
.pdf-viewer { margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #ecebe6; overflow: hidden; }
.pdf-viewer-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .65rem 1rem; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.pdf-viewer-bar > i { font-size: 1.3rem; color: var(--primary); }
.pdf-viewer-name { font-weight: 600; flex: 1; min-width: 8rem; overflow-wrap: anywhere; }
.pdf-viewer-pages { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 1rem; max-height: 80vh; overflow-y: auto; }
.pdf-viewer-page { width: 100%; max-width: 820px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.pdf-viewer-page canvas { display: block; width: 100%; height: auto; }
.pdf-viewer-page.is-failed { background: repeating-linear-gradient(45deg, #fff, #fff 10px, #f1f1f1 10px, #f1f1f1 20px); }
.pdf-viewer.is-failed .pdf-viewer-pages { display: none; }
.pdf-viewer-more { text-align: center; margin: .5rem 0; }
.pdf-viewer:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.pdf-viewer:fullscreen .pdf-viewer-pages { max-height: none; flex: 1; }

/* -- The homepage message block's older markup (kept for the CMS "message" use) --------------------- */
.home-message .message-grid { display: grid; grid-template-columns: 210px 1fr; gap: 2.5rem; align-items: start; max-width: 1040px; }
.home-message .message-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.home-message blockquote { margin: .75rem 0 1rem; font-size: 1.1rem; line-height: 1.75; }
.home-message .message-sign { display: flex; flex-direction: column; }
.contact-map { margin-top: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.contact-map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }

/* -- Narrower screens ------------------------------------------------------------------------------- */
@media (max-width: 1099.98px) {
    .nav-toggle-label { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-left: auto;
        border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1.5rem; cursor: pointer; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: #fff; padding: .75rem 16px 1.25rem; gap: 0; border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px -20px rgba(29,36,51,.35); max-height: calc(100vh - 80px); overflow-y: auto;
    }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-links > a, .nav-drop > a { display: flex; padding: .8rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
    .nav-links > a.is-current { box-shadow: none; color: var(--primary); }
    .nav-links a.btn { margin: 1rem 0 0; justify-content: center; border-bottom: 0; padding: .85rem; border-radius: var(--radius-sm); }
    .nav-drop { display: block; width: 100%; }
    .nav-drop > a i { display: none; }
    .nav-drop-menu { display: block; position: static; border: 0; box-shadow: none; min-width: 0; padding: .1rem 0 .4rem .9rem; }
    .nav-drop-menu a { padding: .55rem .25rem; color: var(--ink-2); }
    .tasks .container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899.98px) {
    .home-top .container, .life .container, .visit .container, .about-grid, .notice-layout { grid-template-columns: minmax(0, 1fr); }
    .letter .container { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .letter-photo { width: 160px; }
    .voices { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .level { grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; }
    .level-text { grid-column: 1 / -1; grid-row: 2; }
    .cms-imagetext { grid-template-columns: 1fr; } .cms-imagetext.image-right img { order: 0; }
}
@media (max-width: 767.98px) {
    body { font-size: 16px; padding-bottom: 60px; }
    .container { padding: 0 16px; }
    .util-bar .util-hide-sm { display: none; }
    .nav-bar { min-height: 68px; gap: .75rem; }
    .brand { gap: .6rem; }
    .brand-logo { height: 42px; max-width: 120px; }
    .brand-mark { width: 42px; height: 42px; font-size: 1.1rem; }
    .brand-name { font-size: 1.08rem; }
    .brand-sub { font-size: .8rem; }
    .home-top { padding: 0 0 1.5rem; }
    .home-top .container { padding: 0; gap: 0; }
    .home-photo, .home-top.no-board .home-photo { min-height: 260px; border-radius: 0; }
    .home-caption { padding: 2rem 16px 1.1rem; }
    .home-caption h1, .home-caption .h1-like { font-size: 1.5rem; }
    .home-caption p { font-size: 1rem; }
    .home-actions { padding: 0 16px; }
    .home-actions .btn { flex: 1 1 auto; }
    .board { border-radius: 0; border-left: 0; border-right: 0; margin-top: 1.25rem; padding: 1.1rem 16px .9rem; }
    .tasks { padding-bottom: 2rem; }
    .tasks .container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .task { min-height: 88px; padding: .85rem .8rem; }
    .section, .letter { padding: 2.75rem 0; }
    .facts { padding: 2rem 0; }
    .facts .container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
    .fact { min-width: 0; }
    .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
    .why { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-card, .confirm-card { padding: 1.25rem; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: 2.5rem 16px 2rem; }
    .notice-card-arrow { display: none; }
    .event-card-thumb { display: none; }
    .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .visit-map, .visit-map iframe { min-height: 240px; }

    /* The bar replaces the floating chat bubble, which sat over the content. */
    .phone-bar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -12px rgba(29,36,51,.35); }
    .phone-bar a, .phone-bar label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 58px;
        font-weight: 600; font-size: .88rem; cursor: pointer; border-left: 1px solid var(--line); }
    .phone-bar > :first-child { border-left: 0; }
    .phone-bar i { font-size: 1.15rem; }
    .phone-bar .is-apply { background: var(--primary); color: #fff; border-left-color: var(--primary); }
    .chat-bubble { display: none; }
    .chat-widget { right: 8px; left: 8px; bottom: 66px; }
    .chat-panel { width: auto; left: 0; max-width: none; }
}
@media print {
    .util-bar, .site-header, .site-footer, .phone-bar, .chat-widget, .announce-bar, .notice-aside { display: none !important; }
    body { padding: 0; }
}
.aside-title { font-size: 1.15rem; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; }
@media (max-width: 767.98px) { .notice-card .notice-card-thumb { display: none; } }
