
/* ===== globals.css ===== */
:root {
  --ink: #10172b;
  --muted: #697189;
  --paper: #fffdf9;
  --blue: #2485db;
  --deep-blue: #142e64;
  --pink: #ef1386;
  --green: #39b64a;
  --line: #e8e6e1;
}

/* Durable CMS */
.cms-admin-shell { min-height: 100vh; background: #f4f6fb; color: #162348; }
.cms-sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 20; overflow-y: auto; }
.cms-sidebar .admin-nav button { white-space: nowrap; }
.cms-sidebar .admin-sidebar-bottom { gap: 9px; }
.cms-sidebar .admin-sidebar-bottom small { color: #8e9ab6; overflow: hidden; text-overflow: ellipsis; }
.cms-workspace { margin-left: 250px; width: calc(100% - 250px); padding: 30px clamp(20px, 4vw, 56px) 70px; }
.cms-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 20px; }
.cms-header span, .cms-card-heading > div > span { color: #d41b42; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.cms-header h1 { margin: 4px 0 0; font: 800 clamp(25px, 3vw, 38px)/1.1 var(--font-heading, sans-serif); color: #122047; }
.unsaved-badge { color: #9a5a00; background: #fff3d6; border: 1px solid #f0d193; padding: 9px 12px; border-radius: 99px; font-size: 12px; }
.cms-notice { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid; border-radius: 13px; padding: 13px 16px; margin-bottom: 20px; font-size: 14px; font-weight: 700; }
.cms-notice.success { color: #0c684e; background: #ebfaf4; border-color: #b8e8d8; }.cms-notice.error { color: #9b263d; background: #fff0f2; border-color: #f2bec8; }.cms-notice.info { color: #23538c; background: #eef6ff; border-color: #c5dcf4; }
.cms-notice button { border: 0; background: transparent; font-size: 20px; cursor: pointer; color: inherit; }
.cms-loading { min-height: 55vh; display: grid; place-content: center; text-align: center; color: #6d7892; }
.cms-loading i { width: 32px; height: 32px; border: 3px solid #dbe1ed; border-top-color: #e95877; border-radius: 50%; animation: cms-spin .8s linear infinite; margin: auto; } @keyframes cms-spin { to { transform: rotate(360deg); } }
.cms-welcome { background: linear-gradient(130deg,#132451,#1e376d); color: white; border-radius: 20px; padding: clamp(24px,4vw,42px); display: flex; justify-content: space-between; align-items: end; gap: 24px; box-shadow: 0 18px 45px #172a5420; }
.cms-welcome span { color: #ff9caf; font-size: 11px; letter-spacing: .16em; font-weight: 900; }.cms-welcome h2 { margin: 9px 0; font-size: clamp(24px,3vw,38px); }.cms-welcome p { margin: 0; color: #cad3e6; }
.cms-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 18px 0; }.cms-stat-grid article { background: white; border: 1px solid #e2e7f0; border-radius: 16px; padding: 20px; display: grid; gap: 4px; }.cms-stat-grid span,.cms-stat-grid small { color: #69738b; font-size: 12px; }.cms-stat-grid strong { font-size: 30px; color: #16295a; }
.cms-card { background: white; border: 1px solid #e1e6ef; border-radius: 18px; padding: clamp(18px,3vw,30px); box-shadow: 0 10px 32px #17264d0a; }
.cms-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }.cms-card-heading h3 { margin: 5px 0 0; font-size: 22px; color: #152653; }.cms-card-heading p { margin: 7px 0 0; color: #687185; font-size: 13px; max-width: 680px; line-height: 1.5; }
.cms-form-card { display: grid; gap: 18px; }.cms-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 18px; }.cms-field { display: grid; align-content: start; gap: 7px; color: #34425f; font-size: 13px; font-weight: 800; }.cms-field input,.cms-field textarea,.cms-field select,.cms-filter-row input,.cms-filter-row select,.cms-card-heading select { width: 100%; border: 1px solid #d7ddea; border-radius: 10px; background: #fff; padding: 11px 12px; color: #14234c; font: inherit; outline: none; }.cms-field input:focus,.cms-field textarea:focus,.cms-field select:focus,.cms-filter-row input:focus { border-color: #7088bf; box-shadow: 0 0 0 3px #647fb21a; }.cms-field small,.cms-help { color: #697184; font-size: 11px; line-height: 1.45; font-weight: 500; }.cms-field output { color: #e04f70; font-weight: 900; }
.cms-inline-switches { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 13px 0; }.cms-inline-switches label { display: inline-flex; align-items: center; gap: 8px; color: #3d4a66; font-size: 13px; font-weight: 700; }.cms-inline-switches input { accent-color: #e65373; width: 17px; height: 17px; }
.cms-save-bar { display: flex; gap: 10px; align-items: center; padding-top: 18px; border-top: 1px solid #edf0f5; position: sticky; bottom: 0; background: #fff; z-index: 3; }.cms-save-bar > span { flex: 1; }.admin-secondary { border: 1px solid #d5dcea; background: white; color: #2c3c62; border-radius: 10px; padding: 11px 15px; font-weight: 800; cursor: pointer; }.admin-primary:disabled,.admin-secondary:disabled { opacity: .55; cursor: wait; }
.cms-overview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }.cms-overview-grid button { text-align: left; display: grid; gap: 8px; background: #f8f9fc; border: 1px solid #e1e6ef; border-radius: 13px; padding: 17px; cursor: pointer; }.cms-overview-grid b { width: fit-content; font-size: 10px; text-transform: uppercase; color: #127f60; background: #e7f8f1; border-radius: 99px; padding: 4px 7px; }.cms-overview-grid strong { color: #182957; }.cms-overview-grid span { color: #677390; font-size: 12px; }
.cms-sort-list { display: grid; gap: 9px; margin-bottom: 18px; }.cms-sort-list article { display: flex; align-items: center; gap: 12px; border: 1px solid #e1e6ef; border-radius: 12px; padding: 12px; background: #fafbfc; }.cms-sort-list article > div { min-width: 0; flex: 1; display: grid; gap: 3px; }.cms-sort-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.cms-sort-list small { color: #687285; }.cms-sort-list em { color: #ad5a00; font-size: 11px; font-style: normal; }.sort-number { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #e9edf5; color: #3d4f76; font-weight: 900; }.sort-actions { display: flex; gap: 5px; }.sort-actions button,.cms-row-actions button { border: 1px solid #d9dfeb; background: white; color: #34466e; border-radius: 8px; padding: 7px 9px; cursor: pointer; font-weight: 700; }.sort-actions button:disabled { opacity: .35; }.sort-actions button:last-child { color: #a52b45; }.cms-filter-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-bottom: 15px; }.cms-table-list { display: grid; gap: 8px; }.cms-table-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #edf0f5; padding: 12px 0; }.cms-table-list article > div { display: grid; gap: 4px; min-width: 0; }.cms-table-list small { color: #687188; }
.cms-empty { text-align: center; padding: 36px 18px; background: #f8f9fb; border: 1px dashed #d5dce8; border-radius: 13px; color: #53607a; }.cms-empty p { margin-bottom: 0; color: #6a7386; }.home-camps-empty { padding: 38px; text-align: center; border: 1px dashed #e0b4bc; border-radius: 16px; color: #5d3150; }
.cms-status { width: fit-content; font-size: 10px; font-weight: 900; text-transform: uppercase; border-radius: 99px; padding: 4px 7px; }.cms-status.live { background: #e4f8f0; color: #087859; }.cms-status.draft { background: #fff2d8; color: #98600b; }.cms-status.archived { background: #eceef2; color: #6d7483; }.cms-row-actions { display: flex; gap: 6px; }.cms-row-actions .danger { color: #b42c48; }
.cms-row-actions .danger-solid { border-color: #b42c48; background: #b42c48; color: #fff; }.cms-row-actions .danger-solid:hover { background: #962238; border-color: #962238; }.cms-field .cms-field-note { color: #34466e; font-weight: 600; }.cms-field-note b { font-weight: 800; }
.cms-subcard { background: #f7f8fb; border: 1px solid #e1e6ef; border-radius: 13px; padding: 16px; }.cms-subcard h4 { margin: 0; }.watermark-text { position: absolute; z-index: 2; white-space: nowrap; transform-origin: center; }
.admin-access-denied { min-height: 100vh; display: grid; place-items: center; background: #f2f5fb; padding: 20px; }.admin-access-denied section { max-width: 480px; text-align: center; background: white; border-radius: 20px; padding: 42px; box-shadow: 0 20px 60px #182a5019; }.admin-access-denied img { width: 150px; }.admin-access-denied span { display: block; color: #e65373; font-weight: 900; font-size: 11px; letter-spacing: .14em; margin-top: 24px; }.admin-access-denied h1 { color: #152856; }.admin-access-denied p { color: #6d7890; }.admin-access-denied a { display: inline-block; background: #182e60; color: white; padding: 12px 16px; border-radius: 10px; text-decoration: none; font-weight: 800; }
.maintenance-page { min-height: 65vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 40px 20px; background: #f8f9fc; }.maintenance-page > span { font-size: 46px; }.maintenance-page h1 { color: #142e64; font-size: clamp(30px,5vw,56px); margin: 18px 0 10px; }.maintenance-page p { color: #6b748a; max-width: 560px; line-height: 1.6; }
@media (max-width: 1080px) { .cms-stat-grid { grid-template-columns: repeat(2,1fr); }.cms-overview-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 780px) { .cms-sidebar { position: static; width: 100%; height: auto; padding: 12px; }.cms-sidebar .admin-brand { display:none }.cms-sidebar .admin-nav { display:flex; overflow-x:auto; gap:5px; }.cms-sidebar .admin-nav button { width:auto; flex:0 0 auto; padding:9px 11px; }.cms-sidebar .admin-sidebar-bottom { display:none }.cms-workspace { margin-left:0; width:100%; padding:20px 14px 50px; }.cms-header { align-items:flex-start }.cms-form-grid { grid-template-columns:1fr }.cms-welcome { align-items:flex-start; flex-direction:column }.cms-filter-row { grid-template-columns:1fr 1fr }.cms-filter-row input { grid-column:1/-1 }.cms-sort-list article { flex-wrap:wrap }.sort-actions { width:100%; justify-content:flex-end }.cms-save-bar { flex-wrap:wrap }.cms-save-bar > span { display:none }.cms-save-bar button { flex:1; min-width:140px }.cms-table-list article { align-items:flex-start; flex-direction:column }.cms-row-actions { width:100%; overflow-x:auto }.cms-row-actions button { white-space:nowrap } }
@media (max-width: 480px) { .cms-stat-grid,.cms-overview-grid { grid-template-columns:1fr }.cms-card { padding:16px }.cms-header h1 { font-size:27px }.cms-card-heading { flex-direction:column }.cms-sort-list article { display:grid; grid-template-columns:auto auto 1fr }.cms-sort-list article > div { grid-column:3 }.sort-actions { grid-column:1/-1 }.cms-stat-grid article { padding:16px } }

/* Genel Bakış: son 30 gün istatistikleri */
.cms-analytics { margin-top: 18px; }.cms-analytics .cms-card-heading { margin-bottom: 16px; }
.cms-stat-grid.cms-stat-grid--pair { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 0 14px; }.cms-stat-grid--pair article { background: #f8f9fc; border-color: #e1e6ef; }.cms-stat-grid--pair small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cms-change { font-size: 11px; font-weight: 900; border-radius: 99px; padding: 3px 8px; }.cms-change.up { background: #e4f8f0; color: #087859; }.cms-change.down { background: #fff0f2; color: #9b263d; }.cms-change.flat { background: #eceef2; color: #5d6679; }.cms-change.new { background: #eef6ff; color: #23538c; }
.cms-rank-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.cms-rank { min-width: 0; border: 1px solid #e1e6ef; border-radius: 13px; padding: 16px; }.cms-rank h4 { margin: 0 0 4px; color: #182957; font-size: 14px; }.cms-rank ol { list-style: none; margin: 0; padding: 0; }
.cms-rank li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 7px 12px; padding: 11px 0; border-top: 1px solid #edf0f5; }.cms-rank li:first-child { border-top: 0; }.cms-rank li > div { display: grid; gap: 3px; min-width: 0; }.cms-rank strong { color: #16295a; font-size: 13px; overflow-wrap: anywhere; }.cms-rank strong em { color: #6d7483; font-style: normal; font-weight: 700; }.cms-rank small { color: #687188; font-size: 11px; }
.cms-rank li > b { color: #16295a; font-size: 15px; white-space: nowrap; }.cms-rank li > b span { color: #687188; font-size: 11px; font-weight: 700; }.cms-rank li > i { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 99px; background: #eef1f6; }.cms-rank li > i span { display: block; height: 100%; border-radius: inherit; background: #e95877; }.cms-rank-empty { margin: 8px 0 0; color: #6a7386; font-size: 13px; }
.cms-analytics-note { margin: 14px 0 0; color: #53607a; font-size: 13px; font-weight: 700; }.cms-analytics-status { margin: 0; color: #6d7892; font-size: 14px; }.cms-analytics-status.error { color: #9b263d; background: #fff0f2; border: 1px solid #f2bec8; border-radius: 11px; padding: 11px 14px; }.cms-analytics-status button { margin-left: 4px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }.cms-analytics-footnote { margin: 16px 0 0; color: #6a7386; font-size: 11px; }
@media (max-width: 1080px) { .cms-rank-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cms-stat-grid.cms-stat-grid--pair { grid-template-columns: 1fr; }.cms-rank { padding: 14px; } }

* { box-sizing: border-box; }
/* Yumuşak kaydırma yalnızca hareket azaltma tercihi olmayan ziyaretçide. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* "İçeriğe geç": klavyeyle ilk Tab'da görünür, Enter ana içeriğe atlar. */
.skip-link { position: absolute; left: 12px; top: 0; z-index: 2000; padding: 12px 18px; border-radius: 0 0 10px 10px; background: #0b2a4a; color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; transform: translateY(-120%); }
.skip-link:focus { transform: none; outline: 3px solid #ffd54a; outline-offset: 2px; }
#icerik:focus { outline: none; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.brand { width: 158px; height: 72px; display: flex; align-items: center; overflow: hidden; }
.brand img { width: 150px; height: auto; display: block; }
.public-nav { display: flex; gap: 25px; font-weight: 700; font-size: 13px; }
.public-nav a { padding: 10px 0; transition: color .2s ease; position: relative; }
.public-nav a:hover { color: var(--pink); }
.public-nav a.active { color: var(--pink); }
.public-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 99px;
  background: var(--pink);
}
.header-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 17px;
  font-size: 13px;
  font-weight: 800;
  transition: .2s ease;
}
.header-cta:hover { background: var(--ink); color: white; transform: translateY(-2px); }

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 78px;
  padding: 72px 0 80px;
}
.eyebrow, .section-kicker {
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 3px; background: var(--pink); border-radius: 99px; }
.hero h1 {
  margin: 19px 0 22px;
  max-width: 620px;
  font-size: clamp(58px, 6.1vw, 91px);
  line-height: .93;
  letter-spacing: -.065em;
  font-weight: 950;
}
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy > p { max-width: 570px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 850;
  font-size: 15px;
}
.primary-button { background: var(--pink); color: #fff; box-shadow: 0 12px 26px #ef138633; }
.primary-button span { margin-left: 28px; }
.primary-button:hover { transform: translateY(-3px); }
.secondary-button { border: 1px solid var(--line); background: #fff; }

.hero-portrait { position: relative; min-height: 520px; display: flex; align-items: flex-end; justify-content: center; isolation: isolate; }
.hero-portrait > img { width: min(440px, 92%); height: auto; display: block; filter: drop-shadow(0 24px 24px #10172b20); }
.portrait-caption { position: absolute; left: 0; bottom: 36px; z-index: 2; min-width: 205px; padding: 16px 20px; border: 1px solid #e7e9ee; border-radius: 17px; background: #fffffff2; box-shadow: 0 16px 40px #10172b17; backdrop-filter: blur(10px); }
.portrait-caption span { display: block; color: var(--pink); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.portrait-caption strong { display: block; margin-top: 5px; font-size: 20px; letter-spacing: -.035em; }

.level-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 35px; }
.section-heading h2, .resource-strip h2, .about-teaser h2 { margin: 8px 0 0; font-size: clamp(36px, 4vw, 58px); line-height: 1; letter-spacing: -.055em; }
.section-heading p { max-width: 410px; color: var(--muted); line-height: 1.65; margin: 0; }
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.level-card {
  position: relative;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 25px;
  background: #fff;
  overflow: hidden;
  transition: .25s ease;
}
.level-card:hover { transform: translateY(-7px); box-shadow: 0 22px 42px #10172b12; border-color: transparent; }
.level-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -45px; bottom: -50px; opacity: .11; background: currentColor; }
.level-card.blue { color: #167ad2; } .level-card.pink { color: #e81483; }
.level-card.green { color: #19983a; } .level-card.purple { color: #7754d8; }
.level-card.orange { color: #ee6d22; } .level-card.navy { color: #15336c; }
.level-index { color: #9ca2b0; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.level-card h3 { color: var(--ink); margin: 58px 0 6px; font-size: 25px; letter-spacing: -.035em; }
.level-card p { color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.level-card b { font-size: 12px; }
.level-card b span { margin-left: 8px; }

.resource-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 24px;
  border-radius: 28px;
  background: #f7d923;
  padding: 55px 58px;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 44px;
}
.resource-strip .section-kicker { color: #7a6500; }
.resource-strip h2 { font-size: 42px; }
.resource-strip p { line-height: 1.65; max-width: 360px; }
.resource-strip a { background: var(--ink); color: #fff; padding: 16px 18px; border-radius: 13px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.resource-strip a span { margin-left: 18px; }

.about-teaser {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 80px;
  padding: 50px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}
.teacher-badge { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; background: var(--blue); color: #fff; font-weight: 950; font-size: 23px; }
.about-teaser h2 { font-size: 30px; }
.about-teaser > a { font-size: 13px; font-weight: 850; border-bottom: 2px solid var(--pink); padding-bottom: 6px; }

@media (max-width: 900px) {
  .public-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 55px; }
  .hero h1 { font-size: clamp(56px, 14vw, 78px); }
  .hero-portrait { width: min(560px, 100%); min-height: 500px; margin: 0 auto; }
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-strip { grid-template-columns: 1fr; gap: 22px; }
  .resource-strip p { margin: 0; }
  .resource-strip a { justify-self: start; }
}

/* Interactive periodic table */
.periodic-page-heading,
.periodic-explorer {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}

.periodic-page-heading {
  padding: 64px 0 34px;
  border-bottom: 1px solid var(--line);
}

.periodic-page-heading h1 {
  margin: 10px 0 0;
  color: var(--deep-blue);
  font-size: clamp(45px, 5vw, 72px);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 780;
}

.periodic-explorer { padding: 24px 0 100px; }

.periodic-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.periodic-search {
  width: min(440px, 100%);
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #cfd8df;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(11, 32, 55, .04);
}

.periodic-search > span { color: var(--blue); font-size: 24px; line-height: 1; transform: rotate(-15deg); }
.periodic-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
/* iOS Safari yerel arama kutusu görünümüyle yuvarlak kutunun içine ikinci bir odak çerçevesi, Chrome ikinci bir × çiziyordu. */
.periodic-search input { -webkit-appearance: none; appearance: none; }
.periodic-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.periodic-search button { width: 27px; height: 27px; border: 0; border-radius: 50%; background: #edf2f5; color: #536273; cursor: pointer; font-size: 18px; line-height: 1; }
.periodic-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 16px;
}

.periodic-table-panel {
  min-width: 0;
  border: 1px solid #d8e0e6;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(11, 32, 55, .07);
  overflow: hidden;
}

.periodic-scroll { overflow-x: auto; padding: 18px; scrollbar-color: #9eb5c6 #eaf0f3; scrollbar-width: thin; }
.periodic-scroll:focus-visible { outline: 3px solid #2389c4; outline-offset: -3px; }
.group-labels,
.periodic-grid { min-width: 1000px; display: grid; grid-template-columns: repeat(18, minmax(48px, 1fr)); gap: 4px; }
.group-labels { padding-bottom: 6px; }
.group-labels span { color: #5d6a75; text-align: center; font-size: 9px; font-weight: 700; }
.periodic-grid { grid-template-rows: repeat(7, 67px); }

.element-cell,
.series-placeholder {
  --element-color: #557789;
  --element-soft: #edf3f5;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 7px 6px 6px;
  border: 1px solid color-mix(in srgb, var(--element-color) 24%, #d7dfe4);
  border-radius: 6px;
  background: var(--element-soft);
  color: var(--deep-blue);
  cursor: pointer;
  overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease, border-color .14s ease;
}

.element-cell::after,
.series-placeholder::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--element-color);
}

.element-cell > span,
.series-placeholder > span { color: #5d6a75; font-size: 8px; font-weight: 700; line-height: 1; }
.element-cell > strong,
.series-placeholder > strong { margin-top: 3px; color: #102b42; font-size: 20px; line-height: 1; letter-spacing: -.03em; }
.element-cell > small,
.series-placeholder > small { width: 100%; margin-top: 3px; color: #596875; font-size: 7px; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.element-cell > i { position: absolute; top: 6px; right: 5px; color: #55626d; font-size: 6px; font-style: normal; }
.element-cell:hover,
.element-cell:focus-visible,
.series-placeholder:hover,
.series-placeholder:focus-visible { z-index: 2; border-color: var(--element-color); outline: 0; box-shadow: 0 8px 19px rgba(10, 36, 56, .18); transform: translateY(-2px) scale(1.04); }
.element-cell.selected { z-index: 3; border-color: var(--element-color); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--element-color), 0 8px 20px rgba(10, 36, 56, .15); }
.element-cell.dimmed,
.series-placeholder.dimmed { opacity: .18; filter: grayscale(.45); }
.element-cell.dimmed.selected { opacity: .82; filter: none; }

.category-alkali { --element-color: #bf4e66; --element-soft: #f9e9ed; }
.category-alkaline { --element-color: #c47a32; --element-soft: #fbf0e4; }
.category-transition { --element-color: #3978a4; --element-soft: #e8f1f7; }
.category-post-transition { --element-color: #547a78; --element-soft: #e9f1f0; }
.category-metalloid { --element-color: #6d8a45; --element-soft: #eff4e8; }
.category-nonmetal { --element-color: #25844b; --element-soft: #e7f4eb; }
.category-halogen { --element-color: #288b89; --element-soft: #e5f4f3; }
.category-noble { --element-color: #6552a5; --element-soft: #eeebf8; }
.category-lanthanide { --element-color: #9a5a88; --element-soft: #f5eaf2; }
.category-actinide { --element-color: #8a5eaa; --element-soft: #f0eaf6; }

.series-placeholder { align-items: center; text-align: center; }
.series-placeholder > strong { font-size: 14px; }
.series-placeholder > small { font-size: 7px; }
.periodic-series { min-width: 1000px; display: grid; grid-template-columns: 90px 1fr; gap: 5px 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3e8ec; }
.series-label { display: flex; flex-direction: column; justify-content: center; padding-left: 7px; }
.series-label span { color: #5d6a75; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.series-label strong { margin-top: 3px; color: #3e4e5c; font-size: 10px; }
.series-row { display: grid; grid-template-columns: repeat(15, minmax(48px, 1fr)); gap: 4px; }
.series-cell { min-height: 62px; }

.element-detail {
  --element-color: #3978a4;
  --element-soft: #e8f1f7;
  position: sticky;
  top: 98px;
  min-height: 555px;
  padding: 22px;
  border: 1px solid #d3dde4;
  border-radius: 17px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--element-soft) 78%, #fff), #fff 48%);
  box-shadow: 0 16px 48px rgba(11, 32, 55, .08);
  overflow: hidden;
}

.element-detail::after { content: ""; position: absolute; width: 180px; height: 180px; right: -90px; top: -90px; border: 1px solid color-mix(in srgb, var(--element-color) 26%, transparent); border-radius: 50%; }
.element-detail-top { display: grid; grid-template-columns: 94px 1fr; gap: 17px; align-items: center; position: relative; z-index: 1; }
.element-symbol-card { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--element-color) 36%, #d6dfe5); border-radius: 11px; background: #fff; box-shadow: inset 4px 0 0 var(--element-color); }
.element-symbol-card span { color: #64727e; font-size: 10px; }
.element-symbol-card strong { color: var(--deep-blue); font-size: 39px; line-height: 1; letter-spacing: -.05em; }
.element-symbol-card small { margin-top: 5px; color: #64727e; font-size: 9px; }
.element-family { display: inline-block; color: color-mix(in srgb, var(--element-color) 80%, #000); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.element-detail h2 { margin: 5px 0 4px; color: var(--deep-blue); font-size: 25px; letter-spacing: -.035em; }
.element-detail-top p { margin: 0; color: #586774; font-size: 11px; }
.element-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 25px; }
.element-facts > div { min-height: 91px; display: flex; flex-direction: column; padding: 13px; border: 1px solid #dce4e9; border-radius: 10px; background: rgba(255,255,255,.76); }
.element-facts span,
.shell-distribution span { color: #586774; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.element-facts strong { margin-top: auto; color: var(--deep-blue); font-size: 20px; letter-spacing: -.03em; }
.element-facts small { color: #5d6a75; font-size: 8px; }
.shell-distribution { margin-top: 8px; padding: 15px; border-left: 3px solid var(--element-color); border-radius: 0 9px 9px 0; background: rgba(255,255,255,.78); }
.shell-distribution strong { display: block; margin-top: 7px; color: var(--deep-blue); font-size: 17px; letter-spacing: .04em; }
.element-usage { margin-top: 8px; padding: 15px; border: 1px solid #dce4e9; border-radius: 10px; background: rgba(255,255,255,.78); }
.element-usage h3 { margin: 0; padding: 0 0 10px; border-bottom: 1px solid color-mix(in srgb, var(--element-color) 28%, #dce4e9); color: var(--element-color); font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.element-usage p { margin: 11px 0 0; color: #465968; font-size: 11px; line-height: 1.55; }
.periodic-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; padding: 17px; border: 1px solid #d9e1e6; border-radius: 13px; background: #fff; }
.periodic-legend button { --element-color: #627381; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px; border: 1px solid #dde4e8; border-radius: 999px; background: #fff; color: #51616e; cursor: pointer; font-size: 10px; font-weight: 700; }
.periodic-legend button i { width: 8px; height: 8px; border-radius: 2px; background: var(--element-color); }
.periodic-legend button:hover,
.periodic-legend button.active { border-color: var(--element-color); color: var(--deep-blue); background: var(--element-soft, #eef2f4); }

@media (max-width: 1180px) {
  .periodic-workspace { grid-template-columns: 1fr; }
  .element-detail { position: static; min-height: 0; display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 18px; }
  .element-facts { margin-top: 0; }
  .shell-distribution,
  .element-usage { grid-column: 1 / -1; margin-top: 0; }
}

@media (max-width: 900px) {
  .periodic-page-heading { padding-top: 44px; }
}

@media (max-width: 620px) {
  .periodic-page-heading,
  .periodic-explorer { width: min(100% - 28px, 1440px); }
  .periodic-page-heading { padding: 36px 0 26px; }
  .periodic-page-heading h1 { font-size: 44px; }
  .periodic-explorer { padding-top: 16px; padding-bottom: 70px; }
  .periodic-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .periodic-search { width: 100%; }
  .periodic-scroll { padding: 12px; }
  .element-detail { display: block; padding: 18px; }
  .element-facts { margin-top: 20px; }
  .shell-distribution { margin-top: 8px; }
  .element-usage { margin-top: 8px; }
  .periodic-legend { flex-wrap: nowrap; overflow-x: auto; padding: 12px; }
  .periodic-legend button { flex: 0 0 auto; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .element-cell,
  .series-placeholder { transition: none; }
  .element-cell:hover,
  .element-cell:focus-visible,
  .series-placeholder:hover,
  .series-placeholder:focus-visible { transform: none; }
}

@media (max-width: 580px) {
  .site-header { width: min(100% - 28px, 1180px); height: 78px; }
  .brand { width: 124px; }
  .brand img { width: 118px; }
  .header-cta { padding: 10px 12px; font-size: 11px; }
  .hero, .level-section, .resource-strip, .about-teaser { width: min(100% - 28px, 1180px); }
  .hero { padding: 42px 0 60px; }
  .hero h1 { font-size: 52px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-portrait { min-height: 420px; }
  .hero-portrait > img { width: min(350px, 94%); }
  .portrait-caption { left: 0; bottom: 20px; min-width: 180px; padding: 13px 16px; }
  .portrait-caption strong { font-size: 17px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 20px; }
  .level-grid { grid-template-columns: 1fr; }
  .level-card { min-height: 210px; }
  .resource-strip { padding: 38px 25px; }
  .resource-strip h2 { font-size: 36px; }
  .about-teaser { grid-template-columns: auto 1fr; }
  .about-teaser > a { grid-column: 2; justify-self: start; }
}

/* Shared public pages */
.camp-section,
.library-section,
.stories-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 110px;
}
.camp-section { padding-top: 10px; }
.text-link { font-size: 13px; font-weight: 850; border-bottom: 2px solid var(--pink); padding-bottom: 5px; }
.home-camp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.home-camp-grid > a { background: #fff; border: 1px solid var(--line); border-radius: 21px; padding: 12px; transition: .25s ease; }
.home-camp-grid > a:hover { transform: translateY(-6px); box-shadow: 0 20px 40px #10172b14; }
.home-camp-grid > a > div { aspect-ratio: 16/9; overflow: hidden; border-radius: 14px; position: relative; background: #e9edf5; }
.home-camp-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-camp-grid small { display: block; color: var(--pink); font-weight: 850; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; margin: 18px 7px 7px; }
.home-camp-grid h3 { margin: 0 7px; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; min-height: 46px; }
.home-camp-grid b { display: block; margin: 18px 7px 8px; font-size: 11px; }

.site-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; border-top: 1px solid var(--line); padding: 55px 0 25px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; }
.footer-brand img { width: 180px; height: auto; }
.footer-brand p { color: var(--muted); font-size: 14px; font-weight: 700; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.footer-links div { display: flex; flex-direction: column; gap: 9px; }
.footer-links strong { font-size: 12px; margin-bottom: 7px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--pink); }
.footer-bottom { grid-column: 1/-1; display: flex; justify-content: space-between; padding-top: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.page-hero { width: min(1180px, calc(100% - 40px)); margin: 0 auto; min-height: 405px; padding: 75px 70px; border-radius: 30px; color: #fff; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid #fff2; }
.page-hero::before { width: 390px; height: 390px; right: -85px; top: -160px; }
.page-hero::after { width: 230px; height: 230px; right: 60px; bottom: -165px; }
.page-hero > span { color: #82e58d; text-transform: uppercase; font-size: 11px; font-weight: 900; letter-spacing: .14em; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(48px, 6vw, 78px); line-height: .95; letter-spacing: -.06em; margin: 15px 0 20px; position: relative; z-index: 1; }
.page-hero h1 em { color: #ff53ab; font-style: normal; }
.page-hero p { max-width: 580px; color: #d9e0f0; font-size: 17px; line-height: 1.7; margin: 0; position: relative; z-index: 1; }
.video-page-hero { background: var(--deep-blue); }
.notes-page-hero { background: #0c5948; }
.questions-page-hero { background: #63336f; }
.stories-page-hero { background: #203a74; }
.notes-page-hero > span { color: #ffdd43; }
.notes-page-hero h1 em { color: #ffdd43; }
.questions-page-hero > span { color: #ffb4da; }

.library-section { padding-top: 42px; }
.library-toolbar { display: flex; justify-content: space-between; gap: 25px; align-items: center; margin-bottom: 30px; }
.filter-row { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-row button { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; min-height: 44px; padding: 10px 14px; cursor: pointer; font-size: 12px; font-weight: 750; }
.filter-row button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-box { min-width: 250px; height: 44px; background: #fff; border: 1px solid var(--line); border-radius: 999px; display: flex; align-items: center; padding: 0 16px; gap: 9px; }
.search-box span { font-size: 22px; color: var(--muted); transform: rotate(-20deg); }
.search-box input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 13px; color: var(--ink); }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: 23px; padding: 12px; overflow: hidden; transition: .25s ease; }
.content-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px #10172b12; }
.content-cover { aspect-ratio: 16/9; position: relative; border-radius: 15px; overflow: hidden; background: #e6eaf2; }
.content-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-play { position: absolute; left: 16px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); color: #fff; font-size: 11px; box-shadow: 0 8px 24px #0004; }
.content-body { padding: 19px 8px 10px; }
.content-type { color: var(--pink); text-transform: uppercase; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.content-body h2 { margin: 8px 0; font-size: 21px; line-height: 1.18; letter-spacing: -.035em; min-height: 50px; }
.content-body p { color: var(--muted); font-size: 12px; min-height: 18px; }
.content-body a, .content-body button { width: 100%; height: 44px; margin-top: 12px; display: flex; justify-content: space-between; align-items: center; border: 0; background: #f2f4f7; color: var(--ink); padding: 0 14px; border-radius: 11px; font-weight: 800; font-size: 12px; cursor: pointer; }
.content-body a:hover, .content-body button:hover { background: var(--ink); color: #fff; }
.content-body button:disabled { opacity: .5; cursor: not-allowed; }
.library-empty, .stories-empty { min-height: 310px; border: 1px dashed #ccd0da; border-radius: 25px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px; background: #fff; }
.library-empty > span, .stories-empty > span { width: 66px; height: 66px; display: grid; place-items: center; background: #f8da27; border-radius: 20px; font-weight: 950; }
.library-empty h2, .stories-empty h2 { margin: 22px 0 8px; font-size: 25px; }
.library-empty p, .stories-empty p { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.6; }

.about-page { width: min(1030px, calc(100% - 40px)); margin: 70px auto 110px; display: grid; grid-template-columns: 340px 1fr; gap: 80px; align-items: start; }
.about-copy > span, .contact-page > span { color: var(--pink); text-transform: uppercase; font-size: 11px; letter-spacing: .12em; font-weight: 900; }
.about-copy h1 { margin: 10px 0 24px; font-size: 67px; letter-spacing: -.06em; }
.about-copy p { color: var(--muted); line-height: 1.75; }
.about-copy .about-lead { color: var(--ink); font-size: 20px; font-weight: 650; }
.about-quote { background: #f4f6fa; border-left: 4px solid var(--blue); border-radius: 0 18px 18px 0; padding: 24px; font-size: 21px; font-weight: 850; line-height: 1.45; margin: 28px 0; }
.about-copy > a { display: inline-block; background: var(--pink); color: #fff; padding: 15px 18px; border-radius: 13px; font-size: 13px; font-weight: 850; margin-top: 15px; }
.contact-page { width: min(1000px, calc(100% - 40px)); margin: 80px auto 120px; text-align: center; }
.contact-page h1 { font-size: clamp(54px, 7vw, 88px); line-height: .93; letter-spacing: -.065em; margin: 15px 0 55px; }
.social-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; text-align: left; }
.social-cards a { min-height: 200px; border: 1px solid var(--line); background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; position: relative; transition: .2s ease; }
.social-cards a:hover { transform: translateY(-6px); border-color: var(--pink); }
.social-cards b { font-size: 25px; }
.social-cards small { color: var(--muted); margin-top: 8px; }
.social-cards i { margin-top: auto; align-self: end; font-style: normal; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.story-grid article { min-height: 300px; border: 1px solid var(--line); background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; }
.story-grid article > span { color: var(--pink); font-size: 56px; font-family: Georgia, serif; line-height: .6; }
.story-grid p { color: #4f5669; line-height: 1.7; flex: 1; }
.story-grid strong { font-size: 14px; }
.story-grid small { color: var(--muted); margin-top: 5px; }

.not-found-page {
  width: min(850px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  padding: 90px 0 110px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.not-found-code {
  position: absolute;
  inset: 10px 0 auto;
  color: #142e6409;
  font-size: clamp(180px, 28vw, 360px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.09em;
  pointer-events: none;
}
.not-found-page > span {
  color: var(--pink);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  position: relative;
}
.not-found-page h1 {
  margin: 17px 0 22px;
  font-size: clamp(55px, 8vw, 92px);
  line-height: .92;
  letter-spacing: -.065em;
  position: relative;
}
.not-found-page h1 em { color: var(--blue); font-style: normal; }
.not-found-page p { max-width: 590px; color: var(--muted); line-height: 1.7; position: relative; }
.not-found-actions { display: flex; gap: 12px; margin-top: 24px; position: relative; }

@media (max-width: 900px) {
  .home-camp-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr; }
  .page-hero { padding: 65px 40px; }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .library-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { max-width: 360px; }
  .about-page { grid-template-columns: 260px 1fr; gap: 40px; }
  .social-cards, .story-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .camp-section, .library-section, .stories-section, .site-footer, .page-hero { width: min(100% - 28px, 1180px); }
  .home-camp-grid, .content-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .page-hero { min-height: 375px; padding: 45px 24px; border-radius: 24px; }
  .page-hero h1 { font-size: 49px; }
  .filter-row { flex-wrap: wrap; }
  .filter-row button { white-space: nowrap; }
  .search-box { min-width: 100%; }
  .about-page { width: min(100% - 28px, 1030px); grid-template-columns: 1fr; margin-top: 35px; }
  .about-copy h1 { font-size: 52px; }
  .contact-page { width: min(100% - 28px, 1000px); margin-top: 50px; }
  .not-found-page { width: min(100% - 28px, 850px); min-height: 570px; padding: 65px 0 85px; }
  .not-found-actions { width: 100%; flex-direction: column; }
}

/* Professional public redesign */
:root {
  --ink: #102238;
  --muted: #5b6775;
  --paper: #f6f7f8;
  --blue: #1769b0;
  --deep-blue: #0b2037;
  --pink: #c91f68;
  --green: #25844b;
  --line: #dce1e6;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { min-height: 60vh; }

a,
button { transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  /* Beyaz zeminde 3,86:1, koyu lacivert zeminde 4,01:1 (WCAG 1.4.11 için en az 3:1). */
  outline: 3px solid #2389c4;
  outline-offset: 3px;
}

/* iOS Safari 16px'ten küçük yazılı alana dokunulunca sayfayı yakınlaştırıp yanlardan kesiyor. */
@media (pointer: coarse) {
  :root :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select, textarea) { font-size: max(16px, 1em); }
}

.site-header {
  width: 100%;
  height: 82px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}

.brand {
  width: 136px;
  height: 64px;
}

.brand img { width: 132px; }

.public-nav {
  gap: 30px;
  font-size: 13px;
  font-weight: 650;
}

.public-nav a { color: #344154; }
.public-nav a:hover,
.public-nav a.active { color: var(--blue); }
.public-nav a.active::after { background: var(--blue); height: 2px; }

.header-cta {
  border-color: #b7c0ca;
  border-radius: 9px;
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 700;
}

.header-cta:hover {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  transform: none;
}

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 600px;
  margin: 28px auto 0;
  padding: 54px 58px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  gap: 58px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 10%, rgba(113, 195, 238, .16), transparent 32%),
    radial-gradient(circle at 88% 88%, rgba(26, 113, 185, .22), transparent 38%),
    #09253c;
  border: 1px solid rgba(134, 199, 237, .14);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(9, 37, 60, .16);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(143, 205, 242, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 205, 242, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 54%);
  mask-image: linear-gradient(90deg, #000, transparent 54%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }
.hero-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; }

.eyebrow,
.section-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .11em;
}

.hero .eyebrow { color: #91c9f3; }
.eyebrow span { width: 18px; height: 2px; background: currentColor; }

.hero h1 {
  margin: 0 0 36px;
  max-width: 680px;
  font-size: clamp(64px, 6.3vw, 88px);
  line-height: .89;
  letter-spacing: -.065em;
  font-weight: 790;
  text-wrap: balance;
}

.hero .eyebrow + h1 { margin-top: 20px; }
.hero h1 em {
  color: #79c8f2;
  background: linear-gradient(96deg, #8bd4f6 0%, #62b4e7 68%, #9bdcf7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy > p {
  max-width: 600px;
  color: #c8d3df;
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions { margin-top: 0; gap: 12px; }

.primary-button,
.secondary-button {
  min-height: 54px;
  border-radius: 11px;
  padding: 0 21px;
  font-size: 14px;
  font-weight: 750;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.primary-button {
  color: #08233a;
  background: #83cef3;
  box-shadow: 0 12px 30px rgba(6, 21, 35, .2);
}

.primary-button span { margin-left: 22px; }
.primary-button:hover { background: #a0ddf8; transform: translateY(-2px); }

.secondary-button {
  color: inherit;
  border-color: rgba(255,255,255,.25);
  background: transparent;
}

.secondary-button:hover { border-color: rgba(255,255,255,.58); background: rgba(255,255,255,.08); transform: translateY(-2px); }

.hero-portrait {
  min-height: 490px;
  align-self: stretch;
  background:
    radial-gradient(circle at 50% 42%, rgba(92, 171, 222, .21), transparent 42%),
    linear-gradient(150deg, #153d5e 0%, #102f4a 100%);
  border: 1px solid rgba(155, 210, 243, .15);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 26px 44px rgba(2, 18, 31, .24);
  overflow: hidden;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 34px 28px;
  z-index: 0;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
}

.hero-portrait > img {
  width: min(430px, 98%);
  position: relative;
  z-index: 2;
  filter: grayscale(1) contrast(1.04) drop-shadow(0 20px 20px rgba(0,0,0,.2));
}

.chemical-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.molecule-label {
  position: absolute;
  color: rgba(151, 205, 243, .58);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-shadow: 0 0 18px rgba(99, 178, 235, .18);
  animation: chemical-float 7s ease-in-out infinite;
}

.molecule-co2 { left: 8%; top: 24%; transform: rotate(-8deg); }
.molecule-h2o { right: 7%; top: 49%; transform: rotate(7deg); animation-delay: -2.4s; }
.molecule-o2 { left: 10%; top: 59%; font-size: 12px; animation-delay: -4.2s; }

.atom-model {
  position: absolute;
  width: 72px;
  height: 72px;
  opacity: .48;
  animation: atom-drift 9s ease-in-out infinite;
}

.atom-one { left: 8%; top: 9%; }
.atom-two { right: 5%; bottom: 13%; width: 54px; height: 54px; animation-delay: -3.5s; }

.atom-model i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 30%;
  border: 1px solid rgba(145, 201, 243, .64);
  border-radius: 50%;
}

.atom-model i:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.atom-model i:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); }
.atom-model i:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg); }

.atom-model b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8bc5ef;
  box-shadow: 0 0 14px rgba(121, 190, 239, .65);
  transform: translate(-50%, -50%);
}

.particle-specks {
  position: absolute;
  left: 22%;
  top: 17%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(150, 206, 245, .7);
  box-shadow:
    245px 22px 0 rgba(150, 206, 245, .34),
    276px 166px 0 rgba(150, 206, 245, .5),
    -18px 188px 0 rgba(150, 206, 245, .38),
    232px 302px 0 rgba(150, 206, 245, .28),
    42px 342px 0 rgba(150, 206, 245, .4);
  animation: speck-pulse 5s ease-in-out infinite;
}

@keyframes chemical-float {
  0%, 100% { translate: 0 0; opacity: .62; }
  50% { translate: 0 -7px; opacity: .9; }
}

@keyframes atom-drift {
  0%, 100% { translate: 0 0; rotate: -2deg; }
  50% { translate: 4px -8px; rotate: 5deg; }
}

@keyframes speck-pulse {
  0%, 100% { opacity: .42; }
  50% { opacity: .82; }
}

.portrait-caption {
  z-index: 3;
  left: 18px;
  bottom: 18px;
  min-width: 190px;
  padding: 13px 16px 14px;
  color: #fff;
  border-color: rgba(174, 219, 245, .19);
  border-radius: 11px;
  background: rgba(6, 28, 45, .83);
  box-shadow: 0 12px 26px rgba(2, 16, 27, .2);
}

.portrait-caption span { color: #9dc9e9; font-size: 9px; font-weight: 700; }
.portrait-caption strong { font-size: 18px; font-weight: 700; }

.level-section,
.camp-section,
.library-section,
.stories-section {
  width: min(1180px, calc(100% - 48px));
}

.level-section { padding: 108px 0 98px; }
.camp-section { padding: 10px 0 110px; }

.section-heading {
  align-items: end;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.resource-strip h2,
.about-teaser h2 {
  margin-top: 9px;
  font-size: clamp(34px, 3.8vw, 50px);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-weight: 730;
}

.section-heading p { max-width: 430px; color: var(--muted); font-size: 15px; }
.text-link { color: var(--blue); border: 0; padding: 8px 0; font-size: 12px; font-weight: 700; }

.level-grid { gap: 12px; }

.level-card,
.level-card.blue,
.level-card.pink,
.level-card.green,
.level-card.purple,
.level-card.orange,
.level-card.navy {
  min-height: 205px;
  padding: 23px;
  color: var(--blue);
  border-color: #d8dee5;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 3px 0 var(--blue);
}

.level-card::after { display: none; }
.level-card:hover { transform: translateY(-3px); border-color: #b9c6d2; box-shadow: inset 0 3px 0 var(--blue), 0 12px 26px rgba(16,34,56,.07); }
.level-index { color: #8995a3; font-size: 10px; font-weight: 700; }
.level-card h3 { margin: 40px 0 7px; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.level-card p { min-height: 38px; margin-bottom: 18px; font-size: 13px; }
.level-card b { display: flex; justify-content: space-between; color: var(--blue); font-size: 11px; font-weight: 700; }

.home-camp-grid { gap: 13px; }

.home-camp-grid > a {
  padding: 8px 8px 16px;
  border-radius: 12px;
}

.home-camp-grid > a:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(16,34,56,.07); }
.home-camp-grid > a > div { border-radius: 7px; }

.home-camp-grid small { margin: 15px 7px 6px; color: var(--blue); font-size: 9px; font-weight: 700; }
.home-camp-grid h3 { font-size: 17px; font-weight: 700; min-height: 44px; }
.home-camp-grid b { color: #526173; font-size: 10px; font-weight: 650; }

.resource-strip {
  width: min(1180px, calc(100% - 48px));
  margin-bottom: 30px;
  padding: 48px 52px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  color: #fff;
  border-radius: 16px;
  background: var(--deep-blue);
}

.resource-strip .section-kicker { color: #87bfe9; }
.resource-strip h2 { max-width: 520px; font-size: 37px; }
.resource-strip p { color: #c5d0dc; font-size: 14px; }

.resource-strip a {
  justify-self: end;
  padding: 14px 16px;
  color: var(--deep-blue);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.about-teaser {
  width: min(1180px, calc(100% - 48px));
  margin-bottom: 95px;
  padding: 34px;
  gap: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.teacher-badge {
  width: 84px;
  height: 84px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  background: #dce5ed;
  filter: grayscale(1);
}

.about-teaser h2 { max-width: 730px; font-size: 28px; }
.about-teaser > a { color: var(--blue); border: 0; padding: 10px 0; font-size: 12px; font-weight: 700; white-space: nowrap; }
.about-teaser > a span { margin-left: 10px; }

.site-footer {
  width: 100%;
  margin: 0;
  padding: 58px max(24px, calc((100% - 1180px) / 2)) 26px;
  color: #fff;
  border: 0;
  background: #091a2b;
}

.footer-brand img {
  width: 154px;
  padding: 7px;
}

.footer-brand p { color: #aebbc8; font-size: 13px; font-weight: 500; }
.footer-links strong { color: #fff; font-size: 11px; }
.footer-links a { color: #aebbc8; font-size: 12px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { color: #8796a5; border-color: rgba(255,255,255,.12); }

.page-hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 355px;
  margin: 32px auto 0;
  padding: 64px;
  border-radius: 18px;
  background: var(--deep-blue);
  box-shadow: inset 4px 0 0 #3382c1;
}

.page-hero::before,
.page-hero::after { display: none; }

.video-page-hero,
.notes-page-hero,
.questions-page-hero,
.stories-page-hero { background: var(--deep-blue); }

.stories-page-hero {
  min-height: 250px;
  padding-block: 48px;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 20%, rgba(59, 135, 191, .18), transparent 34%),
    linear-gradient(135deg, #0c2942 0%, #0b2338 58%, #10324d 100%);
}

.page-hero.stories-page-hero h1 { margin-block: 0; }
.stories-page-hero + .stories-section { padding-top: 36px; }

.academic-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.academic-icon {
  position: absolute;
  fill: none;
  stroke: #8bc6ed;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .18;
}

.academic-icon-cap { width: 94px; right: 6%; top: 11%; transform: rotate(6deg); }
.academic-icon-school { width: 138px; right: 20%; bottom: 7%; opacity: .15; }
.academic-icon-pencil { width: 58px; left: 57%; top: 13%; transform: rotate(-10deg); opacity: .15; }
.academic-icon-diploma { width: 74px; right: 3%; bottom: 11%; transform: rotate(7deg); opacity: .16; }
.academic-icon-book { width: 76px; left: 49%; bottom: 4%; transform: rotate(-4deg); opacity: .13; }

.page-hero > span,
.notes-page-hero > span,
.questions-page-hero > span { color: #88c0ea; font-size: 10px; font-weight: 750; }

.page-hero h1 {
  max-width: 860px;
  margin: 15px 0 18px;
  font-size: clamp(45px, 5.4vw, 66px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 740;
}

.page-hero h1 em,
.notes-page-hero h1 em { color: #77bbea; }
.page-hero p { color: #c6d1dc; font-size: 16px; }

.library-section { padding: 42px 0 110px; }
.library-toolbar { margin-bottom: 26px; }

.filter-row button {
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 8px;
  background: transparent;
  font-size: 11px;
  font-weight: 650;
}

/* Seçili filtrenin üzerine gelinince (telefonda dokunduktan sonra) yazı koyu zeminde kayboluyordu. */
.filter-row button:not(.active):hover { border-color: #aab6c2; color: var(--ink); }
.filter-row button.active { color: #fff; background: var(--deep-blue); border-color: var(--deep-blue); }

.search-box {
  min-width: 270px;
  border-radius: 8px;
  background: #fff;
}

.search-box span { color: #7b8794; font-size: 18px; transform: none; }
.content-grid { gap: 13px; }

.content-card {
  padding: 8px;
  border-radius: 12px;
}

.content-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,34,56,.07); }
.content-cover { border-radius: 7px; }

.cover-play {
  left: 10px;
  bottom: 10px;
  width: auto;
  height: 30px;
  padding: 0 11px;
  border-radius: 6px;
  background: rgba(8,29,48,.9);
  box-shadow: none;
}
.content-body { padding: 16px 9px 9px; }
.content-type { color: var(--blue); font-size: 9px; font-weight: 700; }
.content-body h2 { font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.content-body p { color: #5b6875; }

.content-body a,
.content-body button {
  border: 1px solid #dce2e8;
  border-radius: 7px;
  background: #f7f9fa;
  font-size: 11px;
  font-weight: 700;
}

.content-body a:hover,
.content-body button:hover { background: var(--deep-blue); border-color: var(--deep-blue); }

.library-empty,
.stories-empty {
  border-style: solid;
  border-radius: 12px;
  background: #fff;
}

.library-empty > span,
.stories-empty > span {
  width: auto;
  height: auto;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--blue);
  background: #edf4fa;
}

.about-page {
  width: min(1040px, calc(100% - 48px));
  margin: 72px auto 115px;
  grid-template-columns: 380px 1fr;
  gap: 82px;
}

.about-portrait {
  margin: 0;
  min-height: 510px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #dfe7ee;
}

.about-portrait::before {
  content: "";
  position: absolute;
  inset: 36px;
  border: 1px solid rgba(16,34,56,.12);
  border-radius: 50%;
}

.about-portrait img {
  width: 100%;
  position: relative;
  z-index: 1;
  filter: grayscale(1) contrast(1.04);
}

.about-portrait figcaption {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 15px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  border-radius: 8px;
  background: rgba(9,31,51,.9);
}

.about-portrait figcaption strong { font-size: 15px; }
.about-portrait figcaption span { color: #b7c8d7; font-size: 10px; }
.about-copy > span,
.contact-page > span { color: var(--blue); font-size: 10px; font-weight: 750; }
.about-copy h1 { font-size: 58px; font-weight: 740; }
.about-copy .about-lead { font-size: 19px; font-weight: 550; }

.about-quote {
  padding: 22px 24px;
  border-color: var(--blue);
  border-radius: 0 8px 8px 0;
  background: #eaf1f6;
  font-size: 18px;
  font-weight: 650;
}

.about-copy > a {
  border-radius: 8px;
  background: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.contact-page { margin: 75px auto 120px; }
.contact-page h1 { font-size: clamp(48px, 6.5vw, 72px); font-weight: 740; }
.social-cards { gap: 12px; }

.social-cards a {
  min-height: 180px;
  padding: 24px;
  border-radius: 12px;
}

.social-cards a:hover { transform: translateY(-3px); border-color: var(--blue); }
.social-cards b { font-size: 22px; }
.social-cards i { width: 34px; height: 34px; border-radius: 7px; background: var(--deep-blue); }

.story-grid { gap: 12px; }
.story-grid article { min-height: 280px; padding: 25px; border-radius: 12px; }
.story-grid article > span { color: var(--blue); font-size: 45px; }

.not-found-code { color: rgba(16,34,56,.05); font-weight: 760; }
.not-found-page > span { color: var(--blue); }
.not-found-page h1 { font-weight: 740; }
.not-found-page h1 em { color: var(--blue); }
.not-found-page .secondary-button { color: var(--ink); border-color: var(--line); background: #fff; }

@media (max-width: 900px) {
  .site-header {
    height: auto;
    min-height: 76px;
    padding: 6px 24px 0;
    flex-wrap: wrap;
  }

  .public-nav {
    width: 100%;
    order: 3;
    display: flex;
    gap: 22px;
    padding: 0 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .public-nav::-webkit-scrollbar { display: none; }
  .public-nav a { white-space: nowrap; }

  .hero {
    grid-template-columns: 1fr;
    padding: 52px;
    gap: 48px;
  }

  .hero::before { display: none; }
  .hero h1 { max-width: 720px; font-size: clamp(64px, 10vw, 82px); }
  .hero-portrait { width: 100%; min-height: 520px; }
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-strip { grid-template-columns: 1fr; padding: 45px; gap: 24px; }
  .resource-strip a { justify-self: start; }
  .about-page { grid-template-columns: 320px 1fr; gap: 45px; }
  .about-portrait { min-height: 450px; }
}

@media (max-width: 620px) {
  .site-header { padding-inline: 16px; }
  .brand { width: 118px; height: 59px; }
  .brand img { width: 116px; }
  .header-cta { padding: 9px 10px; font-size: 10px; }
  .public-nav { gap: 18px; font-size: 11px; }

  .hero,
  .level-section,
  .camp-section,
  .resource-strip,
  .about-teaser,
  .library-section,
  .stories-section,
  .page-hero { width: min(100% - 28px, 1180px); }

  .hero { min-height: 0; margin-top: 14px; padding: 38px 22px 20px; gap: 36px; border-radius: 16px; }
  .hero h1 { margin-bottom: 30px; font-size: clamp(48px, 15vw, 58px); line-height: .91; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-portrait { min-height: 405px; border-radius: 12px; }
  .hero-portrait > img { width: min(345px, 98%); }
  .chemical-particles { opacity: .82; }
  .atom-one { left: 5%; top: 8%; transform: scale(.82); }
  .atom-two { right: 3%; bottom: 15%; transform: scale(.78); }
  .molecule-co2 { left: 7%; top: 29%; }
  .molecule-h2o { right: 5%; top: 46%; }
  .molecule-o2 { display: none; }
  .portrait-caption { left: 12px; bottom: 12px; min-width: 165px; padding: 11px 12px; }

  .level-section { padding: 80px 0 75px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 18px; }
  .section-heading h2 { font-size: 37px; }
  .level-grid { grid-template-columns: 1fr; }
  .level-card { min-height: 180px; }
  .camp-section { padding-bottom: 80px; }
  .home-camp-grid,
  .content-grid { grid-template-columns: 1fr; }

  .resource-strip { padding: 35px 24px; border-radius: 12px; }
  .resource-strip h2 { font-size: 32px; }

  .about-teaser { margin-bottom: 75px; padding: 24px; grid-template-columns: 66px 1fr; }
  .teacher-badge { width: 66px; height: 66px; }
  .about-teaser h2 { font-size: 22px; }
  .about-teaser > a { grid-column: 2; justify-self: start; }

  .site-footer { padding-top: 45px; grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { gap: 12px; }

  .page-hero { min-height: 330px; margin-top: 14px; padding: 43px 26px; border-radius: 13px; }
  .stories-page-hero { min-height: 220px; padding-block: 34px; }
  .stories-page-hero + .stories-section { padding-top: 24px; }
  .academic-icon { opacity: .12; }
  .academic-icon-cap { width: 72px; right: 4%; top: 7%; }
  .academic-icon-school { width: 104px; right: 5%; bottom: 5%; }
  .academic-icon-pencil { display: none; }
  .academic-icon-diploma { display: none; }
  .academic-icon-book { width: 55px; left: 57%; bottom: 7%; }
  .page-hero h1 { font-size: 43px; }
  .page-hero p { font-size: 14px; }
  .library-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 100%; }
  /* Telefonda sınıf filtreleri alt satıra geçer; yana kaydırınca ortaya çıkan gizli düğme kalmaz. */
  .filter-row { flex-wrap: wrap; }
  .filter-row button { white-space: nowrap; }

  .about-page { width: min(100% - 28px, 1040px); margin-top: 35px; grid-template-columns: 1fr; }
  .about-portrait { min-height: 410px; }
  .about-copy h1 { font-size: 48px; }
  .social-cards,
  .story-grid { grid-template-columns: 1fr; }
  .contact-page { width: min(100% - 28px, 1000px); margin-top: 55px; }
  .not-found-actions { width: 100%; flex-direction: column; }
}

/* Video kamp alanı: one clear feature, compact supporting cards. */
.home-band-blush .camp-section {
  padding-top: 88px;
  padding-bottom: 96px;
}

.home-band-blush .section-heading {
  align-items: end;
  margin-bottom: 28px;
}

.home-band-blush .section-heading h2 {
  max-width: 620px;
  margin-top: 10px;
  font-size: clamp(36px, 4.2vw, 54px);
  letter-spacing: -.055em;
}

.home-band-blush .section-kicker {
  color: #47698a;
  font-size: 10px;
  letter-spacing: .12em;
}

.home-band-blush .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--deep-blue);
  border-bottom: 1px solid #b9c9d5;
  transition: border-color .18s ease, color .18s ease;
}

.home-band-blush .text-link:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.home-camp-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .9fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-camp-grid > .home-camp-card {
  border-radius: 14px;
}

.home-camp-card--featured {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 0;
  background: var(--deep-blue);
  border-color: var(--deep-blue);
}

.home-camp-grid > .home-camp-card--featured > .home-camp-cover {
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  border-radius: 8px;
}

.home-camp-card--featured .home-camp-body {
  padding: 20px 20px 22px;
}

.home-camp-card--featured .home-camp-body h3 {
  max-width: 600px;
  margin-top: 8px;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.08;
}

.home-camp-card--featured .home-camp-body b {
  min-height: 40px;
  margin-top: 18px;
  border-radius: 7px;
  background: #fff;
}

.home-camp-card--standard {
  grid-column: 2;
  grid-row: auto;
  min-height: 0;
  padding: 8px;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 17px;
  background: #fff;
  border-color: #d7e0e7;
}

.home-camp-grid > .home-camp-card--standard > .home-camp-cover {
  min-height: 0;
  height: 100%;
  border-radius: 8px;
}

.home-camp-card--standard .home-camp-body {
  padding: 12px 12px 10px 0;
}

.home-camp-card--standard .home-camp-body h3 {
  margin-top: 7px;
  font-size: 18px;
  line-height: 1.18;
}

.home-camp-card--standard .home-camp-body b {
  margin-top: auto;
  color: #607182;
  font-size: 11px;
}

@media (max-width: 900px) {
  .home-camp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .home-camp-card--featured {
    grid-column: 1 / -1;
    grid-row: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(230px, .85fr);
    padding-bottom: 10px;
  }

  .home-camp-card--standard {
    grid-column: auto;
    display: block;
  }

  .home-camp-grid > .home-camp-card--standard > .home-camp-cover {
    aspect-ratio: 16 / 9;
  }

  .home-camp-card--standard .home-camp-body { padding: 15px 9px 8px; }
}

@media (max-width: 620px) {
  .home-band-blush .camp-section { padding-top: 64px; padding-bottom: 72px; }
  .home-band-blush .section-heading { display: block; }
  .home-band-blush .text-link { margin-top: 18px; }

  .home-camp-grid { grid-template-columns: 1fr; }

  .home-camp-card--featured {
    grid-column: auto;
    display: block;
    padding-bottom: 0;
  }

  .home-camp-card--standard {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }

  .home-camp-grid > .home-camp-card--standard > .home-camp-cover {
    height: 100%;
    aspect-ratio: auto;
    min-height: 118px;
  }

  .home-camp-card--standard .home-camp-body { padding: 7px 7px 6px 0; }
  .home-camp-card--standard .home-camp-body h3 { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .molecule-label,
  .atom-model,
  .particle-specks { animation: none; }
}

/* Hero quick access refinement */
.hero-stage {
  width: min(1180px, calc(100% - 48px));
  margin: 14px auto 0;
  padding-bottom: 0;
  position: relative;
}

.hero-stage .hero {
  width: 100%;
  margin-top: 0;
  padding-bottom: 36px;
}

.hero-stage .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    radial-gradient(circle, #a9dcf4 1.2px, transparent 1.6px),
    linear-gradient(28deg, transparent 49.5%, rgba(169, 220, 244, .22) 50%, transparent 50.5%);
  background-size: 86px 86px, 172px 172px;
  background-position: 18px 12px, 42px 20px;
  -webkit-mask-image: linear-gradient(90deg, #000 0 52%, transparent 78%);
  mask-image: linear-gradient(90deg, #000 0 52%, transparent 78%);
  pointer-events: none;
}

.hero-stage .hero > * { z-index: 2; }
.hero-stage .hero-copy > p { max-width: 530px; text-wrap: pretty; }

.hero-stage .hero .secondary-button {
  padding-inline: 21px;
  color: #e7f4fb;
  border: 1px solid rgba(179, 224, 247, .55);
  background: rgba(255, 255, 255, .025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.hero-stage .hero .secondary-button:hover {
  color: #fff;
  border-color: #a9ddf5;
  background: rgba(125, 204, 243, .11);
  box-shadow: 0 0 0 3px rgba(107, 190, 234, .08), 0 9px 24px rgba(2, 18, 31, .18);
  transform: translateY(-2px);
}

.hero-quick-links {
  width: 100%;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
}

.hero-quick-card {
  min-width: 0;
  position: relative;
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 2px solid rgb(160 216 243 / 22%);
}

.hero-quick-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #82d3f6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.hero-quick-card:hover::before,
.hero-quick-card:focus-visible::before { transform: scaleX(1); }

.hero-quick-card:focus-visible {
  outline: 2px solid #82d3f6;
  outline-offset: 6px;
  border-radius: 2px;
}

.hero-quick-card strong { color: #f3faff; font-size: 16px; letter-spacing: -.02em; }
.hero-quick-card small { color: #9fbed1; font-size: 13px; line-height: 1.4; }

@media (min-width: 981px) {
  .hero-stage { padding-bottom: 0; }

  .hero-stage .hero { padding-bottom: 36px; }

  .hero-stage .hero-copy { padding: 12px 0; }
}

@media (max-width: 980px) {
  .hero-stage { padding-bottom: 0; }
  .hero-stage .hero { padding-bottom: 48px; }
}

@media (max-width: 720px) {
  .hero-stage { width: min(100% - 28px, 1180px); margin-top: 8px; padding-bottom: 0; }
  .hero-stage .hero { padding-bottom: 20px; }
  .hero-stage .hero::after { -webkit-mask-image: linear-gradient(180deg, #000 0 48%, transparent 72%); mask-image: linear-gradient(180deg, #000 0 48%, transparent 72%); }
  .hero-stage .hero-actions { gap: 10px; }
  .hero-stage .hero .secondary-button { border-color: rgba(179, 224, 247, .48); }
}

@media (max-width: 560px) {
  .hero-quick-links { margin-top: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-quick-card::before { transition: none; }
}

/* Keep the homepage video hierarchy consistent with the intended editorial layout. */
@media (min-width: 901px) {
  .home-camp-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .9fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .home-camp-card--featured {
    grid-column: 1;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    padding: 10px 10px 0;
  }

  .home-camp-grid > .home-camp-card--featured > .home-camp-cover {
    aspect-ratio: 16 / 9;
    height: auto;
    flex: 0 0 auto;
  }

  .home-camp-card--featured .home-camp-body { padding: 20px 20px 22px; }
  .home-camp-card--featured .home-camp-body h3 { font-size: clamp(24px, 2.7vw, 34px); line-height: 1.08; }
  .home-camp-card--featured .home-camp-body b { min-height: 40px; margin-top: 18px; }

  .home-camp-card--standard {
    grid-column: 2;
    grid-row: auto;
    min-height: 0;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 17px;
    background: #fff;
  }

  .home-camp-grid > .home-camp-card--standard > .home-camp-cover {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

  .home-camp-card--standard .home-camp-body { padding: 12px 12px 10px 0; }
  .home-camp-card--standard .home-camp-body h3 { margin-top: 7px; font-size: 18px; line-height: 1.18; }
  .home-camp-card--standard .home-camp-body b { margin-top: auto; }
}

/* Kimya Adası game entry and future embed surface */

.game-page-hero {
  width: min(1180px, calc(100% - 48px));
  margin: 32px auto 0;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 58px;
  color: #fff;
  border-radius: 20px;
  background: #0b2037;
}

.game-page-kicker { display: flex; align-items: center; gap: 9px; color: #8bcdb3; font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.game-page-kicker i, .game-frame-toolbar i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #52c991; box-shadow: 0 0 0 5px rgba(82,201,145,.12); }
.game-page-copy h1 { margin: 18px 0 22px; font-size: clamp(47px, 5.4vw, 68px); line-height: .98; letter-spacing: -.05em; font-weight: 740; }
.game-page-copy h1 em { color: #83d2b3; font-style: normal; }
.game-page-copy > p { max-width: 610px; margin: 0; color: #c4d0db; font-size: 16px; line-height: 1.7; }
.game-page-actions { margin-top: 30px; display: flex; gap: 10px; }
.game-page-actions .secondary-button { color: #fff; border-color: rgba(255,255,255,.22); }

.game-embed-frame { min-width: 0; padding: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: #071827; box-shadow: 0 26px 60px rgba(0,0,0,.23); }
.game-frame-toolbar { min-height: 44px; padding: 0 8px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #cbd7e1; font-size: 10px; font-weight: 700; }
.game-frame-toolbar > span { display: flex; align-items: center; gap: 10px; }
.game-frame-toolbar small { color: #8294a5; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.game-frame-stage { min-height: 390px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 8px; background: radial-gradient(circle at 50% 43%, #1a584e 0, #123d3a 30%, #0c2931 68%, #091f2e 100%); }
.game-stage-orbit { width: 260px; height: 260px; position: absolute; border: 1px solid rgba(152,218,192,.22); border-radius: 50%; }
.game-stage-orbit-one { transform: rotate(42deg) scaleY(.4); }
.game-stage-orbit-two { transform: rotate(-42deg) scaleY(.4); }
.game-stage-mark { width: 104px; height: 104px; display: grid; place-items: center; position: relative; z-index: 2; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: #e8f8f2; background: rgba(22,79,71,.82); font-size: 28px; font-weight: 740; letter-spacing: -.05em; box-shadow: 0 0 60px rgba(90,206,163,.14); }
.game-stage-formula { position: absolute; color: rgba(184,226,211,.56); font-size: 13px; font-weight: 700; }
.formula-h2o { left: 14%; top: 21%; transform: rotate(-8deg); }
.formula-co2 { right: 13%; top: 36%; transform: rotate(8deg); }
.game-stage-message { left: 24px; right: 24px; bottom: 22px; padding: 14px 16px; display: grid; gap: 4px; position: absolute; z-index: 3; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; background: rgba(5,24,31,.78); backdrop-filter: blur(8px); }
.game-stage-message strong { font-size: 12px; }
.game-stage-message span { color: #9eb7b3; font-size: 10px; line-height: 1.4; }

.game-roadmap { width: min(1180px, calc(100% - 48px)); margin: 14px auto 100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.game-roadmap article { min-height: 150px; padding: 25px; display: flex; gap: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.game-roadmap article > span { color: #24855f; font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.game-roadmap article div { display: grid; align-content: start; gap: 8px; }
.game-roadmap strong { font-size: 15px; }
.game-roadmap p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 900px) {
  .game-page-hero { grid-template-columns: 1fr; padding: 54px; }
  .game-frame-stage { min-height: 430px; }
  .game-roadmap { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .game-page-hero, .game-roadmap { width: min(100% - 28px, 1180px); }
  .game-page-hero { margin-top: 14px; padding: 42px 24px 24px; gap: 38px; border-radius: 14px; }
  .game-page-copy h1 { font-size: 43px; }
  .game-page-copy > p { font-size: 14px; }
  .game-page-actions { flex-direction: column; }
  .game-frame-toolbar small { display: none; }
  .game-frame-stage { min-height: 360px; }
  .game-stage-orbit { width: 220px; height: 220px; }
  .game-stage-message { left: 12px; right: 12px; bottom: 12px; }
  .game-roadmap { margin-bottom: 75px; }
}

/* Local administration panel */

.admin-shell { min-height: 100vh; background: #f5f5f2; display: grid; grid-template-columns: 245px 1fr; }
.admin-sidebar { min-height: 100vh; background: var(--ink); color: #fff; padding: 25px 17px 20px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.admin-brand { display: block; background: #fff; border-radius: 14px; width: 170px; height: 72px; overflow: hidden; margin: 0 auto 30px; }
.admin-brand img { width: 165px; }
.admin-nav { display: flex; flex-direction: column; gap: 5px; }
.admin-nav button { border: 0; background: transparent; color: #bfc6d8; border-radius: 10px; padding: 11px 12px; text-align: left; display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 750; cursor: pointer; }
.admin-nav button > span { width: 22px; color: #7f8aa4; font-size: 16px; text-align: center; }
.admin-nav button.active, .admin-nav button:hover { background: #ffffff10; color: #fff; }
.admin-nav button.active > span { color: #ff4eaa; }
.admin-sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; border-top: 1px solid #ffffff16; padding-top: 15px; gap: 5px; }
.admin-sidebar-bottom a, .admin-sidebar-bottom button { border: 0; background: transparent; color: #aab2c6; font-size: 11px; text-align: left; padding: 8px 12px; cursor: pointer; }
.admin-primary { border: 0; border-radius: 10px; background: var(--pink); color: #fff; padding: 12px 16px; font-size: 11px; font-weight: 850; cursor: pointer; box-shadow: 0 8px 20px #ef138625; }
.admin-primary:disabled { opacity: .55; cursor: wait; }
.recent-row > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.status { text-align: center; border-radius: 999px; padding: 5px; font-size: 8px; font-weight: 850; }
.status.live { color: #27753a; background: #e9f7ec; }
.status.draft { color: #7b6b21; background: #fff7cd; }

@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 200px 1fr; }
}

@media (max-width: 700px) {
  .admin-shell { display: block; }
  .admin-sidebar { min-height: auto; height: auto; position: relative; padding: 12px; flex-direction: row; align-items: center; overflow-x: auto; }
  .admin-brand { width: 105px; height: 50px; margin: 0 12px 0 0; flex: 0 0 auto; }
  .admin-brand img { width: 102px; }
  .admin-nav { flex-direction: row; }
  .admin-nav button { white-space: nowrap; }
  .admin-sidebar-bottom { display: none; }
}

/* Homepage success-story showcase */
.home-success {
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 0;
  padding: 54px 0 38px;
  color: #fff;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% -18%, rgba(70, 154, 219, .34), transparent 36%),
    linear-gradient(135deg, #0b2037 0%, #102b47 58%, #143552 100%);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 32, 55, .12);
}

.home-success-heading {
  padding: 0 52px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: end;
  gap: 60px;
}

.home-success h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(36px, 4.25vw, 54px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 730;
}

.home-success h2 em { color: #8bc8f3; font-style: normal; }

.home-success-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.home-success-actions a {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.home-success-actions a:hover { color: #8bc8f3; }

.home-success-actions button {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9fb2c3;
  border: 0;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.home-success-actions button:hover { color: #fff; }
.home-success-actions button i { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; font-size: 7px; font-style: normal; }

.home-success-viewport {
  padding: 0 0 10px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.home-success-track {
  width: max-content;
  display: flex;
  animation: success-stories-right 38s linear infinite;
  will-change: transform;
}

.home-success-track.is-paused { animation-play-state: paused; }

.home-success-group {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

.success-story-card {
  width: 420px;
  min-height: 276px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.success-story-card:first-child { margin-left: 14px; }

.success-story-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.success-story-person > img,
.success-story-initials {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 12px;
  object-fit: cover;
  background: #edf5fb;
}

.success-story-initials {
  display: grid;
  place-items: center;
  color: #164b75;
  font-size: 14px;
  font-weight: 800;
}

.success-story-person > div { min-width: 0; display: grid; gap: 4px; }
.success-story-person strong { font-size: 14px; font-weight: 700; }
.success-story-person small { color: #aebfce; font-size: 10px; line-height: 1.4; }

.success-story-result {
  width: fit-content;
  max-width: 100%;
  margin-top: 16px;
  padding: 6px 8px;
  color: #c8ead4;
  border: 1px solid rgba(104,213,143,.22);
  border-radius: 6px;
  background: rgba(104,213,143,.1);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .03em;
}

.success-story-card blockquote {
  margin: 17px 0 0;
  color: #e5edf4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
}

.success-story-mark {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: .2;
  filter: brightness(1.12) saturate(.7);
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

.home-success-empty {
  margin: 0 52px 10px;
  min-height: 154px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
  text-align: left;
}

.home-success-empty > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #0b2037;
  background: #8bc8f3;
}

.home-success-empty strong { display: block; font-size: 15px; }
.home-success-empty p { margin: 5px 0 0; color: #aebfce; font-size: 12px; }

@keyframes success-stories-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Rich success-story cards */
.story-card-person { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.story-card-person > img,
.story-card-person > span { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 12px; object-fit: cover; }
.story-card-person > span { display: grid; place-items: center; color: #174d78; background: #e5f2fb; font-size: 14px; font-weight: 800; }
.story-card-person > div { display: grid; gap: 4px; min-width: 0; }
.story-card-person strong { font-size: 13px; }
.story-card-person small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.story-grid article > .story-quote-mark { color: var(--blue); font-size: 45px; font-family: Georgia, serif; line-height: .6; }
.story-grid .story-result { width: fit-content; margin-top: 12px; padding: 6px 8px; color: #17643a; border-radius: 6px; background: #eaf6ee; font-size: 9px; font-weight: 750; }

/* Success-story administration */

@media (max-width: 900px) {
  .home-success { padding-top: 46px; }
  .home-success-heading { padding: 0 38px 34px; grid-template-columns: 1fr; gap: 28px; }
  .success-story-card { width: 380px; }
}

@media (max-width: 620px) {
  .home-success { width: min(100% - 28px, 1180px); margin-top: 14px; padding: 38px 0 26px; border-radius: 14px; }
  .home-success-heading { padding: 0 24px 30px; gap: 24px; }
  .home-success h2 { font-size: 36px; }
  .home-success-viewport { -webkit-mask-image: none; mask-image: none; }
  .success-story-card { width: min(320px, calc(100vw - 58px)); min-height: 290px; padding: 19px; }
  .success-story-card blockquote { font-size: 16px; }
  .home-success-empty { margin: 0 24px 6px; padding: 22px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .home-success-track { animation: none; transform: none; }
  .home-success-group[aria-hidden="true"] { display: none; }
  .home-success-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* Telefonda kartlar kendiliğinden kayıp okunmaz hâle gelmez: öğrenci parmağıyla kaydırır, her kart yerine oturur. */
@media (max-width: 620px) {
  .home-success-track { animation: none; transform: none; }
  .home-success-group[aria-hidden="true"] { display: none; }
  .home-success-viewport { margin-inline: -14px; padding-inline: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 14px; scrollbar-width: none; }
  .home-success-viewport::-webkit-scrollbar { display: none; }
  .success-story-card { scroll-snap-align: start; }
  .home-success-actions a { min-height: 44px; font-size: 13px; }
  .home-success-actions button { display: none; }
}

/* Expanded administration tools */
.story-form-actions > button:not(.admin-primary) { border: 1px solid #dedfe3; border-radius: 9px; padding: 10px 13px; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }

@media (max-width: 1100px) {
  .content-table-row > button:nth-last-child(2) { display: none; }
}

@media (max-width: 700px) {
  .content-table-row > :nth-child(n+6) { display: none; }
}

/* Restrained chemistry atmosphere */
:root {
  --chem-line: rgba(23, 105, 176, .12);
  --chem-line-light: rgba(139, 198, 237, .2);
  --chem-note: rgba(16, 34, 56, .1);
}

.public-main {
  position: relative;
  overflow: clip;
}

/* Keep the portrait chemistry graphic editorial rather than luminous. */
.molecule-label,
.atom-model,
.particle-specks {
  animation: none;
}

.molecule-label {
  color: rgba(183, 216, 239, .46);
  text-shadow: none;
}

.atom-model { opacity: .3; }

.atom-model b {
  background: #9bc8e8;
  box-shadow: none;
}

.particle-specks { opacity: .45; }

/* A single, repeatable bond field keeps the chemistry language consistent. */
.level-section,
.library-section,
.about-page,
.contact-page {
  position: relative;
  isolation: isolate;
}

.level-section::before,
.library-section::before,
.about-page::before,
.contact-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 310px;
  height: 210px;
  pointer-events: none;
  opacity: .72;
  background:
    radial-gradient(circle at 12px 12px, rgba(23, 105, 176, .18) 0 2px, transparent 2.5px) 0 0 / 72px 54px,
    radial-gradient(circle at 48px 39px, rgba(23, 105, 176, .13) 0 2px, transparent 2.5px) 0 0 / 72px 54px,
    linear-gradient(29deg, transparent 49.15%, var(--chem-line) 49.5%, var(--chem-line) 50.5%, transparent 50.85%) 0 0 / 72px 54px,
    linear-gradient(151deg, transparent 49.15%, var(--chem-line) 49.5%, var(--chem-line) 50.5%, transparent 50.85%) 0 0 / 72px 54px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 12%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 12%, transparent 72%);
}

.level-section::before {
  top: 16px;
  right: -108px;
  transform: rotate(-4deg);
}

.library-section::before {
  top: -58px;
  right: -112px;
  transform: rotate(5deg);
}

.about-page::before {
  right: -150px;
  bottom: -32px;
  transform: rotate(-7deg);
}

.contact-page::before {
  top: -42px;
  right: -118px;
  transform: rotate(7deg);
}

.level-card::after {
  display: block;
  width: 118px;
  height: 76px;
  right: -18px;
  bottom: 7px;
  border-radius: 0;
  opacity: .62;
  background:
    radial-gradient(circle at 12px 12px, rgba(23, 105, 176, .18) 0 2px, transparent 2.5px) 0 0 / 54px 40px,
    radial-gradient(circle at 39px 29px, rgba(23, 105, 176, .13) 0 2px, transparent 2.5px) 0 0 / 54px 40px,
    linear-gradient(29deg, transparent 49%, var(--chem-line) 49.5%, var(--chem-line) 50.5%, transparent 51%) 0 0 / 54px 40px,
    linear-gradient(151deg, transparent 49%, var(--chem-line) 49.5%, var(--chem-line) 50.5%, transparent 51%) 0 0 / 54px 40px;
}

/* Formula notes are placed like quiet textbook marginalia. */
.page-hero { --page-formula: "n = m / M"; }
.video-page-hero { --page-formula: "2H₂ + O₂  →  2H₂O"; }
.notes-page-hero { --page-formula: "n = m / M"; }
.questions-page-hero { --page-formula: "pH = −log[H⁺]"; }
.stories-page-hero { --page-formula: "C₆H₁₂O₆"; }
.books-page-hero { --page-formula: "PV = nRT"; }

.page-hero::before {
  content: var(--page-formula);
  display: block;
  width: auto;
  height: auto;
  inset: 50px 58px auto auto;
  z-index: 0;
  color: rgba(177, 215, 241, .18);
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .08em;
  white-space: nowrap;
}

.page-hero::after {
  content: "";
  display: block;
  width: 330px;
  height: 138px;
  right: -52px;
  bottom: -48px;
  z-index: 0;
  border: 1px solid var(--chem-line-light);
  border-radius: 50%;
  background:
    radial-gradient(circle at 18% 51%, rgba(155, 204, 236, .34) 0 3px, transparent 3.5px),
    radial-gradient(circle at 78% 24%, rgba(155, 204, 236, .24) 0 3px, transparent 3.5px),
    radial-gradient(circle at 54% 70%, rgba(155, 204, 236, .28) 0 2px, transparent 2.5px);
  transform: rotate(-13deg);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.resource-strip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.resource-strip::before {
  content: "n = m / M";
  position: absolute;
  right: 205px;
  bottom: -12px;
  z-index: -1;
  color: rgba(176, 211, 236, .07);
  font-size: 62px;
  font-weight: 700;
  letter-spacing: -.04em;
  white-space: nowrap;
  pointer-events: none;
}

.about-portrait::after {
  content: "C₆H₁₂O₆";
  position: absolute;
  top: 26px;
  right: 22px;
  z-index: 0;
  color: var(--chem-note);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.site-footer {
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 198, 237, .28) 22%, rgba(139, 198, 237, .28) 78%, transparent);
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .level-section::before,
  .library-section::before,
  .about-page::before,
  .contact-page::before { opacity: .42; }

  .page-hero::after {
    right: -120px;
    opacity: .7;
  }
}

@media (max-width: 620px) {
  .chemical-particles,
  .level-section::before,
  .library-section::before,
  .about-page::before,
  .contact-page::before,
  .level-card::after,
  .page-hero::before,
  .page-hero::after,
  .resource-strip::before,
  .about-portrait::after {
    display: none;
  }
}

/* Homepage editorial section rhythm */
.home-band {
  width: 100%;
}

.home-band-blush {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-band-blush .camp-section {
  padding: 96px 0 104px;
}

.home-band-blush .section-heading {
  border-color: var(--line);
}

.home-band-blush .home-camp-grid > a {
  border-color: var(--line);
}

.home-success {
  width: 100%;
  margin: 54px 0 0;
  padding: 92px max(24px, calc((100% - 1180px) / 2));
  color: var(--ink);
  border-radius: 0;
  background: #eaf3f9;
  box-shadow: none;
}

.home-success-heading {
  padding: 0 0 36px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.home-success-controls {
  display: flex;
  justify-content: flex-end;
}

.home-success h2 em {
  color: var(--blue);
}

.home-success-actions a {
  color: var(--deep-blue);
}

.home-success-actions a:hover {
  color: var(--blue);
}

.home-success-actions button {
  color: #4b6377;
}

.home-success-actions button:hover {
  color: var(--deep-blue);
}

.home-success-actions button i {
  border-color: rgba(16, 34, 56, .22);
}

.success-story-card {
  border-color: #cfdee8;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: none;
}

.success-story-card:first-child {
  margin-left: 0;
}

.success-story-person strong {
  color: var(--ink);
}

.success-story-person small {
  color: #566879;
}

.success-story-result {
  color: #17643a;
  border-color: #c5e1cf;
  background: #edf7f0;
}

.success-story-card blockquote {
  color: #30485c;
  /* Uzun mesaj kartı ve bütün şeridi uzatmasın: ana sayfada ilk 6 satır görünür, tamamı /basari-hikayeleri sayfasında. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

.success-story-card > :not(.success-story-mark) {
  position: relative;
  z-index: 1;
}

.home-success-empty {
  margin: 0;
  color: var(--ink);
  border-color: #bfd2df;
  background: rgba(255, 255, 255, .6);
}

.home-success-empty > span {
  color: #fff;
  background: var(--blue);
}

.home-success-empty p {
  color: #627789;
}

.level-section {
  padding: 104px 0 112px;
}

.level-section::before,
.level-card::after {
  display: none;
}

.resource-strip {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  border-radius: 0;
  background: var(--deep-blue);
}

.resource-strip::before {
  display: none;
}

.resource-strip-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 190px;
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
}

.resource-strip h2 {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3.8vw, 46px);
}

.resource-strip a {
  justify-self: end;
  color: var(--deep-blue);
  background: #fff;
}

.resource-strip a:hover {
  color: var(--deep-blue);
  background: #eaf1f6;
}

.about-teaser {
  margin: 0 auto;
  padding: 74px 0 88px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 900px) {
  .home-success {
    padding-block: 76px;
  }

  .home-success-heading {
    padding: 0 0 36px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-success-controls {
    justify-content: flex-start;
  }

  .resource-strip-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .resource-strip a {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .home-success {
    width: 100%;
    margin-top: 28px;
    padding: 60px 14px;
    border-radius: 0;
  }

  .home-success-heading {
    padding: 0 0 30px;
  }

  .home-success h2 {
    font-size: 36px;
  }

  .home-success-empty {
    padding: 22px;
  }

  .level-section {
    padding: 72px 0 76px;
  }

  .home-band-blush .camp-section {
    padding: 70px 0 76px;
  }

  .resource-strip-inner {
    width: min(100% - 28px, 1180px);
    min-height: 0;
    padding: 46px 0;
  }

  .resource-strip h2 {
    font-size: 34px;
  }

  .about-teaser {
    padding: 56px 0 68px;
  }
}

/* Editorial content card system */
.content-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
}

.audience-9 { color: #155d95; border-color: #c9dfef; background: #eaf3fa; }
.audience-10 { color: #9b2b59; border-color: #efcedb; background: #faedf2; }
.audience-11 { color: #236a43; border-color: #cae2d3; background: #edf6f0; }
.audience-12 { color: #624a96; border-color: #dcd3ed; background: #f2eff8; }
.audience-tyt { color: #8b5c0b; border-color: #efdbad; background: #fff5df; }
.audience-ayt { color: #244a70; border-color: #ccd9e6; background: #eaf0f6; }
.exam-pill { color: #6f5630; border-color: #e8dcc5; background: #f7f2e8; }

.content-card {
  border-color: #d9dfe5;
  border-radius: 10px;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.content-card:hover {
  transform: translateY(-3px);
  border-color: #bfcbd5;
  box-shadow: 0 8px 20px rgba(16, 34, 56, .055);
}

.content-cover img {
  transition: transform .28s ease;
}

.content-card:hover .content-cover img {
  transform: scale(1.015);
}

.content-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.cover-play {
  left: auto;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 6px;
  background: rgba(8, 29, 48, .9);
  transition: transform .18s ease, background-color .18s ease;
}

.content-card:hover .cover-play {
  transform: translateX(2px);
  background: rgba(8, 29, 48, .98);
}

.content-action span {
  transition: transform .18s ease;
}

.content-action:hover span {
  transform: translate(2px, -1px);
}

/* A lead story uses image scale and contrast to signal priority. */
.content-card--featured {
  grid-column: span 2;
  min-height: 320px;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(235px, .65fr);
  color: #fff;
  border-color: var(--deep-blue);
  background: var(--deep-blue);
}

.content-card--featured:hover {
  border-color: #214766;
  background: #102a43;
}

.content-card--featured .content-cover {
  height: 100%;
  min-height: 304px;
  aspect-ratio: auto;
  border-radius: 7px;
}

.content-card--featured .content-body {
  min-width: 0;
  padding: 26px 24px 18px;
  display: flex;
  flex-direction: column;
}

.content-card--featured .content-type { color: #93c7ed; }

.content-card--featured .content-body h2 {
  min-height: 0;
  margin: 12px 0 10px;
  color: #fff;
  font-size: clamp(24px, 2.5vw, 31px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.content-card--featured .content-body p {
  min-height: 0;
  margin: 0;
  color: #b9c8d5;
  line-height: 1.55;
}

.content-card--featured .content-action {
  margin-top: auto;
  color: var(--deep-blue);
  border-color: #fff;
  background: #fff;
}

.content-card--featured .content-action:hover {
  color: var(--deep-blue);
  border-color: #d8e8f3;
  background: #d8e8f3;
}

/* Regular archive entries stay quiet and consistently scannable. */
.content-card--standard {
  padding: 8px 8px 10px;
  background: #fff;
}

.content-card--standard .content-cover { border-radius: 6px; }
.content-card--standard .content-body { padding: 16px 9px 7px; }

.content-card--standard .content-body h2 {
  min-height: 47px;
  margin: 8px 0 7px;
  font-size: 18px;
  line-height: 1.28;
}

.content-card--standard .content-body p { margin: 0; }

.content-card--standard .content-action {
  height: 44px;
  margin-top: 16px;
  border-color: transparent;
  border-top-color: #e3e7eb;
  border-radius: 0;
  padding-inline: 0;
  background: transparent;
}

.content-card--standard .content-action:hover {
  color: var(--blue);
  border-color: transparent;
  border-top-color: #cbd6df;
  background: transparent;
}

/* PDFs and written notes read like compact archive records, not video cards. */
.content-grid:has(.content-card--resource) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card--resource {
  min-height: 164px;
  padding: 10px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  border-color: #deddd8;
  background: #fbfaf7;
}

.content-card--resource:hover {
  border-color: #c8c5bc;
  background: #fffefa;
}

.content-card--resource .content-cover {
  min-height: 142px;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 6px;
  background: #e7edf1;
}

.content-card--resource .content-body {
  min-width: 0;
  padding: 4px 5px 4px 16px;
  display: flex;
  flex-direction: column;
}

.content-card--resource .content-type { color: #587083; }

.content-card--resource .content-body h2 {
  min-height: 0;
  margin: 7px 0 5px;
  font-size: 17px;
  line-height: 1.24;
}

.content-card--resource .content-body p {
  min-height: 0;
  margin: 0 0 10px;
  line-height: 1.4;
}

.content-card--resource .content-action {
  width: auto;
  height: 34px;
  margin-top: auto;
  padding: 0 10px;
  align-self: flex-start;
  gap: 22px;
  border-radius: 6px;
  background: #fff;
}

/* Featured homepage story with a compact supporting archive. */
.home-camp-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.home-camp-grid > .home-camp-card {
  overflow: hidden;
  position: relative;
  border: 1px solid #dccfd5;
  border-radius: 10px;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.home-camp-grid > .home-camp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 34, 56, .055);
}

.home-camp-card .home-camp-cover {
  position: relative;
  overflow: hidden;
  background: #dfe5ea;
}

.home-camp-card .home-camp-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .28s ease;
}

.home-camp-card:hover .home-camp-cover img { transform: scale(1.015); }

.home-camp-cover .content-pill {
  --pill-accent: #8cc8ef;
  position: absolute;
  top: 12px;
  bottom: auto;
  left: 12px;
  z-index: 1;
  width: fit-content;
  height: 30px;
  min-height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(8, 29, 48, .82);
  box-shadow: 0 6px 16px rgba(8, 29, 48, .2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-camp-cover .content-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pill-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pill-accent) 22%, transparent);
}

.home-camp-cover .audience-9 { --pill-accent: #70bff1; }
.home-camp-cover .audience-10 { --pill-accent: #f080ad; }
.home-camp-cover .audience-11 { --pill-accent: #67ca91; }
.home-camp-cover .audience-12 { --pill-accent: #ad96e7; }
.home-camp-cover .audience-tyt { --pill-accent: #f1ba4d; }
.home-camp-cover .audience-ayt { --pill-accent: #82b7e8; }

.home-camp-body small,
.home-camp-body h3,
.home-camp-body b { margin-inline: 0; }

.home-camp-body small {
  display: block;
  color: var(--blue);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-camp-body h3 {
  min-height: 0;
  margin-block: 8px 0;
  letter-spacing: -.025em;
}

.home-camp-body b {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-camp-body b span {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  color: inherit;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform .18s ease;
}

.home-camp-card:hover .home-camp-body b span { transform: translate(2px, -1px); }

.home-camp-card--featured {
  grid-column: 1 / span 7;
  grid-row: 1 / span 3;
  padding: 9px 9px 0;
  color: #fff;
  border-color: var(--deep-blue);
  background: var(--deep-blue);
}

.home-camp-card--featured:hover {
  border-color: #214766;
  background: #102a43;
}

.home-camp-grid > .home-camp-card--featured > .home-camp-cover {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
}

.home-camp-card--featured .home-camp-cover .content-pill {
  top: 16px;
  left: 16px;
  height: 34px;
  min-height: 34px;
  padding-inline: 13px;
  font-size: 10px;
}

.home-camp-card--featured .home-camp-body { padding: 21px 20px 23px; }
.home-camp-card--featured .home-camp-body small { color: #91c3e8; }

.home-camp-card--featured .home-camp-body h3 {
  color: #fff;
  font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.1;
}

.home-camp-card--featured .home-camp-body b {
  width: fit-content;
  min-width: 168px;
  min-height: 42px;
  margin-top: 22px;
  padding: 0 13px;
  color: var(--deep-blue);
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
}

.home-camp-card--standard {
  grid-column: 8 / -1;
  min-height: 164px;
  padding: 8px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 15px;
  background: rgba(255, 255, 255, .72);
}

.home-camp-card--standard:hover {
  border-color: #cbbcc3;
  background: #fff;
}

.home-camp-grid > .home-camp-card--standard > .home-camp-cover {
  height: 100%;
  min-height: 146px;
  aspect-ratio: auto;
  border-radius: 6px;
}

.home-camp-card--standard .home-camp-body {
  min-width: 0;
  padding: 10px 10px 8px 0;
  display: flex;
  flex-direction: column;
}

.home-camp-card--standard .home-camp-body h3 {
  font-size: 17px;
  line-height: 1.22;
}

.home-camp-card--standard .home-camp-body b {
  margin-top: auto;
  color: #536373;
  font-size: 10px;
}

/* Class cards use one calm, light-navy palette to match the site's dark-blue identity. */
.level-card,
.level-card.blue,
.level-card.pink,
.level-card.green,
.level-card.purple,
.level-card.orange,
.level-card.navy {
  --level-accent: #294e71;
  --level-surface: #eaf0f5;
  min-height: 210px;
  padding: 22px;
  color: var(--level-accent);
  border: 1px solid #d1dce5;
  border-top: 3px solid var(--level-accent);
  border-radius: 10px;
  background: var(--level-surface);
  box-shadow: none;
}

.level-card:hover {
  transform: translateY(-3px);
  border-color: var(--level-accent);
  box-shadow: 0 7px 18px rgba(16, 34, 56, .05);
}

.level-index {
  width: fit-content;
  padding: 5px 7px;
  color: var(--level-accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
}

.level-card h3 { margin-top: 34px; }
.level-card p { color: #596a78; }
.level-card b { color: var(--level-accent); }
.level-card b span { transition: transform .18s ease; }
.level-card:hover b span { transform: translateX(3px); }

@media (max-width: 900px) {
  .home-camp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .home-camp-card--featured {
    grid-column: 1 / -1;
    grid-row: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
    padding-bottom: 9px;
  }

  .home-camp-grid > .home-camp-card--featured > .home-camp-cover {
    height: 100%;
    aspect-ratio: auto;
  }

  .home-camp-card--standard {
    grid-column: auto;
    display: block;
  }

  .home-camp-grid > .home-camp-card--standard > .home-camp-cover {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .home-camp-card--standard .home-camp-body { padding: 16px 9px 8px; }
  .home-camp-card--standard .home-camp-body h3 { min-height: 42px; }
  .home-camp-card--standard .home-camp-body b { margin-top: 18px; }

  .content-card--featured { grid-template-columns: 1.15fr .85fr; }

  .content-grid:has(.content-card--resource) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .home-camp-grid { grid-template-columns: 1fr; }

  .home-camp-card--featured {
    grid-column: auto;
    display: block;
    padding-bottom: 0;
  }

  .home-camp-grid > .home-camp-card--featured > .home-camp-cover {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .home-camp-card--featured .home-camp-body { padding: 19px 16px 20px; }
  .home-camp-card--featured .home-camp-body h3 { font-size: 24px; }

  .home-camp-card--standard {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }

  .home-camp-grid > .home-camp-card--standard > .home-camp-cover {
    min-height: 118px;
    height: 100%;
    aspect-ratio: auto;
  }

  .home-camp-card--standard .home-camp-body {
    padding: 6px 7px 5px 0;
  }

  .home-camp-card--standard .home-camp-body h3 {
    min-height: 0;
    font-size: 15px;
  }

  .home-camp-card--standard .home-camp-body b { margin-top: auto; }

  .content-card--featured {
    grid-column: auto;
    display: block;
    min-height: 0;
  }

  .content-card--featured .content-cover {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .content-card--featured .content-body { padding: 22px 16px 16px; }
  .content-card--featured .content-body h2 { font-size: 25px; }
  .content-card--featured .content-action { margin-top: 24px; }

  .content-card--resource {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 146px;
    padding: 8px;
  }

  .content-card--resource .content-cover { min-height: 130px; }
  .content-card--resource .content-body { padding-left: 12px; }
  .content-card--resource .content-pills { gap: 4px; margin-bottom: 7px; }
  .content-card--resource .content-body h2 { font-size: 15px; }
  .content-card--resource .content-body p { display: none; }
  .content-card--resource .content-action { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .content-card,
  .content-cover img,
  .cover-play,
  .content-action span,
  .home-camp-card,
  .home-camp-cover img,
  .home-camp-body b span,
  .level-card,
  .level-card b span {
    transition: none;
  }

  .content-card:hover,
  .content-card:hover .content-cover img,
  .content-card:hover .cover-play,
  .content-action:hover span,
  .home-camp-card:hover,
  .home-camp-card:hover .home-camp-cover img,
  .home-camp-card:hover .home-camp-body b span,
  .level-card:hover,
  .level-card:hover b span {
    transform: none;
  }
}

/* Homepage campaign cards: final layout pass. */
@media (min-width: 901px) {
  .home-camp-grid { grid-template-columns: minmax(0, 1.35fr) minmax(360px, .9fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .home-camp-card--featured { grid-column: 1; grid-row: 1 / -1; display: flex; flex-direction: column; padding: 10px 10px 0; }
  .home-camp-grid > .home-camp-card--featured > .home-camp-cover { height: auto; aspect-ratio: 16 / 9; flex: 0 0 auto; }
  .home-camp-card--featured .home-camp-body { padding: 20px 20px 22px; }
  .home-camp-card--featured .home-camp-body h3 { font-size: clamp(24px, 2.7vw, 34px); line-height: 1.08; }
  .home-camp-card--featured .home-camp-body b { min-height: 40px; margin-top: 18px; }
  .home-camp-card--standard { grid-column: 2; grid-row: auto; min-height: 0; grid-template-columns: 190px minmax(0, 1fr); gap: 17px; background: #fff; }
  .home-camp-grid > .home-camp-card--standard > .home-camp-cover { height: 100%; min-height: 0; aspect-ratio: auto; }
  .home-camp-card--standard .home-camp-body { padding: 12px 12px 10px 0; }
  .home-camp-card--standard .home-camp-body h3 { margin-top: 7px; font-size: 18px; line-height: 1.18; }
  .home-camp-card--standard .home-camp-body b { margin-top: auto; }
}

@media (max-width: 900px) {
  .home-camp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .home-camp-card--featured { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(230px, .85fr); padding-bottom: 10px; }
  .home-camp-card--standard { grid-column: auto; display: block; }
  .home-camp-grid > .home-camp-card--standard > .home-camp-cover { aspect-ratio: 16 / 9; }
  .home-camp-card--standard .home-camp-body { padding: 15px 9px 8px; }
}

@media (max-width: 620px) {
  .home-camp-grid { grid-template-columns: 1fr; }
  .home-camp-card--featured { grid-column: auto; display: block; padding-bottom: 0; }
  .home-camp-card--standard { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .home-camp-grid > .home-camp-card--standard > .home-camp-cover { height: 100%; aspect-ratio: auto; min-height: 118px; }
  .home-camp-card--standard .home-camp-body { padding: 7px 7px 6px 0; }
  .home-camp-card--standard .home-camp-body h3 { font-size: 15px; }
}

/* Homepage camp gallery: calm editorial hierarchy. */
.home-band-blush {
  background: #eef3f7;
  border-color: #dce5ec;
}

.home-band-blush .camp-section {
  padding-top: 78px;
  padding-bottom: 86px;
}

.home-band-blush .section-heading {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-color: #d4dfe7;
}

.home-band-blush .section-heading h2 {
  max-width: none;
  font-size: clamp(36px, 4vw, 50px);
}

.home-band-blush .text-link {
  min-height: 44px;
  padding: 0 14px;
  justify-content: center;
  border: 1px solid #c7d4de;
  border-radius: 8px;
  background: rgba(255, 255, 255, .65);
}

.home-band-blush .text-link:hover {
  color: var(--deep-blue);
  border-color: #9cafbd;
  background: #fff;
}

.home-band-blush .home-camp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 16px;
}

.home-band-blush .home-camp-grid > .home-camp-card {
  overflow: hidden;
  border: 1px solid #d5e0e8;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 34, 56, .03);
}

.home-band-blush .home-camp-grid > .home-camp-card:hover {
  border-color: #b8c9d5;
  box-shadow: 0 14px 30px rgba(16, 34, 56, .08);
}

.home-band-blush .home-camp-grid > .home-camp-card--featured {
  grid-column: 1 / -1;
  grid-row: auto;
  min-height: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .85fr);
  gap: 0;
  color: #fff;
  border-color: var(--deep-blue);
  background: var(--deep-blue);
}

.home-band-blush .home-camp-grid > .home-camp-card--featured:hover {
  border-color: #183c5a;
  background: #102a43;
}

.home-band-blush .home-camp-grid > .home-camp-card--featured > .home-camp-cover {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
}

.home-band-blush .home-camp-card--featured .home-camp-body {
  min-width: 0;
  padding: clamp(28px, 3.2vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.home-band-blush .home-camp-card--featured .home-camp-body small {
  color: #91c3e8;
}

.home-band-blush .home-camp-card--featured .home-camp-body h3 {
  max-width: 390px;
  margin-top: 10px;
  color: #fff;
  font-size: clamp(27px, 2.4vw, 35px);
  line-height: 1.08;
}

.home-band-blush .home-camp-card--featured .home-camp-body b {
  width: auto;
  min-width: 174px;
  min-height: 42px;
  margin-top: 28px;
  padding: 0 14px;
  color: var(--deep-blue);
  border-radius: 7px;
  background: #fff;
  font-size: 11px;
}

.home-band-blush .home-camp-grid > .home-camp-card--standard {
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
  padding: 8px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-band-blush .home-camp-grid > .home-camp-card--standard > .home-camp-cover {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
}

.home-band-blush .home-camp-card--standard .home-camp-body {
  min-width: 0;
  flex: 1;
  padding: 18px 12px 7px;
  display: flex;
  flex-direction: column;
}

.home-band-blush .home-camp-card--standard .home-camp-body h3 {
  min-height: 0;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.home-band-blush .home-camp-card--standard .home-camp-body b {
  margin-top: 24px;
  color: #536779;
  font-size: 10px;
}

@media (max-width: 900px) {
  .home-band-blush .home-camp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-band-blush .home-camp-grid > .home-camp-card--featured {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  }

  .home-band-blush .home-camp-grid > .home-camp-card--standard:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
    padding-bottom: 8px;
  }

  .home-band-blush .home-camp-grid > .home-camp-card--standard:last-child > .home-camp-cover {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 620px) {
  .home-band-blush .camp-section {
    padding-top: 60px;
    padding-bottom: 66px;
  }

  .home-band-blush .section-heading {
    margin-bottom: 22px;
  }

  .home-band-blush .text-link {
    width: fit-content;
  }

  .home-band-blush .home-camp-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-band-blush .home-camp-grid > .home-camp-card--featured {
    grid-column: auto;
    display: block;
    padding-bottom: 0;
  }

  .home-band-blush .home-camp-card--featured .home-camp-body {
    padding: 24px 18px 22px;
  }

  .home-band-blush .home-camp-card--featured .home-camp-body h3 {
    font-size: 25px;
  }

  .home-band-blush .home-camp-card--featured .home-camp-body b {
    margin-top: 22px;
  }

  .home-band-blush .home-camp-grid > .home-camp-card--standard,
  .home-band-blush .home-camp-grid > .home-camp-card--standard:last-child {
    grid-column: auto;
    min-height: 124px;
    padding: 7px;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
  }

  .home-band-blush .home-camp-grid > .home-camp-card--standard > .home-camp-cover,
  .home-band-blush .home-camp-grid > .home-camp-card--standard:last-child > .home-camp-cover {
    height: 100%;
    min-height: 110px;
    aspect-ratio: auto;
  }

  .home-band-blush .home-camp-card--standard .home-camp-body {
    padding: 7px 7px 5px 0;
  }

  .home-band-blush .home-camp-card--standard .home-camp-body h3 {
    font-size: 15px;
  }

  .home-band-blush .home-camp-card--standard .home-camp-body b {
    margin-top: auto;
  }
}

/* Keep CMS overrides after the legacy admin rules. */
.admin-shell.cms-admin-shell { display: block; grid-template-columns: none; }
.admin-sidebar.cms-sidebar { position: fixed; width: 250px; min-height: 100vh; height: 100vh; padding: 25px 17px 20px; flex-direction: column; align-items: stretch; overflow-y: auto; }
.admin-workspace.cms-workspace { margin-left: 250px; width: calc(100% - 250px); max-width: none; padding: 30px clamp(20px, 4vw, 56px) 70px; }
@media (max-width: 780px) {
  .admin-sidebar.cms-sidebar { position: static; width: 100%; min-height: auto; height: auto; padding: 12px; flex-direction: row; align-items: center; overflow-x: auto; }
  .admin-workspace.cms-workspace { margin-left: 0; width: 100%; padding: 20px 14px 50px; }
}

/* Managed cover system */
.managed-cover { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; isolation: isolate; container-type: inline-size; background: #16304b; color: #fff; }
.managed-cover--hero,.managed-cover--standard,.managed-cover--video { aspect-ratio: 16 / 9; }
.managed-cover--pdf { aspect-ratio: 4 / 5; }
.managed-cover--mobile { aspect-ratio: 4 / 3; }
.managed-cover > img:first-child { width: 100%; height: 100%; display: block; object-fit: cover; }
.managed-cover-fallback { width: 100%; height: 100%; min-height: 150px; display: grid; place-items: center; font-size: 42px; font-weight: 950; letter-spacing: -.08em; }
.managed-cover-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, var(--cover-a), var(--cover-b)); pointer-events: none; }
.cover-theme-navy { --cover-a: #071e36; --cover-b: #133e65; }.cover-theme-ocean { --cover-a: #075b78; --cover-b: #0b2b55; }.cover-theme-berry { --cover-a: #8e174f; --cover-b: #2b183e; }.cover-theme-forest { --cover-a: #176044; --cover-b: #102c34; }.cover-theme-sunset { --cover-a: #b54c2a; --cover-b: #67214f; }.cover-theme-neutral { --cover-a: #344655; --cover-b: #151d25; }
.managed-cover-logo,.managed-cover-title,.managed-cover-labels { position: absolute; z-index: 2; max-width: calc(100% - 28px); }
.managed-cover-logo { width: clamp(72px, 19%, 126px) !important; height: auto !important; padding: 4px 7px; border-radius: 6px; object-fit: contain !important; background: rgba(255,255,255,.9); }
.managed-cover-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; color: #fff; font-size: clamp(14px, 3.2vw, 30px); line-height: 1.08; letter-spacing: -.025em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.managed-cover-labels { display: flex; flex-wrap: wrap; gap: 5px; }.managed-cover-labels span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; background: rgba(7,25,43,.72); font-size: 9px; font-weight: 800; backdrop-filter: blur(5px); }
.cover-pos-top-left { top: 12px; left: 12px; }.cover-pos-top-center { top: 12px; left: 50%; transform: translateX(-50%); }.cover-pos-top-right { top: 12px; right: 12px; }.cover-pos-center-left { top: 50%; left: 12px; transform: translateY(-50%); }.cover-pos-center { top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }.cover-pos-center-right { top: 50%; right: 12px; transform: translateY(-50%); text-align: right; }.cover-pos-bottom-left { bottom: 12px; left: 12px; }.cover-pos-bottom-center { bottom: 12px; left: 50%; transform: translateX(-50%); text-align: center; }.cover-pos-bottom-right { right: 12px; bottom: 12px; text-align: right; }
.home-camp-cover > .managed-cover,.content-cover > .managed-cover { height: 100%; aspect-ratio: auto; }
/* Telefon listelerindeki küçük kapaklarda başlık ve etiketler kapak görselinin yazısıyla üst üste binip okunmaz oluyor; kart başlığı zaten yanında yazıyor. */
@container (max-width: 260px) {
  .managed-cover-title,.managed-cover-labels { display: none; }
  .managed-cover-logo { width: 46px !important; padding: 2px 4px; border-radius: 4px; }
}

/* Cover administration */
.cover-editor-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 18px; margin: 24px 0; align-items: start; }
.cover-editor-card { border: 1px solid #e2e5e8; box-shadow: none; }.cover-editor-card .cms-card-heading p { max-width: 640px; }
.cover-mode-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }.cover-mode-choice > label { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid #dce2e8; border-radius: 11px; cursor: pointer; }.cover-mode-choice > label:has(input:checked) { border-color: #2383d5; background: #eff7fe; }.cover-mode-choice span { display: grid; gap: 4px; }.cover-mode-choice b { font-size: 12px; }.cover-mode-choice small { color: #6b7888; font-size: 10px; line-height: 1.4; }
.cover-source-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 10px 0 18px; }.cover-source-grid label { min-height: 44px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; border: 1px solid #dfe3e7; border-radius: 9px; font-size: 11px; font-weight: 750; cursor: pointer; }.cover-source-grid label:has(input:checked) { color: #174e7a; border-color: #72aede; background: #edf6fd; }
.cover-upload-field { padding: 14px; margin-bottom: 16px; border: 1px dashed #b9c8d5; border-radius: 10px; background: #f7fafc; }.cover-upload-field > label { display: grid; gap: 5px; font-size: 11px; font-weight: 850; }.cover-upload-field small { color: #718090; font-size: 9px; }.cover-upload-field input { margin-top: 8px; }.cover-upload-summary { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; word-break: break-all; }.cover-upload-summary button { border: 0; color: #a93642; background: transparent; cursor: pointer; }.cms-field-error { margin: 8px 0 0; color: #a93642; font-size: 10px; }
.cover-basic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 18px 0; }.cover-basic-grid fieldset,.cover-position-field { min-width: 0; margin: 0; padding: 0; border: 0; }.cover-basic-grid legend,.cover-position-field legend { margin-bottom: 8px; color: #4f5968; font-size: 10px; font-weight: 850; }.cover-segments { display: grid; grid-template-columns: repeat(3,1fr); padding: 3px; border-radius: 9px; background: #edf0f3; }.cover-segments button { min-height: 35px; border: 0; border-radius: 7px; color: #586675; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }.cover-segments button.active { color: #153c60; background: #fff; box-shadow: 0 2px 8px rgba(16,34,56,.08); }
.cover-advanced-toggle { margin: 5px 0 16px; }.cover-advanced-panel { padding: 18px; border-radius: 12px; background: #f7f8f9; }.cover-position-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin: 18px 0; }.cover-position-picker { width: 112px; max-width: 100%; aspect-ratio: 1.4; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 6px; border: 1px solid #d8dfe5; border-radius: 9px; background: #fff; }.cover-position-picker button { display: grid; place-items: center; border: 0; border-radius: 4px; background: #edf1f4; cursor: pointer; }.cover-position-picker button span { width: 6px; height: 6px; border-radius: 50%; background: #9aa8b5; }.cover-position-picker button.active { outline: 2px solid #2581ce; background: #e2f1fc; }.cover-position-picker button.active span { background: #1c70b5; }
.cover-preview-card { min-width: 0; }.cover-preview-modes { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }.cover-preview-modes button { padding: 7px 8px; border: 1px solid #dbe1e6; border-radius: 7px; color: #536474; background: #fff; font-size: 9px; cursor: pointer; }.cover-preview-modes button.active { color: #fff; border-color: #163b5c; background: #163b5c; }.cover-preview-stage { container-type: inline-size; }.cover-preview-stage--pdf { max-width: 230px; margin-inline: auto; }.cover-preview-caption { display: grid; gap: 5px; padding: 13px; border: 1px solid #e0e4e7; border-top: 0; border-radius: 0 0 9px 9px; background: #fff; }.cover-preview-caption small { color: #657688; font-size: 9px; }.cover-preview-caption strong { font-size: 14px; line-height: 1.25; }.cover-preview-caption span { color: #1b6fae; font-size: 10px; font-weight: 850; }.cover-global-settings { max-width: 1120px; }

/* Secure draft site preview */

@media (max-width: 1050px) { .cover-editor-layout { grid-template-columns: 1fr; }.cover-preview-card { position: static; }.cover-position-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .cover-mode-choice,.cover-source-grid,.cover-basic-grid,.cover-position-grid { grid-template-columns: 1fr; }.cover-position-picker { width: 150px; }.managed-cover-title { font-size: 16px; } }

/* TYT and AYT book showcase */
.book-showcase {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 104px;
  padding: 50px;
  scroll-margin-top: 112px;
  position: relative;
  color: #fff;
  border: 1px solid #183b55;
  border-radius: 20px;
  background: linear-gradient(135deg, #0a2236 0%, #0d2b43 100%);
  box-shadow: 0 22px 54px rgba(11, 36, 57, .13);
}

.book-showcase-heading {
  margin-bottom: 30px;
  padding-bottom: 26px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.book-showcase h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(35px, 3.9vw, 52px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 720;
}

.book-showcase-all {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.32);
  font-size: 11px;
  font-weight: 750;
}

.book-showcase-all span { color: #72bde8; transition: transform .18s ease; }
.book-showcase-all:hover span { transform: translateX(3px); }

.book-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.book-feature {
  --book-accent: #35aadc;
  /* Vurgu renginin metin ve etiket zemini için koyu tonu: beyazla en az 4,5:1 kontrast. */
  --book-accent-ink: #136b96;
  min-width: 0;
  min-height: 350px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  position: relative;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid #d8e1e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(2, 19, 32, .13);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.book-feature--ayt {
  --book-accent: #e7ac25;
  --book-accent-ink: #8a5d00;
}

.book-feature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  width: 3px;
  background: var(--book-accent);
  pointer-events: none;
}

.book-feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--book-accent) 48%, #d8e1e7);
  box-shadow: 0 18px 34px rgba(2, 19, 32, .18);
}

.book-feature-copy {
  min-width: 0;
  z-index: 2;
  padding: 30px 27px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.book-labels { display: flex; align-items: center; gap: 10px; }

.book-exam {
  padding: 7px 8px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #fff;
  border-radius: 5px;
  background: var(--book-accent-ink);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

.book-exam small { font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.book-format { color: #586774; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.book-feature h3 {
  max-width: 300px;
  margin: 24px 0 0;
  font-size: clamp(27px, 2.15vw, 31px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 700;
}

.book-meta {
  width: 100%;
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid #d6dfe5;
}

.book-meta span { color: #586774; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.book-meta b { display: block; margin-bottom: 3px; color: #314657; font-size: 10px; letter-spacing: 0; text-transform: none; }

.book-action {
  min-height: 40px;
  margin-top: 22px;
  padding: 0 10px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  border-radius: 7px;
  background: #102b42;
  font-size: 10px;
  font-weight: 800;
}

.book-action i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  font-style: normal;
}

.book-visual {
  min-width: 0;
  z-index: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 22px;
  border-left: 1px solid #dce4e9;
  background: #edf4f7;
}

.book-feature--ayt .book-visual { background: #f7f2e7; }

.book-visual img {
  width: 158px;
  max-width: 100%;
  max-height: 278px;
  height: auto;
  position: relative;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(9px 14px 10px rgba(11,31,47,.2));
  transition: transform .28s ease;
}

.book-feature:hover .book-visual img { transform: translateY(-4px) scale(1.015); }
.book-feature:hover .book-action { background: var(--book-accent); }

.book-shadow {
  position: absolute;
  z-index: 0;
  left: 16%;
  right: 16%;
  bottom: 27px;
  height: 24px;
  border-radius: 50%;
  background: rgba(20,43,61,.14);
  filter: blur(10px);
}

@media (max-width: 980px) {
  .book-showcase { padding: 42px; }
  .book-showcase-grid { grid-template-columns: 1fr; }
  .book-feature { min-height: 330px; grid-template-columns: minmax(0, 1fr) 230px; }
  .book-visual img { width: 165px; }
}

@media (max-width: 620px) {
  .book-showcase {
    width: min(100% - 28px, 1180px);
    margin-bottom: 72px;
    padding: 30px 16px 16px;
    border-radius: 14px;
  }

  .book-showcase-heading { margin-bottom: 16px; padding: 0 4px 23px; display: block; }
  .book-showcase h2 { font-size: 35px; }
  .book-showcase-all { width: fit-content; margin-top: 20px; }
  .book-showcase-grid { gap: 12px; }

  .book-feature {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 238px auto;
    display: flex;
    flex-direction: column;
  }

  .book-feature-copy { padding: 24px 22px 22px; }
  .book-feature h3 { max-width: 300px; font-size: 28px; }
  .book-meta { max-width: 320px; margin-top: 30px; }
  .book-visual { order: -1; min-height: 238px; padding: 22px; border: 0; border-bottom: 1px solid #dce4e9; }
  .book-visual img { width: 142px; max-height: 205px; }
  .book-shadow { left: 30%; right: 30%; bottom: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .book-visual img { transition: none; }
  .book-feature:hover .book-visual img { transform: none; }
}

/* Books catalog */
.book-catalog-main { padding-top: 12px; }
.book-sales-directory { margin-bottom: 84px; padding: 32px 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; border: 1px solid #cfe0ea; border-radius: 18px; background: linear-gradient(120deg, #f7fbfd, #eef7fb); }
.book-sales-directory > div:first-child { max-width: 600px; }
.book-sales-directory > div:first-child > span { color: #2388b7; font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.book-sales-directory h2 { margin: 8px 0 7px; font-size: clamp(26px, 3vw, 34px); line-height: 1.05; letter-spacing: -.045em; }
.book-sales-directory p { margin: 0; color: #617581; font-size: 12px; line-height: 1.55; }
.book-sales-directory > div:last-child { min-width: 240px; display: grid; gap: 9px; }
.book-sales-directory a { min-height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #fff; border-radius: 8px; background: #102b42; font-size: 10px; font-weight: 850; }
.book-sales-directory a:hover { background: #2b9dce; }
.catalog-section { padding: 0 0 78px; scroll-margin-top: 118px; }
.catalog-section + .catalog-section { padding-top: 72px; border-top: 1px solid var(--line); }
.catalog-section-heading { margin-bottom: 26px; }
.catalog-section-heading span { color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.catalog-section-heading h2 { margin: 8px 0 0; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -.045em; }
.catalog-book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.catalog-book { --catalog-accent: #3daedf; --catalog-accent-ink: #136b96; display: flex; flex-direction: column; border: 1px solid #d9e0e5; border-radius: 18px; background: #fff; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.catalog-book--yellow { --catalog-accent: #dfa51e; --catalog-accent-ink: #8a5d00; }
.catalog-book--blue { --catalog-accent: #687eb9; --catalog-accent-ink: #47599a; }
.catalog-book--green { --catalog-accent: #5aa13a; --catalog-accent-ink: #3b7a22; }
.catalog-book:hover { transform: translateY(-4px); border-color: var(--catalog-accent); box-shadow: 0 18px 36px rgba(14,40,59,.09); }
.catalog-book-cover { min-width: 0; position: relative; aspect-ratio: 16 / 11; display: grid; place-items: center; padding: 22px; background: #fff; border-bottom: 1px solid #eef1f3; }
.catalog-book-cover > span { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 6px 8px; color: #fff; border-radius: 5px; background: var(--catalog-accent-ink); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.catalog-book-cover img { max-width: 60%; max-height: 88%; object-fit: contain; }
.catalog-book-cover img.catalog-book-cover-flat { border-radius: 3px; box-shadow: 0 0 0 1px rgba(14,40,59,.1), 0 14px 28px rgba(14,40,59,.16); }
.catalog-book-copy { min-width: 0; padding: 22px 24px 24px; display: flex; flex-direction: column; align-items: flex-start; }
.catalog-book-copy > small { color: var(--catalog-accent-ink); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.catalog-book-copy h3 { margin: 10px 0 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.15; letter-spacing: -.03em; }
.catalog-book-features { width: 100%; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.catalog-book-features span { padding: 7px 8px; color: #506473; border-radius: 999px; background: #f0f4f6; font-size: 8px; font-weight: 750; }
.catalog-book-preview { margin-top: 16px; color: #17394f; font-size: 10px; font-weight: 850; }
.catalog-book-preview span { margin-left: 7px; color: var(--catalog-accent); }
.catalog-book-preview:hover { color: var(--catalog-accent); }
.catalog-purchase-group { width: 100%; margin-top: 20px; padding-top: 18px; border-top: 1px solid #e0e5e9; }
.catalog-purchase-group > b { display: block; margin-bottom: 9px; color: #536977; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.catalog-purchase-group > div { display: flex; flex-wrap: wrap; gap: 7px; }
.catalog-purchase-group a { min-height: 31px; padding: 0 9px; display: inline-flex; align-items: center; gap: 7px; color: #fff; border-radius: 6px; background: #102b42; font-size: 9px; font-weight: 800; }
.catalog-purchase-group a span { color: var(--catalog-accent); }
.catalog-purchase-group a:hover { background: var(--catalog-accent); }
.catalog-purchase-group a:hover span { color: #fff; }
@media (max-width: 980px) {
  .book-sales-directory { grid-template-columns: 1fr; }
  .book-sales-directory > div:last-child { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-book-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .book-sales-directory { margin-bottom: 60px; padding: 25px 20px; gap: 22px; }
  .book-sales-directory > div:last-child { grid-template-columns: 1fr; }
  .catalog-section { padding-bottom: 60px; }
  .catalog-section + .catalog-section { padding-top: 56px; }
  .catalog-book-cover { aspect-ratio: 4 / 3; }
}

/* Book preview and purchase page */
.book-preview-page {
  --preview-accent: #35aadc;
  --preview-ink-mix: 61%;
  min-height: 100vh;
  color: #102b42;
  background:
    radial-gradient(circle at 8% 18%, color-mix(in srgb, var(--preview-accent) 12%, transparent), transparent 25%),
    #f5f7f8;
}

.book-preview-page--ayt { --preview-accent: #e7ac25; --preview-ink-mix: 53%; }

.book-preview-header {
  min-height: 86px;
  padding: 12px max(24px, calc((100vw - 1040px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #dce4e9;
  background: rgba(255,255,255,.92);
}

.book-preview-brand img {
  width: 132px;
  height: 62px;
  display: block;
  object-fit: contain;
}

.book-preview-back {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #294356;
  border: 1px solid #ccd8df;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}

.book-preview-back:hover { border-color: var(--preview-accent); }

.book-preview-content {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 82px;
}

.book-preview-heading {
  max-width: 680px;
  margin: 0 auto 30px;
  text-align: center;
}

.book-preview-eyebrow,
.book-purchase-kicker {
  color: color-mix(in srgb, var(--preview-accent) var(--preview-ink-mix), #102b42);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.book-preview-heading h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.book-preview-heading p {
  margin: 0;
  color: #607281;
  font-size: 15px;
  line-height: 1.65;
}

.book-preview-frame {
  width: min(760px, 100%);
  height: clamp(430px, 62vh, 620px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d8e1e6;
  border-top: 5px solid var(--preview-accent);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(20,46,67,.13);
}

.book-preview-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.book-preview-page .book-preview-frame--pages { width: min(820px, 100%); height: auto; min-height: 0; }

.book-viewer { padding: 22px 22px 18px; outline-offset: -4px; background: #eef3f6; }
.book-viewer-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; }
.book-viewer-page {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(20,46,67,.2);
}
.book-viewer-nav {
  width: 44px;
  height: 44px;
  border: 1px solid #c9d6de;
  border-radius: 50%;
  color: #102b42;
  background: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.book-viewer-nav:hover:not(:disabled) { border-color: var(--preview-accent); background: var(--preview-accent); }
.book-viewer-nav:disabled { opacity: .35; cursor: default; }
.book-viewer-count { margin: 14px 0 12px; text-align: center; font-size: 13px; font-weight: 800; color: #4b6275; }
.book-viewer-thumbs { display: flex; justify-content: center; gap: 10px; }
.book-viewer-thumbs button {
  width: 54px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #fff;
  opacity: .6;
  cursor: pointer;
}
.book-viewer-thumbs button.is-active { border-color: var(--preview-accent); opacity: 1; }
.book-viewer-thumbs img { width: 100%; height: auto; display: block; }

@media (max-width: 650px) {
  .book-viewer { padding: 14px 10px 14px; }
  .book-viewer-stage { grid-template-columns: minmax(0, 1fr); }
  .book-viewer-stage .book-viewer-nav { display: none; }
  .book-viewer-thumbs button { width: 44px; }
}

.book-preview-placeholder {
  height: 100%;
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(180px, 270px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--preview-accent) 7%, #fff), #fff 65%);
}

.book-preview-placeholder img {
  width: 100%;
  max-height: 470px;
  object-fit: contain;
  filter: drop-shadow(16px 22px 18px rgba(17,43,63,.18));
  transform: rotate(-2deg);
}

.book-preview-page--ayt .book-preview-placeholder img { transform: rotate(2deg); }

.book-preview-placeholder span {
  color: color-mix(in srgb, var(--preview-accent) var(--preview-ink-mix), #102b42);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.book-preview-placeholder strong {
  margin: 9px 0 12px;
  display: block;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.book-preview-placeholder p {
  margin: 0;
  color: #6b7b87;
  font-size: 14px;
  line-height: 1.6;
}

.book-purchase {
  width: min(760px, 100%);
  margin: 34px auto 0;
  padding: 30px;
  border: 1px solid #dbe3e8;
  border-radius: 16px;
  background: #fff;
}

.book-purchase h2 {
  margin: 7px 0 22px;
  font-size: 27px;
  letter-spacing: -.035em;
}

.book-purchase-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.book-purchase-links > a,
.book-purchase-link--pending {
  min-height: 54px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.book-purchase-links > a {
  color: #fff;
  background: #102b42;
}

.book-purchase-links > a:hover { background: var(--preview-accent); color: #102b42; }

.book-purchase-link--pending {
  color: #647583;
  border: 1px dashed #c7d2d9;
  background: #f6f8f9;
  cursor: not-allowed;
}

.book-purchase-link--pending small {
  color: #8997a1;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 650px) {
  .book-preview-header { min-height: 72px; padding-inline: 16px; }
  .book-preview-brand img { width: 100px; height: 48px; }
  .book-preview-back { min-height: 38px; padding-inline: 12px; font-size: 12px; }
  .book-preview-content { width: min(100% - 28px, 920px); padding: 42px 0 60px; }
  .book-preview-heading { margin-bottom: 24px; }
  .book-preview-frame { height: auto; min-height: 490px; }
  .book-preview-placeholder { min-height: 490px; padding: 34px 24px; grid-template-columns: 1fr; gap: 25px; text-align: center; }
  .book-preview-placeholder img { width: min(190px, 70%); max-height: 270px; margin: 0 auto; }
  .book-purchase { margin-top: 22px; padding: 23px 18px; }
  .book-purchase-links { grid-template-columns: 1fr; }
}

/* Book sample page viewer */
.book-preview-frame--pages {
  width: min(860px, 100%);
  height: auto;
  padding: 22px 22px 18px;
}

.book-pages-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--preview-accent) 9%, #eef3f6), #e9eef2);
  padding: 18px 64px;
}

.book-pages-open {
  position: relative;
  padding: 0;
  display: block;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.book-pages-open img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(78vh, 860px);
  display: block;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17,43,63,.2);
}

.book-pages-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(16,43,66,.82);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transition: opacity .2s ease;
}

.book-pages-open:hover .book-pages-zoom,
.book-pages-open:focus-visible .book-pages-zoom { opacity: 1; }

.book-pages-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #ccd8df;
  border-radius: 50%;
  color: #102b42;
  background: #fff;
  font-size: 26px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(17,43,63,.12);
}

.book-pages-nav span { margin-top: -3px; }
.book-pages-nav--prev { left: 10px; }
.book-pages-nav--next { right: 10px; }
.book-pages-nav:hover:not(:disabled) { border-color: var(--preview-accent); color: var(--preview-accent); }
.book-pages-nav:disabled { opacity: .35; cursor: default; }

.book-pages-caption {
  margin: 16px 4px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.book-pages-caption span {
  color: color-mix(in srgb, var(--preview-accent) var(--preview-ink-mix), #102b42);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.book-pages-caption strong {
  margin-top: 3px;
  display: block;
  font-size: 20px;
  letter-spacing: -.025em;
}

.book-pages-caption small {
  flex-shrink: 0;
  color: #607281;
  font-size: 13px;
  font-weight: 750;
}

.book-pages-caption small b { margin: 0 4px; color: #a9b6bf; }

.book-pages-thumbs {
  margin: 16px 0 0;
  padding: 2px 2px 6px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.book-pages-thumbs button {
  width: 100%;
  padding: 6px 6px 8px;
  display: grid;
  gap: 6px;
  border: 2px solid transparent;
  border-radius: 10px;
  color: #607281;
  background: #f4f7f9;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.book-pages-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 1829;
  display: block;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(17,43,63,.12);
}

.book-pages-thumbs button:hover { border-color: #ccd8df; }
.book-pages-thumbs button[aria-current="true"] {
  border-color: var(--preview-accent);
  color: #102b42;
  background: color-mix(in srgb, var(--preview-accent) 10%, #fff);
}

.book-pages-dialog {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: auto;
  background: rgba(10,26,40,.94);
}

.book-pages-dialog::backdrop { background: rgba(10,26,40,.7); }

.book-pages-dialog-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px max(16px, calc((100vw - 1100px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  background: rgba(10,26,40,.92);
  font-size: 14px;
  font-weight: 750;
}

.book-pages-dialog-bar div { display: flex; gap: 8px; }

.book-pages-dialog-bar button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 20px;
  cursor: pointer;
}

.book-pages-dialog-bar button:hover:not(:disabled) { background: rgba(255,255,255,.18); }
.book-pages-dialog-bar button:disabled { opacity: .35; cursor: default; }

.book-pages-dialog > img {
  width: min(1100px, 100%);
  height: auto;
  margin: 12px auto 32px;
  display: block;
  background: #fff;
}

@media (max-width: 650px) {
  .book-preview-frame--pages { min-height: 0; padding: 12px 12px 10px; }
  .book-pages-stage { padding: 10px; }
  .book-pages-open img { max-height: none; }
  .book-pages-nav { top: auto; bottom: 18px; width: 40px; height: 40px; transform: none; }
  .book-pages-nav--prev { left: 18px; }
  .book-pages-nav--next { right: 18px; }
  .book-pages-zoom { right: 50%; bottom: 22px; opacity: 1; transform: translateX(50%); }
  .book-pages-caption { margin-top: 12px; align-items: flex-start; flex-direction: column; gap: 4px; }
  .book-pages-caption strong { font-size: 17px; }
  .book-pages-thumbs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .book-pages-thumbs li { flex: 0 0 76px; scroll-snap-align: start; }
  .book-pages-dialog-bar span { font-size: 12px; }
  .book-pages-dialog > img { margin-top: 0; }
}

/* Compact homepage header and hero */
.site-header {
  height: 74px;
  padding-inline: max(24px, calc((100% - 1180px) / 2));
}

.brand {
  width: 154px;
  height: auto;
}

.brand img { width: 140px; }

.public-nav {
  gap: clamp(18px, 2vw, 28px);
  font-weight: 680;
}

.public-nav a { padding: 9px 0; }
.public-nav a.active::after { bottom: 2px; background: #57b9e9; }

.header-cta {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #08263e;
  border-color: #8ed1ef;
  border-radius: 9px;
  background: #8ed1ef;
  box-shadow: 0 7px 18px rgba(23, 105, 176, .13);
}

.header-cta:hover {
  color: #fff;
  border-color: #12324c;
  background: #12324c;
  transform: translateY(-1px);
}

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 646px;
  margin-top: 22px;
  padding: 38px 42px 36px 50px;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  gap: 42px;
  background:
    radial-gradient(circle at 79% 46%, rgba(85, 180, 230, .14), transparent 29%),
    radial-gradient(circle at 4% 8%, rgba(111, 197, 239, .11), transparent 30%),
    #08263e;
  border-color: rgba(139, 207, 241, .13);
  border-radius: 22px;
  box-shadow: 0 22px 58px rgba(8, 38, 62, .15);
}

.hero::before {
  opacity: .19;
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 63%);
  mask-image: linear-gradient(90deg, #000, transparent 63%);
}

.hero-chemistry {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-formula {
  position: absolute;
  color: #a9dcf4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  opacity: .13;
}

.hero-formula--one { left: 43%; top: 10%; transform: rotate(-7deg); }
.hero-formula--two { left: 4%; bottom: 8%; transform: rotate(5deg); }

.hero-orbit {
  position: absolute;
  left: -36px;
  top: 15%;
  width: 132px;
  height: 132px;
  opacity: .13;
  animation: hero-orbit-float 10s ease-in-out infinite;
}

.hero-orbit i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 34%;
  border: 1px solid #a8dcf5;
  border-radius: 50%;
}

.hero-orbit i:nth-child(1) { transform: translate(-50%, -50%); }
.hero-orbit i:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); }
.hero-orbit i:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg); }
.hero-orbit b { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: #a8dcf5; transform: translate(-50%, -50%); }

.hero-bonds {
  position: absolute;
  right: 38%;
  bottom: 7%;
  width: 146px;
  height: 86px;
  opacity: .1;
  transform: rotate(-8deg);
}

.hero-bonds i { position: absolute; width: 64px; height: 1px; background: #a8dcf5; transform-origin: left center; }
.hero-bonds i:nth-child(1) { left: 12px; top: 23px; transform: rotate(18deg); }
.hero-bonds i:nth-child(2) { left: 69px; top: 42px; transform: rotate(-30deg); }
.hero-bonds i:nth-child(3) { left: 69px; top: 42px; transform: rotate(34deg); }
.hero-bonds b { position: absolute; width: 8px; height: 8px; border: 1px solid #a8dcf5; border-radius: 50%; }
.hero-bonds b:nth-of-type(1) { left: 7px; top: 18px; }
.hero-bonds b:nth-of-type(2) { left: 65px; top: 37px; }
.hero-bonds b:nth-of-type(3) { right: 7px; top: 6px; }
.hero-bonds b:nth-of-type(4) { right: 4px; bottom: 2px; }

.hero-copy { padding: 12px 0; }

.hero h1 {
  margin: 0 0 20px;
  max-width: 620px;
  line-height: .88;
  text-wrap: initial;
}

.hero-title-brand,
.hero-title-highlight { display: block; }

.hero-title-brand {
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(29px, 3vw, 39px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 720;
}

.hero-title-highlight {
  width: fit-content;
  color: #82cdf2;
  background: linear-gradient(96deg, #a2def8 0%, #68bde9 58%, #b4e7fa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(65px, 6.6vw, 88px);
  line-height: .88;
  letter-spacing: -.068em;
  font-weight: 820;
}

.hero-copy > p {
  max-width: 555px;
  margin: 0 0 26px;
  color: #c9d7e2;
  font-size: 16px;
  line-height: 1.58;
}

.hero-actions { gap: 15px; }

.hero .primary-button,
.hero .secondary-button {
  min-height: 50px;
  border-radius: 9px;
}

.hero .primary-button { background: #8bd4f5; }
.hero .primary-button:hover { background: #b2e6fa; }

.hero .secondary-button {
  padding-inline: 9px;
  color: #d7e3eb;
  border-color: transparent;
  background: transparent;
}

.hero .secondary-button span { margin-left: 8px; transition: transform .18s ease; }
.hero .secondary-button:hover { color: #fff; border-color: transparent; background: transparent; transform: none; }
.hero .secondary-button:hover span { transform: translateX(3px); }

.hero-portrait {
  min-height: 540px;
  align-self: center;
  background: radial-gradient(circle at 50% 45%, rgba(104, 195, 239, .2), rgba(20, 64, 94, .16) 43%, rgba(7, 31, 49, .3) 74%);
  border-color: rgba(168, 220, 246, .11);
  border-radius: 15px;
  box-shadow: 0 22px 40px rgba(2, 18, 31, .18);
}

.hero-portrait::before {
  inset: 4% -4% -10%;
  z-index: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 191, 239, .31) 0%, rgba(70, 157, 210, .12) 38%, transparent 70%);
  filter: blur(10px);
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  z-index: 3;
  background: linear-gradient(to top, rgba(5, 27, 44, .9) 0%, rgba(5, 27, 44, .22) 62%, transparent 100%);
  pointer-events: none;
}

.hero-portrait > img {
  width: min(468px, 104%);
  filter: grayscale(1) contrast(1.025) drop-shadow(0 18px 20px rgba(0, 0, 0, .18));
}

.portrait-caption {
  left: 50%;
  bottom: 14px;
  min-width: 0;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: rgba(174, 219, 245, .16);
  border-radius: 8px;
  background: rgba(5, 27, 44, .72);
  box-shadow: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

.portrait-caption span,
.portrait-caption strong { display: inline; margin: 0; }
.portrait-caption span { color: #a9cde4; font-size: 9px; letter-spacing: .06em; }
.portrait-caption i { color: rgba(255, 255, 255, .32); font-size: 11px; font-style: normal; }
.portrait-caption strong { font-size: 13px; font-weight: 720; letter-spacing: -.01em; }

@keyframes hero-orbit-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(5px, -7px, 0) rotate(3deg); }
}

@media (max-width: 980px) {
  .hero {
    min-height: 0;
    padding: 48px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-copy { padding: 0; }
  .hero h1 { max-width: 760px; }
  .hero-title-highlight { font-size: clamp(68px, 11vw, 92px); }
  .hero-copy > p { max-width: 620px; }
  .hero-portrait { width: min(590px, 100%); min-height: 510px; margin: 0 auto; }
  .hero-formula--one { left: auto; right: 6%; }
  .hero-bonds { right: 8%; bottom: 46%; }
}

@media (max-width: 720px) {
  .site-header { min-height: 70px; padding: 4px 16px 0; }
  .brand { width: 136px; height: auto; }
  .brand img { width: 134px; }
  .header-cta { min-height: 44px; padding-inline: 12px; font-size: 10px; }

  .hero {
    width: min(100% - 28px, 1180px);
    margin-top: 14px;
    padding: 38px 22px 20px;
    gap: 32px;
    border-radius: 16px;
  }

  .hero-title-brand { margin-bottom: 8px; font-size: clamp(27px, 8vw, 34px); }
  .hero-title-highlight { font-size: clamp(49px, 15.2vw, 72px); line-height: .9; }
  .hero-copy > p { margin-bottom: 24px; font-size: 15px; line-height: 1.56; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 7px; }
  .hero .primary-button,
  .hero .secondary-button { width: 100%; min-height: 50px; }
  .hero .secondary-button { border: 1px solid rgba(255, 255, 255, .16); }
  .hero .secondary-button:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .05); }
  .hero-portrait { min-height: 420px; border-radius: 12px; }
  .hero-portrait > img { width: min(390px, 105%); }
  .portrait-caption { bottom: 11px; }
  .hero-bonds { display: none; }
}

@media (max-width: 420px) {
  .header-cta span { display: none; }
  .hero { padding-inline: 18px; }
  .hero-title-highlight { font-size: clamp(45px, 14.7vw, 60px); }
  .hero-portrait { min-height: 360px; }
  .hero-portrait > img { width: min(350px, 108%); }
  .portrait-caption { padding-inline: 9px; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit,
  .molecule-label,
  .atom-model,
  .particle-specks { animation: none; }

  .hero .primary-button,
  .hero .secondary-button,
  .hero .secondary-button span,
  .header-cta { transition: none; }

  .hero .primary-button:hover,
  .hero .secondary-button:hover,
  .header-cta:hover { transform: none; }
}

/* Keep the compact header clear above the homepage hero. Menü 9 bağlantıya çıktığı için 1240px altında hamburger'e geçer. */
@media (max-width: 1239px) {
  .site-header { flex-wrap: nowrap; }
  .public-nav { display: none; }
}

/* Küçük ekranlarda tablo yatay kaydığı için detay kartı ekranın altına yapışık kompakt bir çubuk olur. */
.element-detail-toggle { display: none; }

@media (max-width: 900px) {
  .element-detail { position: sticky; bottom: 10px; top: auto; z-index: 15; display: block; padding: 12px; max-height: calc(100dvh - 24px); overflow-y: auto; box-shadow: 0 -6px 30px rgba(11, 32, 55, .18); }
  .element-detail::after { display: none; }
  .element-detail-top { grid-template-columns: 64px 1fr; gap: 12px; }
  .element-symbol-card strong { font-size: 27px; }
  .element-detail h2 { margin: 2px 0; font-size: 19px; }
  .element-detail-toggle { display: block; width: 100%; min-height: 36px; margin-top: 10px; border: 1px solid color-mix(in srgb, var(--element-color) 40%, #d6dfe5); border-radius: 9px; background: #fff; color: var(--element-color); font-size: 11px; font-weight: 800; cursor: pointer; }
  .element-detail:not(.expanded) :is(.element-facts, .shell-distribution, .element-usage) { display: none; }
  .element-detail.expanded { max-height: 78dvh; }
  .element-detail.expanded .element-facts { margin-top: 14px; }
}

/* Mobile navigation: hamburger toggle opens the main menu as a dropdown panel. */
.menu-toggle { display: none; }

@media (max-width: 1239px) {
  .site-header { gap: 10px; }
  .site-header .brand { margin-right: auto; }
  .menu-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #b7c0ca;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
  }
  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: #12324c;
    transition: transform .2s ease, background-color .2s ease;
  }
  .menu-toggle span { position: relative; }
  .menu-toggle span::before,
  .menu-toggle span::after { content: ""; position: absolute; left: 0; }
  .menu-toggle span::before { top: -6px; }
  .menu-toggle span::after { top: 6px; }
  .menu-open .menu-toggle span { background: transparent; }
  .menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

  .site-header .public-nav { display: none; }
  .site-header.menu-open .public-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px 16px 12px;
    overflow: visible;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(11, 32, 55, .14);
    font-size: 15px;
  }
  .site-header.menu-open .public-nav a { padding: 14px 4px; border-bottom: 1px solid #edf0f4; }
  .site-header.menu-open .public-nav a:last-child { border-bottom: 0; }
  .site-header.menu-open .public-nav a.active::after { display: none; }
}

/* Ana sayfa kamp iskeleti: içerik D1'den gelene kadar gösterilir. */
.home-camp-card--skeleton { pointer-events: none; }.home-camp-card--skeleton .home-camp-cover { background: #e3eaf0; animation: camp-skeleton-pulse 1.4s ease-in-out infinite; }.home-camp-card--skeleton .home-camp-body i { display: block; width: 45%; height: 10px; margin-bottom: 12px; border-radius: 6px; background: #e3eaf0; animation: camp-skeleton-pulse 1.4s ease-in-out infinite; }.home-camp-card--skeleton .home-camp-body i:nth-child(2) { width: 85%; height: 20px; }.home-camp-card--featured.home-camp-card--skeleton .home-camp-cover,.home-camp-card--featured.home-camp-card--skeleton .home-camp-body i { background: #ffffff24; } @keyframes camp-skeleton-pulse { 50% { opacity: .55; } } @media (prefers-reduced-motion: reduce) { .home-camp-card--skeleton :is(.home-camp-cover, .home-camp-body i) { animation: none; } }

/* Ana sayfadan öğretmen köşesine giriş */
.teacher-entry { width: min(1180px, calc(100% - 48px)); margin: 32px auto 0; padding: 20px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #cfe2ee; border-radius: 16px; background: linear-gradient(100deg, #eef7fd, #fff 70%); color: var(--ink); transition: border-color .25s, transform .25s; }
.teacher-entry > span { display: grid; gap: 4px; }
.teacher-entry strong { font-size: 18px; letter-spacing: -.02em; }
.teacher-entry small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.teacher-entry b { color: var(--blue); font-size: 13px; white-space: nowrap; }
.teacher-entry b span { margin-left: 8px; }
@media (hover: hover) { .teacher-entry:hover { border-color: #57b9e9; transform: translateY(-2px); } }
@media (max-width: 760px) { .teacher-entry { width: calc(100% - 28px); flex-direction: column; align-items: flex-start; padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .teacher-entry { transition: none; } .teacher-entry:hover { transform: none; } }

/* 9 menü bağlantısı 1180px'lik başlığa tek satırda sığsın: etiketler kırılmaz, aralık daralır (1240px ve üstü; altı hamburger). */
@media (min-width: 1240px) {
  .site-header .public-nav {
    gap: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: max-content;
    transform: translate(-50%, -50%);
  }
  .site-header .public-nav a { white-space: nowrap; }
}

/* Dar ekranda ana sayfa hero'sundaki dekoratif parçacık katmanı gizlenir: tarayıcı bu öğelerin stil ve düzen
   hesabını ilk boyamada yapmaz; LCP görseli daha erken çizilir. Masaüstünde görünüm değişmez. */
@media (max-width: 620px) {
  .hero-portrait .chemical-particles { display: none; }
}

/* ===== visual-refinements.css ===== */
/* Shared public visual language: deep ocean, ice blue, quiet chemistry. */
:root {
  --surface-glow: #edf7fc;
  --surface-border: #d6e5ef;
  --surface-shadow: 0 12px 36px rgb(10 45 72 / 6%);
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
}

.public-main { isolation: isolate; background: radial-gradient(ellipse at 100% 5%, #e7f3fb80, transparent 35%); }
.public-header { background: rgb(255 255 255 / 90%); border-bottom-color: #dbe8f0; box-shadow: 0 4px 24px rgb(10 45 72 / 4%); }
.public-nav a::after { content: ""; position: absolute; inset: auto 0 2px; height: 2px; border-radius: 2px; background: #57b9e9; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--motion-ease); }
.public-nav a:is(:hover, .active)::after { transform: scaleX(1); }
.public-main :is(h1, h2, h3) { text-wrap: balance; }
.public-main :is(a, button, input, select, textarea):focus-visible,
.site-footer a:focus-visible { outline: 3px solid #2389c4; outline-offset: 5px; }
/* Arama kutularında halka yuvarlak kutunun kendisine çizilir; içteki input'a ikinci bir kare çerçeve çizilmez. */
.public-main :is(.search-box, .periodic-search) input:focus-visible { outline: 0; }
.public-main :is(.search-box, .periodic-search):focus-within { outline: 3px solid #2389c4; outline-offset: 3px; }
.public-main ::selection { background: #b8e5fa; color: #08263e; }

/* A bounded, noninteractive particle field; only transforms animate. */
.hero-stage .hero > .chemistry-atmosphere,
.chemistry-atmosphere { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; border-radius: inherit; color: #9bdcf9; }
.chemistry-atmosphere span { position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); border-radius: 50%; background: currentColor; opacity: .4; box-shadow: 0 0 12px currentColor; animation: chemistry-drift var(--duration) ease-in-out var(--delay) infinite; }
.chemistry-atmosphere span:nth-child(4n)::after { content: ""; position: absolute; top: 1px; left: 2px; width: 38px; height: 1px; background: linear-gradient(90deg, currentColor, transparent); transform: rotate(-32deg); transform-origin: left; opacity: .45; }
.public-main > .chemistry-atmosphere--light { height: 760px; z-index: -1; color: #428bb8; opacity: .45; mask-image: linear-gradient(#000, transparent); }
@keyframes chemistry-drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(12px, -22px, 0); } }

.hero-stage .hero { border: 1px solid #9bd8f52b; background: radial-gradient(ellipse at 82% 30%, #246b9059, transparent 48%), radial-gradient(ellipse at 5% 100%, #143f644d, transparent 50%), #08263e; box-shadow: 0 24px 60px #08263e1c, inset 0 1px 0 #dcf4ff12; }
.hero-stage .hero > .hero-chemistry { position: absolute; z-index: 0; }
.hero-title-highlight { padding-bottom: .08em; margin-bottom: -.08em; background-image: linear-gradient(110deg, #c3eeff, #70c8f0 55%, #abdef7); }
.hero-portrait { border: 1px solid #afdff526; box-shadow: inset 0 1px 0 #e4f7ff0d, 0 24px 48px #02121f33; }
.hero-portrait::before { animation: portrait-breathe 12s ease-in-out infinite; }
.molecule-label { animation: chemistry-drift 14s ease-in-out infinite; color: #b7d8ef; opacity: .5; }
.molecule-h2o { animation-delay: -5s; }
.molecule-o2 { animation-delay: -9s; }
.atom-model { animation: atom-drift 16s ease-in-out infinite; opacity: .42; }
.atom-two { animation-delay: -7s; }
.atom-model b { box-shadow: 0 0 16px #84d5ff66; }
.portrait-caption { backdrop-filter: blur(12px); }
.portrait-caption span { font-size: 12px; }
@keyframes portrait-breathe { 0%, 100% { transform: scale(.96); opacity: .75; } 50% { transform: scale(1.04); opacity: 1; } }

/* Consistent depth, corners, and interaction across all content routes. */
.public-main :is(.level-card, .content-card, .home-camp-card, .catalog-book, .success-story-card, .story-grid > article, .social-cards > a) { border-color: var(--surface-border); border-radius: 16px; box-shadow: var(--surface-shadow); transition: transform .3s var(--motion-ease), box-shadow .3s ease, border-color .3s ease; }
.level-card { background: linear-gradient(145deg, #fff 15%, #eef6fc); overflow: hidden; }
.level-index { background: #e2f0fa; border: 1px solid #cce2f0; color: #245a82; border-radius: 9px; }
.level-card p { font-size: 14px; line-height: 1.6; }
.level-card b { font-size: 13px; }
.level-card b span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #dceef9; }
.public-main :is(.primary-button, .secondary-button, .book-action, .book-showcase-all, .catalog-book-preview),
.header-cta { transition: transform .25s var(--motion-ease), box-shadow .25s ease, background-color .25s ease; }
.hero .primary-button { box-shadow: 0 5px 20px #73cef326, inset 0 1px 0 #ffffff70; }
.public-main :is(.section-kicker, .catalog-section-heading > span) { letter-spacing: .12em; }
.section-heading h2, .book-showcase-heading h2 { letter-spacing: -.035em; }
.book-feature { border: 1px solid #d2e3ed; border-radius: 20px; box-shadow: var(--surface-shadow); }
.book-visual img { transition: transform .5s var(--motion-ease); }
.home-band-blush { background: linear-gradient(180deg, #ecf3f8, #f4f8fb); border-block: 1px solid #dae7f080; }

.page-hero { border: 1px solid #91c9ec2e; border-radius: 24px; background: radial-gradient(ellipse at 90% 15%, #2e7ba052, transparent 52%), linear-gradient(120deg, #08263e, #102e49); box-shadow: 0 18px 45px #0b203716, inset 0 1px 0 #ffffff0d; }
.page-hero::before { color: #b1dff5; opacity: .23; }
.page-hero::after { border-color: #a6d9f22e; animation: chemistry-drift 18s ease-in-out infinite; }
.public-main :is(.library-toolbar, .periodic-toolbar) { padding: 18px; background: #ffffffb8; border: 1px solid var(--surface-border); border-radius: 16px; box-shadow: 0 4px 20px #0a2d4805; }
.public-main :is(.library-empty, .stories-empty, .home-camps-empty, .home-success-empty) { border-color: #bfd7e8; background: linear-gradient(125deg, #fff, #eef7fc); border-radius: 18px; }
.public-main :is(.about-portrait, .game-embed-frame, .periodic-table-panel, .element-detail) { border-color: var(--surface-border); box-shadow: var(--surface-shadow); border-radius: 20px; }
.about-quote { background: linear-gradient(110deg, #e5f2fb, #f3f8fc); border-left-color: #399acb; border-radius: 0 16px 16px 0; }
.social-cards > a { background: linear-gradient(145deg, #fff, #edf6fc); }
.game-frame-stage { background: radial-gradient(ellipse at 50% 40%, #225678, #0b233b 70%); }
.game-stage-orbit { animation: chemistry-drift 18s ease-in-out infinite; }
.game-stage-orbit-two { animation-delay: -9s; }
.periodic-page-heading { padding-top: 12px; }
.resource-strip { background: radial-gradient(ellipse at 100% 0%, #286c9259, transparent 60%), #08263e; border-block: 1px solid #9fd4ef26; }
.site-footer { background: linear-gradient(180deg, #edf3f8, #f8fafc); border-top: 1px solid #d6e4ee; }
/* Açık zeminli altbilgide koyu zemin için kalan beyaz/açık gri yazılar görünmüyordu. */
.site-footer .footer-links strong { color: var(--ink); }
.site-footer :is(.footer-brand p, .footer-links a, .footer-bottom) { color: var(--muted); }
.site-footer .footer-bottom { border-color: #d6e4ee; }
.footer-links a { width: fit-content; transition: color .2s, transform .2s; }
.footer-links a:hover { color: #1769b0; transform: translateX(3px); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .public-main :is(a.level-card, a.content-card, a.home-camp-card, .catalog-book, .social-cards > a):hover { transform: translateY(-5px); border-color: #91c1dd; box-shadow: 0 20px 40px #0a2d4812; }
  .hero .primary-button:hover { transform: translateY(-2px); box-shadow: 0 8px 26px #73cef345; }
  .book-feature:hover .book-visual img { transform: translateY(-7px) rotate(-3deg); }
}
@media (max-width: 980px) {
  .public-nav { gap: 14px; }
}
@media (max-width: 620px) {
  .chemistry-atmosphere span:nth-child(n + 10) { display: none; }
  .public-main :is(.library-toolbar, .periodic-toolbar) { padding: 14px; }
  .page-hero { border-radius: 18px; }
  .hero-portrait::before { animation: none; }
  .portrait-caption { gap: 6px; }
  .portrait-caption span { font-size: 12px; letter-spacing: 0; }
  .public-main :is(.level-card, .content-card, .home-camp-card) { border-radius: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .public-main *, .public-main *::before, .public-main *::after,
  .public-header *, .public-header *::after, .site-footer * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Dedicated book previews keep the same polish without changing their reader layout. */
.book-preview-page { background: radial-gradient(ellipse at 85% 12%, #dceffa, transparent 45%), #f4f8fb; }
.book-preview-header { border-bottom-color: #d6e5ef; background: #ffffffd9; }
.book-preview-frame, .book-purchase { border: 1px solid #d6e5ef; border-radius: 18px; box-shadow: var(--surface-shadow); overflow: hidden; }
.book-preview-page :is(a, button):focus-visible { outline: 3px solid #2389c4; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .book-preview-page *, .book-preview-page *::before, .book-preview-page *::after { animation: none !important; transition: none !important; }
}

/* Telefon okunabilirliği: 8–9px yazılar seçilemiyor, sık dizili bağlantılara parmakla isabet edilemiyordu. */
@media (max-width: 620px) {
  .success-story-person small,
  .story-card-person small { font-size: 12px; }
  .success-story-result,
  .story-grid .story-result { font-size: 11px; }
  .book-exam small,
  .book-format,
  .book-meta span,
  .catalog-book-features span,
  .catalog-purchase-group > b,
  .content-pill,
  .content-type,
  .managed-cover-labels span,
  .catalog-book-cover > span,
  .catalog-book-copy > small,
  .home-camp-body small { font-size: 10px; }
  .book-meta b { font-size: 12px; }
  .catalog-book-preview { min-height: 44px; margin-top: 6px; display: inline-flex; align-items: center; font-size: 12px; }
  .catalog-purchase-group a { min-height: 44px; padding-inline: 12px; font-size: 12px; }
  .filter-row button { min-height: 44px; font-size: 12px; }
  .footer-links div { gap: 0; }
  .footer-links a { padding-block: 7px; }
  .footer-bottom { align-items: center; }
  .footer-bottom a { padding-block: 10px; }
}

/* Gerçek öğretmen fotoğrafları: renkli, açık fonlu kareler */
.hero-portrait > img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; filter: none; border-radius: inherit; }
.hero-portrait::after { height: 28%; }
.about-portrait { background: #f1f1f1; }
.about-portrait::before, .about-portrait::after { display: none; }
.about-portrait img { display: block; height: 100%; object-fit: cover; object-position: 50% 12%; filter: none; }
.teacher-badge { filter: none; object-position: 50% 30%; border-radius: 50%; border: 2px solid var(--surface-border, #d7dde3); }
.contact-host { width: fit-content; margin: 0 auto 22px; display: flex; align-items: center; gap: 12px; }
.contact-host img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.contact-page > .contact-host span { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.hero-portrait .portrait-caption { z-index: 4; background: rgba(5, 27, 44, .86); }

/* Telefonda okunabilirlik: gövde metni (p, li, dd) en az 14 px. Etiketler (label) ve rozetler 12 px kalır; tablo
   hücreleri ızgarayı bozmamak için dokunulmaz. Ebeveyn 16 px iken 0.875em tam 14 px verir. */
@media (max-width: 620px) {
  p, li, dd { font-size: max(14px, 0.875em) !important; }
}

/* ===== chemistry-backdrop.css ===== */
/* Layered chemistry backdrop for the dark panels. Colour, type and copy of the
   panels stay exactly as they were; everything here sits behind them. */

.chem-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  color: #9fd4ef;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.page-hero:has(> .chem-backdrop),
.book-showcase:has(> .chem-backdrop) { isolation: isolate; }

.page-hero > .chem-backdrop,
.book-showcase > .chem-backdrop {
  position: absolute;
  z-index: 0;
}

.chem-backdrop > * {
  position: absolute;
  display: block;
}

/* Two slow blooms give the flat gradient somewhere to breathe. */
.chem-glow {
  border-radius: 50%;
  filter: blur(46px);
}

.chem-glow--a {
  top: -150px;
  right: -120px;
  width: 540px;
  height: 370px;
  background: radial-gradient(closest-side, rgb(76 163 215 / 38%), rgb(76 163 215 / 0%));
  animation: chem-bloom 19s ease-in-out infinite;
}

.chem-glow--b {
  bottom: -165px;
  left: -140px;
  width: 450px;
  height: 320px;
  background: radial-gradient(closest-side, rgb(43 116 168 / 32%), rgb(43 116 168 / 0%));
  animation: chem-bloom 27s ease-in-out -9s infinite;
}

@keyframes chem-bloom {
  0%, 100% { transform: scale(1); opacity: .78; }
  50% { transform: scale(1.11); opacity: 1; }
}

/* Lab-notebook graph paper, faded in from the top right. */
.chem-grid {
  inset: 0;
  background-image:
    linear-gradient(rgb(159 212 239 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(159 212 239 / 7%) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 88% 130% at 80% 8%, #000 8%, transparent 70%);
  mask-image: radial-gradient(ellipse 88% 130% at 80% 8%, #000 8%, transparent 70%);
}

/* Graphene honeycomb settling into the bottom-left corner. */
.chem-lattice {
  bottom: -58px;
  left: -56px;
  width: 430px;
  height: 306px;
  opacity: .42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31.18' height='54'%3E%3Cg fill='none' stroke='%239fd4ef' stroke-width='1.1'%3E%3Cpath d='M0,-18L15.59,-9L15.59,9L0,18L-15.59,9L-15.59,-9Z'/%3E%3Cpath d='M31.18,-18L46.77,-9L46.77,9L31.18,18L15.59,9L15.59,-9Z'/%3E%3Cpath d='M15.59,9L31.18,18L31.18,36L15.59,45L0,36L0,18Z'/%3E%3Cpath d='M0,36L15.59,45L15.59,63L0,72L-15.59,63L-15.59,45Z'/%3E%3Cpath d='M31.18,36L46.77,45L46.77,63L31.18,72L15.59,63L15.59,45Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 69.29px 120px;
  -webkit-mask-image: radial-gradient(ellipse 82% 84% at 10% 94%, #000 0%, rgb(0 0 0 / 45%) 40%, transparent 74%);
  mask-image: radial-gradient(ellipse 82% 84% at 10% 94%, #000 0%, rgb(0 0 0 / 45%) 40%, transparent 74%);
}

/* The drawn plate, anchored right so it never competes with the headline. */
.chem-plate {
  top: 50%;
  right: -34px;
  width: 760px;
  height: 380px;
  opacity: .52;
  transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 88%, rgb(0 0 0 / 28%));
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 88%, rgb(0 0 0 / 28%));
}

.chem-horizon { opacity: .28; }
.chem-chain { opacity: .62; animation: chem-sway 27s ease-in-out -6s infinite; }
.chem-water { opacity: .6; animation: chem-sway 22s ease-in-out -13s infinite; }
.chem-ring { animation: chem-sway 24s ease-in-out infinite; }
.chem-atom { opacity: .92; }
.chem-angle { opacity: .5; }
.chem-ring-bonds { opacity: .8; }
.chem-ticks { opacity: .38; }

@keyframes chem-sway {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-7px, -9px, 0); }
}

.chem-atom-spin {
  transform-box: view-box;
  transform-origin: 664px 268px;
  animation: chem-orbit 38s linear infinite;
}

@keyframes chem-orbit {
  to { transform: rotate(360deg); }
}

/* Film grain keeps the large flat areas from banding. */
.chem-grain {
  inset: -10%;
  opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Top sheen and a soft vignette, so the panel reads as a lit surface. */
.chem-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 6%), transparent 17%),
    linear-gradient(112deg, transparent 34%, rgb(190 231 255 / 5%) 50%, transparent 64%),
    radial-gradient(ellipse 118% 104% at 52% 46%, transparent 40%, rgb(4 19 33 / 34%));
}

/* The book showcase is mostly covered by cards, so the art moves up to the
   heading strip and the blooms carry the extra height. */
.chem-backdrop--panel .chem-plate { top: -46px; right: -66px; opacity: .4; transform: none; }
.chem-backdrop--panel .chem-glow--a { width: 660px; height: 430px; top: -190px; }
.chem-backdrop--panel .chem-glow--b { width: 520px; height: 380px; }
.chem-backdrop--panel .chem-lattice { width: 540px; height: 400px; opacity: .42; }
.chem-backdrop--panel .chem-grid { background-size: 52px 52px; }

.book-showcase { overflow: hidden; isolation: isolate; }
.book-showcase-heading,
.book-showcase-grid { position: relative; z-index: 1; }

/* The success-story hero already carries its own icon set. */
.stories-page-hero .chem-plate { display: none; }
.stories-page-hero .chem-lattice { opacity: .34; }

@media (max-width: 900px) {
  .chem-plate { right: -150px; opacity: .34; }
  .chem-lattice { opacity: .34; }
}

/* Narrow screens keep only the ring and its chain, tucked into the strip of
   panel above the headline. */
@media (max-width: 620px) {
  .chem-backdrop .chem-horizon,
  .chem-backdrop .chem-water,
  .chem-backdrop .chem-atom,
  .chem-backdrop .chem-ticks { display: none; }

  .chem-plate {
    top: -10px;
    right: -60px;
    width: 460px;
    height: 230px;
    opacity: .34;
    transform: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%);
    mask-image: linear-gradient(90deg, transparent, #000 34%);
  }

  .chem-backdrop--panel .chem-plate { top: -18px; right: -70px; }
  .chem-lattice { width: 320px; height: 240px; opacity: .28; }
  .chem-grid { background-size: 34px 34px; }
}
