/* shamsedu.sy: one stylesheet for every page. No external requests. */

@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-arabic-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-arabic-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* From the logo: light teal -> deep teal -> navy; amber for the sun, used sparingly. */
  --teal-300: #3fcda8;
  --teal-200: #a9e8d6;
  --teal-100: #e3f6f0;
  --teal-50:  #f3faf8;
  --teal-600: #1f7a6b;
  --teal-700: #17604f;
  --navy:     #123047;
  --navy-900: #0b1f2f;
  --ink:      #14232e;
  --muted:    #52646f;
  --line:     #dde8e4;
  --line-2:   #edf3f1;
  --paper:    #ffffff;
  --sun:      #f2a93b;
  --sun-50:   #fff6e8;
  --warn-bg:  #fff8e9;
  --warn-line:#f1dcaa;
  --radius:   16px;
  --radius-s: 10px;
  --shadow:   0 1px 2px rgba(18, 48, 71, .06), 0 8px 24px rgba(18, 48, 71, .06);
  --shadow-l: 0 2px 6px rgba(18, 48, 71, .06), 0 24px 60px rgba(18, 48, 71, .12);
  --wrap:     1160px;
  --gutter:   20px;
  --font: "Plex Arabic", "Segoe UI", Tahoma, "Noto Sans Arabic", "Droid Arabic Kufi", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.85;
  color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-700); }
