/* ================================================================
   EDUCATION (Hiba, 9 Nov 2026): the free tools people get when they
   comment a keyword on @hibakharfa. One page per asset, written in
   Hiba's voice; sources in the vault, 70 Content Ops/Value Assets/.
   Pages are generated by _build/build_education.py: edit the vault file,
   then run it again, never the HTML by hand.
   Pixel edges on a 3 CSS px grid, like pixel.css.
   ================================================================ */

.edu-hero { padding-bottom: 0; }
.edu-hero .h1 { margin-bottom: 1.4rem; }
.edu-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: .4rem; }
.edu-meta .micro { margin: 0; }

.edu-body { padding-top: clamp(2.5rem, 5vw, 4rem); }
.edu-body h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  margin: 3.6rem 0 1.1rem;
  color: var(--bone); max-width: 32ch; text-wrap: balance;
}
.edu-body h2:first-child { margin-top: 0; }
.edu-body h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 2.2rem 0 .8rem; color: var(--bone); }
.edu-body p { color: var(--tx); margin-bottom: 1.2rem; max-width: 66ch; }
.edu-body strong { color: var(--bone); font-weight: 600; }
.edu-body hr { border: 0; height: 1px; background: var(--hairline); margin: 3.6rem 0; }

/* a short label over a reply or a question ("When there's no date yet") */
.edu-label {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sand); margin: 1.8rem 0 .7rem !important;
}
.edu-label strong { color: inherit; font-weight: 400; }

/* lists */
.edu-body ul, .edu-body ol { list-style: none; margin: 0 0 1.4rem; padding: 0; max-width: 66ch; }
.edu-body li { position: relative; padding-left: 1.6em; margin-bottom: .75rem; color: var(--tx); }
.edu-body ul li::before { content: ""; position: absolute; left: .3em; top: .62em; width: 6px; height: 6px; background: var(--crimson); }
.edu-body ol { counter-reset: edu; }
.edu-body ol li { counter-increment: edu; padding-left: 2.4em; }
.edu-body ol li::before {
  content: counter(edu, decimal-leading-zero); position: absolute; left: 0; top: .15em;
  font-family: var(--f-mono); font-size: .8rem; color: var(--crimson);
}

/* a reply to copy: a stepped card with its own copy button */
.edu-reply {
  position: relative; background: var(--surface); padding: 1.4rem 1.5rem 1.3rem;
  margin: 0 0 1.4rem; max-width: 68ch; clip-path: var(--px-9);
}
.edu-reply::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: color-mix(in srgb, var(--bone) 14%, transparent); clip-path: var(--px-r9);
}
.edu-reply p { color: var(--bone); margin: 0 0 .8rem; padding-right: 4.8rem; }
.edu-reply p:last-of-type { margin-bottom: 0; }
.edu-copy {
  position: absolute; top: .9rem; right: .9rem; z-index: 2;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sand); background: var(--noir); border: 0; padding: .45rem .7rem; cursor: pointer;
  clip-path: var(--px-6);
}
.edu-copy:hover, .edu-copy.is-done { color: var(--bone); background: var(--crimson); }

