/* Mustafa Hoca ile BİLSEM Merkezi — www.bilsemmerkezi.com.tr
 *
 * A faithful rebuild of the current bilsemmerkezi.online design, without WordPress. Every colour
 * below was read off the rendered page with a browser, not guessed: topbar #414b4f, header #efefef,
 * hero photo under an rgba(0,122,255,.54) wash, the four programme tiles #6ad61d / #ea9d2a /
 * #1482e2 / #e53dd1, headings #1e73be, body and footer #273044.
 *
 * The one deliberate departure is the typeface: Montserrat and Open Sans are replaced throughout by
 * Andika, self-hosted in the two weights it ships. No framework, no build step, no external request. */

@font-face {
  font-family: 'Andika';
  src: url('../fonts/Andika-400-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Turkish lives here: ş Ş ğ Ğ İ are all Latin Extended-A. */
@font-face {
  font-family: 'Andika';
  src: url('../fonts/Andika-400-latin-ext.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Andika';
  src: url('../fonts/Andika-700-latin.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Andika';
  src: url('../fonts/Andika-700-latin-ext.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --topbar: #414b4f;
  --header: #efefef;
  --ink: #273044;
  --heading: #1e73be;
  --gold: #eab830;
  --tile-tuzo: #6ad61d;
  --tile-resim: #ea9d2a;
  --tile-muzik: #1482e2;
  --tile-program: #e53dd1;
  --line: #e2e6ee;
  --wrap: 1170px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Andika', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;          /* the live site's body size */
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

.wrap { width: min(100% - 36px, var(--wrap)); margin-inline: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
/* companion to assets/js/site.js: no drag-to-desktop copy of the pictures */
img { -webkit-user-drag: none; user-select: none; }
a { color: var(--heading); }

/* ---------- top bar ---------- */
.topbar { background: var(--topbar); color: #fff; font-size: .82rem; }
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 4px 26px;
  align-items: center; justify-content: center;
  min-height: 38px; padding-block: 5px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; flex: none; fill: currentColor; }
.topbar-social { display: inline-flex; gap: 14px; }

/* ---------- header ---------- */
.site-header { background: var(--header); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 109px; padding-block: 14px;
}
.brand { display: inline-flex; }
.brand img { width: 250px; }

.primary-nav ul { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
  display: inline-block; padding: 10px 12px;
  color: #3f4756; text-decoration: none;
  font-weight: 700; font-size: .88rem; letter-spacing: .02em; text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.primary-nav a:hover { color: var(--heading); }
.primary-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* ---------- the Hakkımızda dropdown ---------- */
.primary-nav li { position: relative; }
.primary-nav .sub {
  position: absolute; left: 0; top: 100%; z-index: 30;
  display: none; min-width: 250px;
  margin: 0; padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(22, 48, 92, .14);
}
.primary-nav li:hover > .sub,
.primary-nav li:focus-within > .sub { display: block; }
.primary-nav .sub a {
  display: block; padding: 9px 18px;
  border-bottom: 0; font-size: .82rem; text-transform: none; white-space: nowrap;
}
.primary-nav .sub a:hover { background: var(--soft, #f4f7fd); }
@media (max-width: 900px) {
  .primary-nav .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 12px; min-width: 0; }
}


/* ---------- hero: the three-slide rotator ----------
 * Measured off the live slider rather than invented: no colour wash over the photographs, and each
 * slide carries its own treatment — slide 1 white uppercase, slide 2 #ffcc00 at 45px in a hand
 * style, slide 3 black on a white band. The hand face is Andika here, since Andika is the only
 * typeface this site uses.
 */
.hero {
  position: relative;
  overflow: hidden;
  /* The live slider is a fixed 900px stage; matched here, and only shortened once the viewport is
     too small for it to make sense. */
  min-height: 900px;
  background: #dfe3e6;
}
@media (max-width: 900px) { .hero { min-height: 540px; } }
@media (max-width: 560px) { .hero { min-height: 420px; } }
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  /* The headline sits near the top of the stage, not centred: 91px below the stage on the live site. */
  align-items: start;
  padding-top: 91px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .85s ease, visibility 0s linear .85s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .85s ease; }
.hero-slide-1 { background-image: url('../img/hero-1.jpg'); }
.hero-slide-2 { background-image: url('../img/hero-2.jpg'); background-position: center right; }
.hero-slide-3 { background-image: url('../img/hero-3.jpg'); }

.hero-text { font-weight: 400; line-height: 1.45; }
.hero-slide.is-active .hero-text { animation: heroTextIn .8s .12s ease both; }
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* slide 1 — white, uppercase, a centred block sitting in the left third */
.hero-slide-1 .hero-text {
  /* Measured off the live slide at 1440: 521px wide, 20px, starting at the container's left edge. */
  max-width: 521px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(.95rem, .8rem + .5vw, 1.25rem);
  letter-spacing: .01em;
}
/* slide 2 — the hand-written yellow line */
.hero-slide-2 .hero-text {
  /* Each of the two authored lines must hold on one line, as it does on the live slider; the
     measure is set by the longer of them (41 characters) rather than by a round number. */
  max-width: 46ch;
  color: #ffcc00;
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.85rem);   /* 45px on the live slide at 1280 */
  line-height: 1.5;
}
/* slide 3 — black on the white band that runs behind it */
.hero-slide-3 .hero-text {
  color: #000;
  text-align: center;
  font-size: clamp(1.1rem, .95rem + 1.25vw, 1.95rem);  /* 31px on the live slide at 1280 */
  background: rgba(255, 255, 255, .88);
  padding: 10px 18px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active .hero-text { animation: none; }
}

.button {
  display: inline-block; padding: 13px 28px;
  border: 2px solid transparent; border-radius: 4px;
  font-weight: 700; font-size: .88rem; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none;
}
.button-gold { background: var(--gold); color: #33280a; }
.button-gold:hover { background: #d3a41f; }
.button-outline { border-color: #fff; color: #fff; }
.button-outline:hover { background: #fff; color: var(--ink); }
.button-blue { background: var(--tile-muzik); color: #fff; }
.button-blue:hover { background: #106bbd; }

/* ---------- the four programme tiles, edge to edge ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); }
.tile {
  min-height: 420px; padding: 44px 34px;
  color: #fff; text-decoration: none;
  display: flex; flex-direction: column; gap: 34px;
}
.tile h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .01em; }
.tile svg {
  width: 64px; height: 64px;
  fill: none; stroke: #fff; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  color: #fff;                      /* the solid parts (note heads, palette dots) use currentColor */
}
.tile p { font-size: .92rem; color: rgba(255,255,255,.94); }
.tile-tuzo { background: var(--tile-tuzo); }
.tile-resim { background: var(--tile-resim); }
.tile-muzik { background: var(--tile-muzik); }
.tile-program { background: var(--tile-program); }
.tile:hover { filter: brightness(1.07); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* ---------- sections ---------- */
section[id] { scroll-margin-top: 20px; }
.band { padding-block: 66px; }
/* Section rhythm measured against the live page landmark by landmark: Mustafa Hoca at 1574, the
 * trio at 2546, the news at 2902. These paddings are what close those gaps. */
.band-doodle {
  background: #fff url('../img/doodle-bg.jpg') center/cover no-repeat;
  padding-block: 107px 135px;
}
.band-trio { padding-block: 0 119px; }
.band-news { padding-block: 66px 123px; }
.band-tint { background: #f7f9fc; }

.section-title {
  color: var(--heading);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
}
.section-title-center { text-align: center; }
/* the gold rule with a notch that sits under the centred headings */
.ornament { width: 78px; height: 12px; margin: 14px auto 34px; display: block; }
.ornament path { stroke: var(--gold); stroke-width: 2; fill: none; }

.prose > * + * { margin-top: 15px; }
.prose p { max-width: 74ch; }
/* inside a document the measure is the container, as on the live pages */
.document .prose p, .document .prose li { max-width: none; }

.split { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.trio { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.trio h2 { color: var(--ink); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); margin-bottom: 14px; }

.portrait { justify-self: center; max-width: 330px; }

.strip { padding-block: 34px 109px; }   /* the 75px the wordmark strip owes the trio below it */
.strip img { margin-inline: auto; width: min(450px, 76%); }

/* ---------- news ---------- */
.news { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.news article { display: flex; flex-direction: column; }
.news img { width: 100%; aspect-ratio: 370 / 193; object-fit: cover; }
.news h3 { margin-top: 18px; font-size: 1.05rem; color: var(--ink); text-transform: uppercase; }
.news p { margin-top: 12px; font-size: .92rem; }
.news .rule { width: 34px; height: 3px; margin-top: 18px; background: var(--tile-muzik); }
.news .by { margin-top: 12px; font-size: .84rem; color: #6d7688; }

/* ---------- contact ---------- */
.facts { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: 14px; align-items: baseline; }
.facts .label { flex: 0 0 auto; min-width: 96px; font-weight: 700; color: var(--heading); font-size: .88rem; text-transform: uppercase; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 30px 28px; }
.panel h3 { color: var(--heading); font-size: 1.15rem; }
.panel ul { margin-top: 14px; padding-left: 20px; }
.panel li + li { margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c6cede; padding-block: 54px 0; font-size: .9rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.1fr 1.4fr 1.1fr minmax(210px, .7fr); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.site-footer h4 {
  color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #c6cede; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.quick li { border-bottom: 1px solid rgba(255,255,255,.13); }
.quick a {
  display: block; padding: 11px 0 11px 16px; position: relative;
  font-size: .84rem; letter-spacing: .04em; text-transform: uppercase;
}
.quick a::before { content: '\203A'; position: absolute; left: 0; color: var(--gold); }
.contact-list li + li { margin-top: 14px; }

/* Measured off the live footer: 45px circles, 10px apart, on one row, each turning the brand gold
 * on hover rather than lightening. They must never wrap — four at 45px need 210px, so the column
 * below is given that as a floor. */
.social-round { display: flex; flex-wrap: nowrap; gap: 10px; }
.social-round a {
  width: 45px; height: 45px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.social-round svg { width: 20px; height: 20px; fill: #fff; }
.social-facebook { background: #3b5998; }
.social-twitter { background: #1da1f2; }
.social-instagram { background: #c32aa3; }
.social-youtube { background: #2c75e4; }
.social-round a:hover { background: var(--gold); }

.colophon {
  margin-top: 42px; padding-block: 20px;
  border-top: 1px solid rgba(255,255,255,.13);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-size: .82rem; color: #97a2b8;
}
.colophon img { width: 92px; }

/* ---------- the floating WhatsApp button ----------
 * One floating element, not two: the telephone lives in the top bar, the footer and the contact
 * page, so it does not also need a circle on the screen. No widget, no third-party script — this is
 * an anchor to wa.me, so nothing is loaded from Meta and nothing is tracked.
 *
 * It does not announce itself: it fades in only once the visitor has scrolled past the opening
 * screen, never opens anything by itself, and shows its label only on hover or keyboard focus.
 */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: inline-flex; align-items: center;
  height: 56px; border-radius: 28px;
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s, background .2s ease;
}
.wa-float.is-visible {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .28s ease, transform .28s ease, background .2s ease;
}
.wa-float:hover { background: #1eb955; }
.wa-icon { flex: none; width: 56px; height: 56px; display: grid; place-items: center; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-label {
  max-width: 0; padding-right: 0;
  overflow: hidden; white-space: nowrap;
  font-weight: 700; font-size: .88rem;
  transition: max-width .3s ease, padding-right .3s ease;
}
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 230px; padding-right: 20px; }
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-label { transition: none; }
}
@media (max-width: 560px) { .wa-float { right: 14px; bottom: 14px; } }

/* The desktop panel. wa.me on a computer opens web.whatsapp.com, which is only a mirror of a
 * phone — a visitor who has never linked one lands on a QR screen and gives up. So on a device
 * without touch the button opens these three routes instead of navigating; all three work whether
 * or not the person uses WhatsApp. It opens on their click and never on its own. */
.wa-dock { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; justify-items: end; gap: 12px; }
.wa-dock .wa-float { position: static; right: auto; bottom: auto; }
.wa-panel {
  width: 288px; padding: 16px 16px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(22, 48, 92, .20);
}
.wa-panel[hidden] { display: none; }
.wa-panel-title { margin-bottom: 12px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.wa-choice {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 8px; margin: 0 -8px; border-radius: 8px;
  color: var(--ink); text-decoration: none;
}
.wa-choice:hover { background: #f3f6fb; }
.wa-choice strong { display: block; font-size: .9rem; }
.wa-choice small { display: block; color: #6b7488; font-size: .8rem; }
.wa-choice-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.wa-choice-icon svg { width: 18px; height: 18px; fill: #fff; }
.wa-green { background: #25d366; }
.wa-blue { background: var(--tile-muzik); }
.wa-grey { background: #6b7488; }
/* A desktop visitor should not have to link a phone to WhatsApp Web just to ask a question. The
 * code carries the same wa.me link with the same opening line; pointing a phone camera at it opens
 * the chat on the phone, where WhatsApp already is. Generated at build time and inlined — no
 * request, no third party, nothing to load. */
.wa-qr-wrap { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.wa-qr { width: 76px; height: 76px; flex: none; }
.wa-qr-wrap p { font-size: .74rem; color: #8a93a6; line-height: 1.5; }
@media (max-width: 560px) { .wa-dock { right: 14px; bottom: 14px; } .wa-panel { width: min(288px, calc(100vw - 40px)); } }

/* ---------- inner pages ----------
 * Measured off /hakkimizda/: no banner, a 36px #273044 title on white, and two 570px columns in the
 * 1170px container with a 30px gutter — text on the left, the page's photograph on the right.
 */
.document { padding-block: 46px 66px; }
/* The band most inner pages carry: full bleed, 165px tall, a centred 50px white uppercase title.
 * Its colour is per page on the live site, so each page passes its own through --band. Hakkımızda
 * and İletişim have no band at all and use .page-title instead. */
.page-banner {
  background: var(--band, #dd1818);
  min-height: 165px;
  display: grid;
  place-items: center;
  padding: 26px 18px;
}
.page-banner h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 1.2rem + 2.4vw, 3.125rem);    /* lands on 50px at 1280, as measured */
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 700px) { .page-banner { min-height: 120px; } }

.page-title {
  margin-bottom: 26px;
  color: var(--ink);
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem);
  font-weight: 700;
}
.page-body { display: grid; gap: 30px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.page-body.is-single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .page-body { grid-template-columns: minmax(0, 1fr); } }
.page-media img { width: 100%; }
.page-media img + img { margin-top: 24px; }
.page-gallery { margin-top: 34px; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.page-gallery img { width: 100%; border: 1px solid var(--line); }

/* ---------- SSS accordion ----------
 * Native <details>: no script, keyboard-operable, and it still folds with JavaScript off.
 */
.faq-group {
  margin-top: 40px; margin-bottom: 14px;
  color: var(--heading); font-size: 1.15rem;
}
.faq-group:first-of-type { margin-top: 26px; }
.faq { border-top: 1px solid var(--line); }   /* the live accordion runs the container width */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 15px 44px 15px 0;
  font-weight: 700;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--heading); }
.faq summary::after {
  content: '';
  position: absolute; right: 12px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details[open] > summary { color: var(--heading); }
.faq-answer { padding: 0 44px 18px 0; }
.faq-answer p { margin-top: 0; }
.faq-answer p + p { margin-top: 12px; }
.faq-answer ul { margin-top: 12px; padding-left: 22px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- article pages ----------
 * The live article runs an 838px column under the red band; the archive is the same card grid the
 * home page uses. */
.article .wrap { width: min(100% - 36px, 838px); }
.article-title { margin-bottom: 10px; font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem); color: var(--ink); }
.article-meta { margin-bottom: 22px; font-size: .84rem; color: #8a93a6; }
.article-lead { width: 100%; margin-bottom: 24px; }
.article-figure { width: 100%; max-width: 520px; margin: 22px 0; }
.article h3 { margin-top: 28px; font-size: 1.1rem; color: var(--heading); }
.article p { margin-top: 13px; }
.article ul { margin-top: 14px; padding-left: 22px; }
.article li + li { margin-top: 7px; }
.article-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags span {
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .76rem; color: #6b7488;
}
/* the İstanbul directory table: wide content must scroll inside its own box, never the page */
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: .82rem; }
.table-wrap td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:nth-child(even) { background: #f7f9fc; }
.article-back { margin-top: 30px; }
.article-back a { color: var(--heading); text-decoration: none; font-weight: 700; }
.news h3 a { color: inherit; text-decoration: none; }
.news h3 a:hover { color: var(--heading); }

/* ---------- contact page ----------
 * The live page has no title: an eyebrow, a two-tone heading, the contact rows as a two-up grid of
 * coloured line icons separated by rules, the map beneath — all in the left column, with the
 * enquiry form in the right.
 */
.contact-page { padding-block: 40px 66px; }
.contact-grid { display: grid; gap: 44px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; } }

.ci-eyebrow { color: var(--heading); font-size: .82rem; margin-bottom: 16px; }
.ci-heading {
  margin-bottom: 26px;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.72rem);
  font-weight: 700; color: var(--ink);
}
.ci-heading span { color: var(--heading); }

.ci-row {
  display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 17px 0; border-top: 1px solid var(--line);
}
.ci-row:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .ci-row { grid-template-columns: minmax(0, 1fr); } }

.ci-item { display: flex; gap: 14px; align-items: flex-start; }
.ci-item > div { display: grid; gap: 2px; min-width: 0; }
.ci {
  flex: none; width: 26px; height: 26px; margin-top: 1px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ci-label { font-weight: 700; color: var(--ink); font-size: .92rem; }
.ci-value { color: #6b7488; word-break: break-word; }
.ci-value a { color: #6b7488; text-decoration: none; }
.ci-value a:hover { color: var(--heading); text-decoration: underline; }

.map-frame { margin-top: 26px; width: 100%; aspect-ratio: 16 / 11; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.callback h2 { margin: 0 0 22px; color: var(--heading); font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem); }
.callback form { display: grid; gap: 16px; }
.callback label { display: grid; gap: 7px; font-size: .9rem; color: #6b7488; }
.callback input, .callback select, .callback textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  padding: 11px 13px; border: 1px solid #e6eaf1; border-radius: 3px; background: #eef1f6;
}
.callback input:focus-visible, .callback select:focus-visible, .callback textarea:focus-visible {
  outline: 2px solid var(--heading); outline-offset: 1px; background: #fff;
}
.callback textarea { min-height: 150px; resize: vertical; }
.callback button {
  justify-self: start; cursor: pointer;
  font: inherit; font-size: .92rem; color: var(--ink);
  padding: 9px 20px; border: 1px solid #d7dce6; border-radius: 3px; background: #eef1f6;
}
.callback button:hover { background: #e2e7f0; }
.callback .note { font-size: .82rem; color: #8a93a6; line-height: 1.6; }



a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (max-width: 900px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; min-height: 0; }
  .primary-nav a { padding: 8px 9px; font-size: .82rem; }
  .brand img { width: 210px; }
  .hero { min-height: 460px; }
}