h1, h2, h3, h4 { line-height: 1.4; color: var(--navy); margin: 0 0 .55em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 5.4vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
code { font-family: Consolas, "Courier New", monospace; font-size: .95em; background: var(--teal-50); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
:focus-visible { outline: 3px solid var(--teal-300); outline-offset: 2px; border-radius: 4px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.small { font-size: .9rem; color: var(--muted); }
.center { text-align: center; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.skip { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 20; border-radius: 8px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand img { width: 82px; height: 28px; }
.brand span { font-weight: 700; font-size: 1.3rem; line-height: 1; }
.brand small { display: block; font-size: .7rem; font-weight: 400; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--ink); padding: 7px 11px; border-radius: 9px; white-space: nowrap; font-size: .98rem; }
.nav a:hover { background: var(--teal-50); color: var(--teal-700); }
.nav a[aria-current="page"] { color: var(--teal-700); font-weight: 700; background: var(--teal-50); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu { position: relative; display: none; }
.menu > summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--navy); background: #fff; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--teal-50); border-color: var(--teal-200); }
.menu-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 2 * var(--gutter)));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 10px;
}
.menu-panel nav { display: grid; gap: 2px; }
.menu-panel nav a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.menu-panel nav a:hover, .menu-panel nav a[aria-current="page"] { background: var(--teal-50); color: var(--teal-700); }
.menu-title { margin: 10px 12px 2px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.menu-panel .btn { width: 100%; margin-top: 10px; }
@media (max-width: 1023px) {
  .nav { display: none; }
  .menu { display: block; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 380px) { .header-actions .btn-small { padding: 6px 10px; font-size: .88rem; } .brand small { display: none; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.4;
  padding: 11px 22px; border-radius: 12px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--teal-700); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-300); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-100); color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-small { padding: 7px 14px; font-size: .94rem; border-radius: 10px; }
.btn .arrow { display: inline-block; transform: scaleX(-1); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }

/* ---------------------------------------------------------------- sections */
.section { padding: 64px 0; }
.section-tint { background: var(--teal-50); border-block: 1px solid var(--line-2); }
.section-dark { background: var(--navy); color: #dbe7ef; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #b7c9d6; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--teal-600); margin-bottom: .5em; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--sun-50); }
.section-dark .kicker { color: var(--teal-300); }
.section-dark .kicker::before { box-shadow: 0 0 0 4px rgba(242, 169, 59, .18); }
.lead { font-size: 1.16rem; color: var(--muted); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden;
  background: radial-gradient(900px 420px at 85% -10%, rgba(63, 205, 168, .16), transparent 60%),
              radial-gradient(700px 380px at 0% 10%, rgba(242, 169, 59, .10), transparent 60%), #fff; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.08fr; } .hero { padding: 72px 0 88px; } }
.hero h1 { max-width: 15em; }
.hero h1 em { font-style: normal; color: var(--teal-600); }
.hero .lead { max-width: 34em; }
.hero-note { margin-top: 14px; font-size: .92rem; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { margin: 0; display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 12px; font-size: .9rem; color: var(--navy); }
.facts li::before { content: ""; width: 14px; height: 14px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

/* product frames */
.showcase { position: relative; padding-bottom: 40px; }
.browser { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-l); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f6f9f8; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5e0dc; }
.browser-bar span { margin-inline-start: 10px; font-size: .74rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; direction: ltr; }
.browser img { width: 100%; }
.phone { width: 210px; border-radius: 30px; padding: 8px; background: var(--navy-900); box-shadow: var(--shadow-l); }
.phone img { border-radius: 23px; width: 100%; }
.showcase .phone { position: absolute; inset-inline-start: -10px; bottom: 0; width: 34%; max-width: 200px; min-width: 130px; }
.phone-solo { margin-inline: auto; }
.caption { font-size: .82rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------------------------------------------------------------- grids & cards */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--teal-200); box-shadow: var(--shadow); color: inherit; transform: translateY(-2px); }
.card-link .more { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--teal-600); font-size: .95rem; }
.card-link .more::after { content: " ←"; }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-100); color: var(--teal-700); margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }
.icon-sun { background: var(--sun-50); color: #a5650b; }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-inline-start: 26px; margin-bottom: .55em; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 16px; height: 16px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.card .checks li { color: var(--ink); font-size: .98rem; }

/* split rows: text beside a picture */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split-reverse > :first-child { order: 2; } }
.split + .split { margin-top: 64px; }
.split h2 { margin-bottom: .4em; }

/* trust strip */
.strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip > div { background: #fff; padding: 18px 20px; }
.strip b { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: 2px; }
.strip span { color: var(--muted); font-size: .92rem; line-height: 1.6; display: block; }

/* a school day */
.day { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; position: relative; }
.day li { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: start; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.day time { font-weight: 700; color: var(--teal-700); background: var(--teal-100); border-radius: 9px; text-align: center; padding: 3px 0; font-size: .98rem; direction: ltr; }
.day p { margin: 0; color: var(--muted); }
.day p b { color: var(--navy); }
@media (min-width: 900px) { .day { grid-template-columns: repeat(5, 1fr); } .day li { grid-template-columns: 1fr; } .day time { justify-self: start; padding: 2px 12px; } }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps-3 { grid-template-columns: repeat(3, 1fr); } .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }

/* notes */
.note { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 24px; }
.note h2, .note h3 { color: #5b4300; }
.note ul { margin-bottom: 0; }
.note-soft { background: var(--teal-50); border-color: var(--line); padding: 14px 18px; margin-bottom: 24px; }
.note-soft p { margin: 0; color: var(--muted); font-size: .95rem; }

/* roles with pictures */
.roles { display: grid; gap: 18px; }
@media (min-width: 720px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .roles { grid-template-columns: repeat(4, 1fr); } }

/* demo accounts */
.demo-band { background: linear-gradient(180deg, var(--teal-50), #fff); border-block: 1px solid var(--line-2); }
.demo-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .demo-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .demo-cards { grid-template-columns: repeat(4, 1fr); } }
.demo-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.demo-role { font-size: .8rem; font-weight: 700; color: var(--teal-700); background: var(--teal-100); border-radius: 999px; padding: 1px 10px; align-self: flex-start; }
.demo-card b { color: var(--navy); font-size: 1.08rem; margin-top: 6px; }
.demo-what { color: var(--muted); font-size: .93rem; line-height: 1.6; }
.demo-login { margin-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; font-size: .85rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.demo-login code { justify-self: start; font-size: 1rem; color: var(--navy); background: var(--teal-50); }
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.demo-foot .small { flex-basis: 100%; margin: 4px 0 0; }

/* ---------------------------------------------------------------- page head & crumbs */
.page-head { padding: 34px 0 30px; background: radial-gradient(700px 300px at 90% -20%, rgba(63, 205, 168, .14), transparent 60%), var(--teal-50); border-bottom: 1px solid var(--line-2); }
.page-head h1 { margin-bottom: .35em; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 46em; margin-bottom: 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .86rem; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: #a9b8bf; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-700); text-decoration: underline; }
.toc { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 5px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-size: .93rem; }
.toc a:hover { border-color: var(--teal-300); }

/* feature groups */
.feature-group { scroll-margin-top: 84px; }
.feature-group + .feature-group { margin-top: 56px; }
.feature-group > header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.feature-group > header .icon { margin: 0; }
.feature-group > header h2 { margin: 0; }
.feature-group > p { color: var(--muted); max-width: 46em; }
.tag-new { display: inline-block; font-size: .72rem; font-weight: 700; color: #8a5208; background: var(--sun-50); border: 1px solid #f6d9a8; border-radius: 999px; padding: 0 8px; margin-inline-start: 6px; vertical-align: middle; }

/* ---------------------------------------------------------------- prose */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose > :first-child { margin-top: 0; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--line); }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-inline-start: 4px solid var(--teal-300); background: var(--teal-50); border-radius: 0 10px 10px 0; color: var(--navy); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: start; padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
thead th { background: var(--teal-50); color: var(--navy); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- faq */
.faq h2 { margin-top: 1.8em; font-size: 1.3rem; }
.faq h2:first-child { margin-top: 0; }
details.qa { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
details.qa summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; font-size: 1.3rem; line-height: 1.2; color: var(--teal-600); flex-shrink: 0; }
details.qa[open] summary::after { content: "−"; }
details.qa > div { padding: 0 18px 6px; color: var(--muted); }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 18px; }
.two { display: grid; gap: 18px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; color: var(--navy); font-size: .98rem; padding: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: .86rem; margin-inline-start: 6px; }
.req { color: #b4372f; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  font: inherit; font-size: 1rem; width: 100%; padding: 10px 12px; border: 1px solid #c9d8d3; border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-300); outline: 3px solid var(--teal-100); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; cursor: pointer; background: #fff; color: var(--ink); }
.choices label:has(input:checked) { border-color: var(--teal-300); background: var(--teal-50); }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border: 1px solid var(--line); background: var(--teal-50); border-radius: 12px; padding: 16px; }
.form-status.is-error { background: var(--warn-bg); border-color: var(--warn-line); }
.side-box { background: var(--navy); color: #cfdde7; border-radius: var(--radius); padding: 24px; }
.side-box h2, .side-box h3 { color: #fff; }
.side-box a { color: var(--teal-300); }
.side-box .contact-list .ci { color: #8fa9bb; }
.side-box code, .download-box code { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
@media (min-width: 640px) { .layout-aside .demo-cards { grid-template-columns: repeat(2, 1fr); } }
.layout-aside { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .layout-aside { grid-template-columns: 1fr 340px; } .layout-aside > aside { position: sticky; top: 88px; } }

/* ---------------------------------------------------------------- cta band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, #164a5a 60%, var(--teal-600) 100%); color: #d8e6ee; padding: 52px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; max-width: 40em; }
.cta-grid { display: grid; gap: 20px; align-items: center; }
@media (min-width: 960px) { .cta-grid { grid-template-columns: 1.4fr 1fr; } .cta-grid .actions { justify-content: flex-end; margin: 0; } }

/* ---------------------------------------------------------------- blog */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips a { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; font-size: .92rem; }
.chips a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.post-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-featured { margin-bottom: 26px; }
.post-card > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.post-card > a:hover { border-color: var(--teal-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-media { aspect-ratio: 16 / 9; background: var(--teal-50); overflow: hidden; display: block; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-body h3 { margin: 4px 0 0; font-size: 1.1rem; color: var(--navy); }
.post-body p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.post-meta { margin-top: auto; padding-top: 8px; font-size: .84rem; color: var(--muted); }
.badge { align-self: flex-start; font-size: .76rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: #eef2f6; color: #3d5466; }
.badge-topic { background: var(--teal-100); color: var(--teal-700); }
.post-art { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-weight: 700; font-size: 1.1rem; padding: 16px; text-align: center;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .18) 0 16%, transparent 17%), radial-gradient(circle at 85% 90%, rgba(242, 169, 59, .55) 0 22%, transparent 23%), linear-gradient(135deg, var(--navy), var(--teal-600)); }
.post-art[data-topic="money"] { background: radial-gradient(circle at 80% 25%, rgba(255, 255, 255, .2) 0 14%, transparent 15%), linear-gradient(135deg, #0f3a4a, #1f7a6b 70%, #3fcda8); }
.post-art[data-topic="families"] { background: radial-gradient(circle at 25% 80%, rgba(242, 169, 59, .6) 0 18%, transparent 19%), linear-gradient(135deg, #17604f, #3fcda8); }
.post-art[data-topic="teaching"] { background: radial-gradient(circle at 75% 30%, rgba(255, 255, 255, .22) 0 12%, transparent 13%), linear-gradient(135deg, #123047, #2b5876); }
.post-art[data-topic="operations"] { background: radial-gradient(circle at 15% 25%, rgba(63, 205, 168, .5) 0 16%, transparent 17%), linear-gradient(135deg, #0b1f2f, #123047); }
@media (min-width: 900px) {
  .post-card-wide > a { flex-direction: row; }
  .post-card-wide .post-media { flex: 1.1; aspect-ratio: auto; min-height: 280px; }
  .post-card-wide .post-body { flex: 1; padding: 28px; justify-content: center; }
  .post-card-wide h3 { font-size: 1.55rem; }
  .post-card-wide .post-art span { font-size: 1.5rem; }
}
.post-head { padding: 34px 0 10px; }
.post-topic { margin: 0 0 6px; font-weight: 700; font-size: .92rem; }
.post-topic a { text-decoration: none; }
.post-lead { font-size: 1.15rem; color: var(--muted); }
.post-head .post-meta { padding: 0; }
.post-cover { margin: 8px 0 28px; }
.post-cover img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.post-body-text { font-size: 1.08rem; padding-bottom: 12px; }
.post-cta { margin: 36px 0 56px; display: grid; gap: 14px; background: var(--teal-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.post-cta h2 { font-size: 1.2rem; margin: 0 0 .3em; }
.post-cta p { margin: 0; color: var(--muted); }
.post-cta .actions { margin: 0; }
@media (min-width: 760px) { .post-cta { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #f5f9f8; border-top: 1px solid var(--line); padding: 48px 0 22px; font-size: .95rem; color: var(--muted); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .98rem; color: var(--navy); margin-bottom: .7em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35em; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--teal-700); text-decoration: underline; }
.footer-about .brand { margin-bottom: 12px; }
.contact-list { list-style: none; padding: 0; margin: 12px 0 0; }
.contact-list li { display: flex; gap: 10px; margin-bottom: .3em; }
.contact-list .ci { min-width: 56px; color: #7d8f99; }
.footer-base { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .86rem; }
.footer-base a { text-decoration: underline; }

/* ---------------------------------------------------------------- download */
.download-box { background: linear-gradient(135deg, var(--navy), #18505f); color: #d6e4ec; border-radius: var(--radius); padding: 28px; }
.download-box h2 { color: #fff; }
.download-box .small { color: #a9c0cf; }
.download-box a:not(.btn) { color: var(--teal-300); }
.apk-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: #a9c0cf; margin-top: 10px; }

/* ---------------------------------------------------------------- printable guide */
.leaflet { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.leaflet h1 { font-size: 1.7rem; }
.leaflet h2 { font-size: 1.2rem; margin-top: 1.2em; }
.leaflet .fill { display: inline-block; min-width: 220px; border-bottom: 1.5px dashed #9fb3bc; height: 1.4em; vertical-align: bottom; }
.leaflet ol > li { margin-bottom: .8em; }
@media print {
  .site-header, .site-footer, .no-print, .page-head .crumbs { display: none !important; }
  body { font-size: 12pt; }
  .page-head { background: none; border: 0; padding: 0; }
  .section { padding: 0; }
  .leaflet { border: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