/* the blanks: {your range} is something the reader fills in */
.fill {
  font-family: var(--f-mono); font-size: .86em; color: var(--flare);
  background: color-mix(in srgb, var(--crimson) 14%, transparent);
  padding: .05em .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* a blank inside a heading reads as part of the heading */
.edu-body h2 .fill, .edu-body h3 .fill { font-family: inherit; font-size: inherit; background: none; padding: 0; color: var(--flare); }
/* a line to write on */
.edu-line { display: inline-block; width: min(26ch, 100%); height: 1.1em; border-bottom: 2px solid var(--ash); vertical-align: baseline; }
.edu-line.is-long { display: block; width: 100%; max-width: 60ch; margin-top: .8rem; }

/* worksheets: tables with room to write */
.edu-table-wrap { overflow-x: auto; margin: 1.4rem 0 1.8rem; -webkit-overflow-scrolling: touch; }
.edu-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
.edu-table th {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 400;
  color: var(--sand); text-align: left; padding: .8rem .8rem; border-bottom: 2px solid var(--crimson); vertical-align: bottom;
}
.edu-table td { color: var(--tx); padding: .8rem; border-bottom: 1px solid color-mix(in srgb, var(--bone) 14%, transparent); vertical-align: top; }
.edu-table tr.is-blank td { height: 3rem; }

/* the close: the free test, then the call */
.edu-next {
  position: relative; background: var(--surface); padding: clamp(1.8rem, 4vw, 2.6rem); margin-top: 1rem;
  clip-path: var(--px-12);
}
.edu-next h2 { margin-top: 0 !important; }
.edu-next .btn { margin: .4rem 0 1.4rem; }
.edu-sign { font-family: var(--f-mono); font-size: .85rem; color: var(--bone); letter-spacing: .04em; margin-top: 2.4rem !important; }

/* ---------------- the Education index ---------------- */
.edu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.edu-card {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  background: var(--surface); padding: 1.6rem 1.6rem 1.4rem; clip-path: var(--px-9);
  color: var(--tx); transition: background .25s var(--ease);
}
.edu-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--px-line-card, color-mix(in srgb, var(--bone) 14%, transparent)); clip-path: var(--px-r9);
}
.edu-card:hover { background: #1b181c; }
.edu-card:hover::after, .edu-card:focus-visible::after { --px-line-card: var(--crimson); }
.edu-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--bone); margin: 0; max-width: none; text-wrap: balance; }
.edu-card p { margin: 0; }
.edu-card .edu-open { margin-top: auto; padding-top: .6rem; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--flare); }
.edu-card.is-wide { grid-column: 1 / -1; }

@media (max-width: 699px) {
  .edu-grid { grid-template-columns: 1fr; }
  .edu-reply { padding: 3rem 1.1rem 1.1rem; }
  .edu-reply p { padding-right: 0; }
}

/* ---------------- print and "Save as PDF" ---------------- */
@media print {
  @page { margin: 16mm; }
  html, body { background: #fff !important; color: #111 !important; }
  .grain, #starfield, .nav, .footer, .edu-copy, .edu-print, .skip-link, .edu-next .btn { display: none !important; }
  .cs-hero { padding-top: 0 !important; }
  section { padding: 0 !important; }
  .h1, .edu-body h2, .edu-body h3, .edu-body strong, .edu-reply p, .edu-sign { color: #111 !important; }
  .edu-body p, .edu-body li, .intro, .micro, .eyebrow, .edu-label, .edu-table td, .edu-table th { color: #333 !important; }
  .edu-reply, .edu-next { background: #fff !important; clip-path: none; border: 1px solid #bbb; break-inside: avoid; }
  .edu-reply::after { display: none; }
  .fill { color: #8a0f1c !important; background: none; border-bottom: 1px dotted #8a0f1c; }
  .edu-line { border-color: #555; }
  .edu-table td { border-color: #bbb; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  a { color: #111 !important; }
}

/* ================================================================
   FIELDS (Hiba, 9 Nov 2026: the pages are interactive; answers saved on the device, sent to Hiba)
   Stepped corners on the 3 px grid; no borders, so nothing breaks at the steps. Focus = lighter fill + crimson line.
   ================================================================ */
.edu-in, .edu-blank, .edu-send-field input {
  font: inherit; color: var(--bone); background: #1d1a1e; border: 0; outline: 0;
  clip-path: var(--px-6); padding: .55rem .75rem; width: 100%;
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--bone) 18%, transparent);
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.edu-in:focus, .edu-blank:focus, .edu-send-field input:focus { background: #262227; box-shadow: inset 0 -2px 0 var(--crimson); }
.edu-in::placeholder, .edu-blank::placeholder { color: var(--ash); }
.edu-area { min-height: 6rem; resize: vertical; line-height: 1.5; display: block; }
.edu-field { margin: 0 0 1.4rem; max-width: 66ch; }
.edu-field.is-long .edu-label { display: block; }
p.edu-field { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; color: var(--tx); }
p.edu-field .edu-in { width: 9rem; flex: 0 0 auto; }
.edu-label-inline { color: var(--bone); font-weight: 600; }
.edu-table td .edu-in { min-width: 7rem; background: transparent; clip-path: none; padding: .35rem .2rem; }
.edu-table td .edu-in:focus { background: #1d1a1e; }
.edu-table tr td:has(.edu-in) { padding: .35rem .6rem; }

/* blanks inside a reply: typed straight into the sentence */
.edu-blank {
  display: inline; width: auto; font-family: var(--f-mono); font-size: .86em; color: var(--flare);
  padding: .1em .35em; margin: .1em 0; clip-path: var(--px-3); background: color-mix(in srgb, var(--crimson) 12%, transparent);
  box-shadow: none; max-width: 100%;
}
.edu-blank:focus { background: color-mix(in srgb, var(--crimson) 22%, transparent); box-shadow: none; }
.edu-blank::placeholder { color: color-mix(in srgb, var(--flare) 75%, transparent); }
.edu-reply.is-form { padding-top: 1.5rem; }
.edu-reply.is-form .edu-field { margin-bottom: 1rem; }
.edu-reply.is-form .edu-field:last-child { margin-bottom: 0; }

/* tick boxes and yes / no */
.edu-checks { margin: .4rem 0 1.6rem; max-width: 66ch; display: grid; gap: .55rem; }
.edu-check { display: flex; align-items: flex-start; gap: .8rem; color: var(--tx); cursor: pointer; }
.edu-check input[type=checkbox], .edu-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.edu-box { flex: 0 0 auto; width: 21px; height: 21px; margin-top: .1em; background: #262227; clip-path: var(--px-3); position: relative; }
.edu-box::after { content: ""; position: absolute; inset: 6px; background: transparent; }
input:checked + .edu-box { background: var(--crimson); }
input:checked + .edu-box::after { background: var(--bone); }
input:focus-visible + .edu-box { background: #3a3236; }
input:checked:focus-visible + .edu-box { background: var(--flare); }
.edu-check.is-yn { cursor: default; align-items: center; flex-wrap: wrap; }
.edu-yn { display: inline-flex; gap: .3rem; flex: 0 0 auto; }
.edu-yn label { cursor: pointer; }
.edu-yn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.edu-yn span {
  display: inline-block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .7rem; background: #262227; color: var(--sand); clip-path: var(--px-6);
}
.edu-yn input:checked + span { background: var(--crimson); color: var(--bone); }
.edu-yn input:focus-visible + span { outline: 0; background: #3a3236; }
.edu-yn input:checked:focus-visible + span { background: var(--flare); }
.edu-check-text { flex: 1 1 18rem; }
.edu-why { font-size: .9rem; color: var(--mut) !important; margin: -.2rem 0 .6rem 0 !important; padding-left: 0; }

/* the send panel */
.edu-send { padding: clamp(1rem, 3vw, 2rem) 0; }
.edu-send-box { position: relative; background: var(--surface); padding: clamp(1.6rem, 4vw, 2.6rem); clip-path: var(--px-12); }
.edu-send-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--crimson); clip-path: var(--px-r12); }
.edu-send-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--bone); margin: 0 0 .6rem; }
.edu-send-box p { color: var(--tx); max-width: 60ch; }
.edu-saved { font-size: .78rem; color: var(--sand) !important; margin-bottom: 1.4rem; letter-spacing: .04em; }
.edu-send-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; margin: 1.4rem 0 1.2rem; }
.edu-send-field { display: grid; gap: .45rem; }
.edu-send-field.is-wide { grid-column: 1 / -1; }
.edu-consent { display: flex; gap: .8rem; align-items: flex-start; color: var(--tx); cursor: pointer; margin-bottom: 1.4rem; max-width: 60ch; font-size: .95rem; }
.edu-consent a { color: var(--bone); border-bottom: 1px solid rgba(244,241,234,.3); }
.edu-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.edu-status { margin: 1rem 0 0; min-height: 1.4em; color: var(--flare) !important; }
.edu-done-text { color: var(--bone) !important; font-size: 1.1rem; }
.edu-booking { margin-top: 1.2rem; }
.edu-tools { display: flex; gap: 1.4rem; margin-top: 1.6rem; flex-wrap: wrap; }
.edu-link { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); border-bottom: 1px solid var(--hairline); }
.edu-link:hover { color: var(--bone); border-color: var(--crimson); }
@media (max-width: 599px) { .edu-send-grid { grid-template-columns: 1fr; } }

@media print {
  .edu-send, .edu-tools { display: none !important; }
  .edu-in, .edu-blank { background: #fff !important; color: #111 !important; box-shadow: inset 0 -1px 0 #777 !important; clip-path: none; }
  .edu-area { min-height: 3rem; }
  .edu-box { background: #fff !important; outline: 1px solid #555; }
  input:checked + .edu-box::after { background: #111 !important; }
  .edu-yn span { background: #fff !important; color: #555 !important; outline: 1px solid #bbb; clip-path: none; }
  .edu-yn input:checked + span { color: #111 !important; outline: 2px solid #111; }
}

/* ---------- Hiba's Instagram, under the tools (Hiba, 11 Nov 2026) ---------- */
.edu-ig { padding: 0 0 clamp(4rem, 9vw, 7rem); position: relative; z-index: 2; }
.edu-ig-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center;
  padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--surface); clip-path: var(--px-15);
}
.edu-ig .eyebrow { display: flex; align-items: center; gap: .55em; color: var(--sand); margin-bottom: .9rem; }
.edu-ig-glyph { width: 14px; height: 14px; flex-shrink: 0; color: var(--flare); }
.edu-ig-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.05; text-transform: uppercase; margin: 0 0 .9rem; color: var(--bone); }
.edu-ig-text > p:not(.eyebrow) { color: var(--sand); font-size: 1.1rem; line-height: 1.55; margin: 0 0 1.5rem; max-width: 46ch; }
.edu-ig-embed { background: #fff; padding: 6px; clip-path: var(--px-12); width: 100%; max-width: 420px; justify-self: center; }
.edu-ig-embed iframe { display: block; width: 100%; height: 480px; border: 0; background: #fff; }
@media (max-width: 760px) { .edu-ig-inner { grid-template-columns: 1fr; } }
@media print { .edu-ig { display: none; } }

/* ---------- Hiba's quote with her photo (Hiba, 11 Nov 2026) ---------- */
.edu-quote { padding: 0 0 clamp(3rem, 7vw, 5rem); position: relative; z-index: 2; }
.edu-quote-inner {
  margin: 0; display: grid; grid-template-columns: minmax(280px, 380px) 1fr; align-items: end;
  gap: clamp(1.6rem, 5vw, 4rem);
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1.6rem, 4vw, 3.5rem) 0;
  background: radial-gradient(120% 90% at 22% 100%, #5E0E1B 0%, #450E18 35%, #1a0d10 70%, var(--noir) 100%);
  clip-path: var(--px-18);
}
.edu-quote-photo { align-self: end; }
.edu-quote-photo img { display: block; width: 100%; height: auto; aspect-ratio: 760 / 1200; object-fit: cover; object-position: 50% 0; }
.edu-quote-text { align-self: center; padding-bottom: clamp(1.6rem, 4vw, 3rem); }
.edu-quote blockquote { margin: 0 0 1.6rem; }
.edu-quote blockquote p { margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: none; font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.22; color: var(--bone); text-wrap: pretty; }
.edu-quote figcaption { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 3px solid var(--crimson); }
.edu-quote figcaption b { font-weight: 700; color: var(--bone); font-size: 1.05rem; }
.edu-quote figcaption span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sand); }
@media (max-width: 760px) {
  .edu-quote-inner { grid-template-columns: 1fr; padding: 1.6rem 1.4rem 0; background: radial-gradient(130% 60% at 50% 38%, #5E0E1B 0%, #450E18 35%, #1a0d10 70%, var(--noir) 100%); }
  .edu-quote-photo { width: min(300px, 80%); margin: 0 auto; }
  .edu-quote-text { padding-bottom: 1.8rem; }
}

/* ---------- articles (SEO plan, Phase 2, 15 Nov 2026): reading pages, built from 70 Content Ops/Articles ---------- */
.edu-article .container > h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: clamp(2.4rem, 5vw, 3.4rem) 0 1rem; color: var(--bone); max-width: none; text-wrap: balance; }
.edu-article .container > h3 { margin: 1.8rem 0 .6rem; color: var(--bone); }
.edu-article .container > p, .edu-article li { color: var(--tx); font-size: 1.08rem; line-height: 1.7; max-width: 66ch; }
.edu-article .container > p { margin: 0 0 1.1rem; }
.edu-article .container > p strong, .edu-article li strong { color: var(--bone); }
.edu-article ul, .edu-article ol { margin: 0 0 1.4rem; padding-left: 1.3rem; display: grid; gap: .45rem; }
.edu-article li::marker { color: var(--crimson); }
.edu-article .edu-example { margin: .4rem 0 1.6rem; }
.edu-article .edu-example p { padding-right: 0; }
.edu-inline-link { color: var(--bone); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--flare) 70%, transparent); text-underline-offset: 3px; transition: color .18s var(--ease); }
.edu-inline-link:hover { color: var(--flare); }
@media print { .edu-article .container > p, .edu-article li { color: #111; } }
