/* Sefirot section - numerology.cz
   Loaded only on pages whose <body> carries .sefirot. It restyles the content
   area of those pages; the header, navigation and footer are shared chrome and
   are styled for every page in style.css. */

body.sefirot {
  /* --surface, --rule, --ink*, --accent are the shared shell palette and live
     in style.css; these are the tones only this section uses. */
  --ground:     #d1e4de;
  --surface-2:  #cadcd6;
  --accent-deep: #94430a;

  /* Pillar encoding - used only in the Tree diagram, where it carries meaning */
  --p-mercy:    #bf5700;
  --p-severity: #415a7d;
  --p-balance:  #1f6b60;

  --on-dark:    #eef5f2;

  --sf-read: 65ch;

  background: var(--ground);
  color: var(--ink);
  font-family: Karla, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body.sefirot h1,
body.sefirot h2,
body.sefirot h3 {
  font-family: Spectral, Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---------- content area ---------- */

body.sefirot .site-main {
  max-width: 1180px;
  padding-block: 0 0;
}

body.sefirot .entry-content > * { margin-bottom: 0; }

body.sefirot .entry-title { display: none; }

body.sefirot a:focus-visible,
body.sefirot button:focus-visible,
body.sefirot summary:focus-visible,
body.sefirot .sf-node:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- section rhythm ---------- */

.sf-section { padding-block: 64px; }
.sf-section + .sf-section { border-top: 1px solid var(--rule); }

/* Sections that run the full content width instead of the reading column.
   The caps below are set per component, so the modifier has to clear each
   one rather than override a single shared max-width. */
.sf-wide .sf-head,
.sf-wide .sf-lede,
.sf-wide .sf-prose,
.sf-wide .sf-quote,
.sf-wide .sf-dim p,
.sf-wide .sf-step p,
.sf-wide .sf-answer { max-width: none; }

/* A panel set under the prose rather than beside it picks up the same
   separation .sf-quote uses in that position. */
.sf-wide .sf-prose + .sf-panel { margin-top: 38px; }

/* A portrait figure set into the right of a section, with the copy running
   around it. .sf-prose is a flex column, and a flex container sits beside a
   float instead of wrapping it, so .sf-flow returns the paragraphs to normal
   flow; flow-root on the section keeps the float out of the next one. */
.sf-figure-right { display: flow-root; }

.sf-aside {
  float: right;
  width: min(260px, 30%);
  margin: -34px 0 24px 42px;
}
.sf-aside img { width: 100%; height: auto; display: block; border-radius: 3px; }

.sf-prose.sf-flow { display: block; }
.sf-prose.sf-flow p { margin: 0 0 17px; }
.sf-prose.sf-flow p:last-child { margin-bottom: 0; }

.sf-eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}

.sf-display { font-size: clamp(32px, 5vw, 54px); margin: 0 0 22px; }

/* Hero headline read as separate claims: each sentence on its own line, set off
   by a small brass check. Sized in em so the mark tracks the clamped type. */
.sf-claims {
  display: flex;
  flex-direction: column;
  gap: .34em;
  /* Four stacked claims read as a list, not one display line - a step down
     from .sf-display keeps the block from swamping the hero. */
  font-size: clamp(24px, 3.2vw, 38px);
}
.sf-claims > span { position: relative; padding-left: 1.15em; }
.sf-claims > span::before {
  content: "";
  position: absolute;
  left: .1em;
  top: .3em;
  width: .38em;
  height: .2em;
  border-left: .075em solid var(--accent);
  border-bottom: .075em solid var(--accent);
  transform: rotate(-45deg);
}
.sf-title   { font-size: clamp(25px, 3.3vw, 36px); margin: 0 0 16px; }

.sf-lede {
  font-size: 19.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0;
}

.sf-head { margin-bottom: 36px; max-width: 62ch; }
.sf-head .sf-lede { margin-top: 14px; }

.sf-prose { max-width: var(--sf-read); display: flex; flex-direction: column; gap: 17px; }
.sf-prose p { color: var(--ink-2); margin: 0; }

/* The site's existing home copy, injected verbatim. The shared stylesheet
   gives .entry-content p a bottom margin; the flex gap handles spacing here,
   so clear it rather than let the two stack up. */
.sf-legacy p { margin: 0 !important; }
.sf-legacy { gap: 18px; }

.sf-intro { padding-block: 66px 56px; }
.sf-intro .sf-prose { margin-top: 22px; }

/* body.sefirot balances headings into even lines, which leaves a full-width
   display headline short of the right edge; here it fills the line instead. */
.sf-intro.sf-wide .sf-display { text-wrap: wrap; }

/* ---------- hero ---------- */

.sf-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 54px;
  align-items: center;
  padding-block: 62px 70px;
}

/* Let the column's gap set the rhythm rather than per-element margins,
   which the shared stylesheet also sets and would otherwise fight over. */
.sf-hero-copy { display: flex; flex-direction: column; gap: 20px; }
.sf-hero-copy > * { margin: 0; }
.sf-hero-copy .sf-ctas { margin-top: 10px; }

.sf-creed {
  font-family: Spectral, Georgia, serif;
  font-style: italic;
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 19px;
  max-width: 40ch;
}

/* ---------- buttons ---------- */

.sf-ctas { display: flex; gap: 11px; flex-wrap: wrap; align-items: center; margin-top: 28px; }

.sf-btn {
  display: inline-block;
  font-family: Karla, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 21px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-dark);
  border-radius: 2px;
  transition: opacity .18s;
}
.sf-btn:hover { opacity: .85; text-decoration: none; }

.sf-btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.sf-btn-ghost:hover { border-color: var(--ink); }

/* ---------- Tree of Life ---------- */

.sf-tree-wrap { display: flex; flex-direction: column; gap: 13px; align-items: center; }

.sf-tree {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 300 / 462;
  margin: 0;
}
.sf-tree svg { width: 100%; height: 100%; display: block; overflow: visible; }

.sf-path {
  stroke: var(--rule);
  stroke-width: 1.2;
  fill: none;
  transition: stroke .25s, stroke-width .25s;
}
.sf-path.lit { stroke: var(--accent); stroke-width: 1.8; }

.sf-node circle {
  fill: var(--surface);
  stroke-width: 1.6;
  cursor: pointer;
  transition: fill .22s, stroke-width .22s;
}
.sf-node[data-pillar="mercy"]    circle { stroke: var(--p-mercy); }
.sf-node[data-pillar="severity"] circle { stroke: var(--p-severity); }
.sf-node[data-pillar="balance"]  circle { stroke: var(--p-balance); }

.sf-node text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  fill: var(--ink-3);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  transition: fill .22s;
}

/* Da'at - the hidden sefirah, drawn as a broken ring. */
.sf-node-hidden circle { stroke-dasharray: 3.5 3; }

.sf-node:hover circle, .sf-node.active circle { stroke-width: 3; }
.sf-node[data-pillar="mercy"].active circle    { fill: #ecdcbc; }
.sf-node[data-pillar="severity"].active circle { fill: #ccd8e6; }
.sf-node[data-pillar="balance"].active circle  { fill: #b9d8d0; }
.sf-node.active text { fill: var(--ink); }

.sf-readout {
  min-height: 92px;
  width: 100%;
  max-width: 320px;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.sf-rd-top { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.sf-rd-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.sf-rd-name { font-family: Spectral, Georgia, serif; font-size: 19px; font-weight: 600; }
.sf-rd-gloss { font-size: 12px; color: var(--ink-3); font-style: italic; }
.sf-rd-body { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 5px 0 0; }

.sf-key {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-3);
  width: 100%;
  max-width: 320px;
}
.sf-key span { display: flex; align-items: center; gap: 6px; }
.sf-key i { width: 9px; height: 9px; border-radius: 50%; border: 1.6px solid; }
.sf-dot-severity { border-color: var(--p-severity); }
.sf-dot-balance  { border-color: var(--p-balance); }
.sf-dot-mercy    { border-color: var(--p-mercy); }

/* ---------- layout pieces ---------- */

.sf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.sf-stack { display: flex; flex-direction: column; gap: 26px; }

.sf-panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 28px 30px;
}
.sf-panel p:not(.sf-eyebrow) { color: var(--ink-2); font-size: 15.5px; margin: 0; }

.sf-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
/* The bullet is positioned rather than a grid column: an item that mixes a
   <strong> label with trailing text would otherwise split into two grid items,
   dropping the description into the 16px bullet column. */
.sf-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.sf-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px; height: 7px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}

/* Price, set as display type so it reads as the panel's headline figure. */
.sf-panel p.sf-price {
  font-family: Spectral, Georgia, serif;
  font-size: 31px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin: 2px 0 5px;
}

.sf-panel p.sf-price-note {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 18px;
}

.sf-panel h2.sf-title { font-size: 25px; margin: 0 0 2px; }

.sf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); gap: 32px 40px; }
.sf-item h3 { font-size: 19px; margin: 0 0 8px; }
.sf-item p { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin: 0; }

.sf-marker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  margin: 0 0 9px;
  color: var(--accent);
}
.sf-marker-severity { color: var(--p-severity); }
.sf-marker-balance  { color: var(--p-balance); }
.sf-marker-mercy    { color: var(--p-mercy); }

.sf-quote {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 28px 30px;
  margin-top: 38px;
  max-width: 58ch;
}
.sf-quote p:last-child {
  font-family: Spectral, Georgia, serif;
  font-size: 21px;
  line-height: 1.35;
  margin: 0;
}

/* six dimensions of the consultation */
.sf-dims { display: flex; flex-direction: column; }
.sf-dim {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding-block: 25px;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.sf-dim:last-child { border-bottom: 1px solid var(--rule); }
.sf-dim-n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.sf-dim h3 { font-size: 20px; margin: 0 0 6px; }
.sf-dim p { color: var(--ink-2); font-size: 15.5px; max-width: 60ch; margin: 0; }

/* the five-step process - a genuine sequence, so the numbering means something */
.sf-steps { display: flex; flex-direction: column; }
.sf-step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  padding-block: 23px;
  border-top: 1px solid var(--rule);
}
.sf-step:last-child { border-bottom: 1px solid var(--rule); }

/* A bordered list that closes the section puts its own rule directly above the
   section divider, which reads as two lines with a blank band between them.
   Where another section follows, that divider is the only rule needed. */
.sf-section:has(+ .sf-section) > .sf-steps:last-child .sf-step:last-child,
.sf-section:has(+ .sf-section) > .sf-dims:last-child .sf-dim:last-child,
.sf-section:has(+ .sf-section) > .sf-faq:last-child details:last-of-type {
  border-bottom: 0;
}
.sf-step-n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 5px;
  letter-spacing: .06em;
}
.sf-step h3 { font-size: 19px; margin: 0 0 6px; }
.sf-step p { color: var(--ink-2); font-size: 15px; max-width: 58ch; margin: 0; }

/* ---------- faq ---------- */

.sf-faq { display: flex; flex-direction: column; }
.sf-faq details { border-top: 1px solid var(--rule); }
.sf-faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.sf-faq summary {
  cursor: pointer;
  list-style: none;
  padding-block: 19px;
  font-family: Spectral, Georgia, serif;
  font-size: 18.5px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.sf-faq summary::-webkit-details-marker { display: none; }
.sf-faq summary::after {
  content: "+";
  margin-left: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 17px;
  color: var(--accent);
}
.sf-faq details[open] summary::after { content: "\2013"; }
.sf-answer { padding-bottom: 22px; max-width: 64ch; color: var(--ink-2); font-size: 15.5px; }

/* ---------- booking ---------- */

.sf-direct { display: flex; flex-direction: column; gap: 6px; }

/* Closing the booking page: the form is the way in, and this is the quiet
   alternative underneath it - separated by a rule, not dressed as a panel. */
.sf-direct-section {
  border-top: 1px solid var(--rule);
  padding-block: 30px 0;
}
.sf-direct a { font-size: 17px; color: var(--accent-deep); }
.sf-note { font-size: 13px; color: var(--ink-3); margin: 0; }

.sf-cta-row { align-items: center; }
.sf-cta-section .sf-ctas { margin-top: 0; }

/* ---------- Booking form ---------- */

.sf-form-section .sf-head { margin-bottom: 30px; }

.sf-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 30px 32px 26px;
}

.sf-fieldset { border: 0; margin: 0 0 26px; padding: 0; }
.sf-fieldset:last-of-type { margin-bottom: 20px; }
.sf-fieldset legend { padding: 0; margin-bottom: 14px; }

/* Two columns on a wide screen; a field that carries a longer label, a hint or
   a textarea takes the whole row. */
.sf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
}
.sf-field-wide { grid-column: 1 / -1; }

.sf-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }

.sf-field label {
  font-family: Karla, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.sf-field input,
.sf-field select,
.sf-field textarea {
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 10px 12px;
  width: 100%;
  max-width: 100%;
}

.sf-field textarea { resize: vertical; min-height: 120px; }

.sf-field input:focus-visible,
.sf-field select:focus-visible,
.sf-field textarea:focus-visible,
.sf-consent input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* :user-invalid rather than :invalid - a required field is invalid the moment
   the page loads, and nothing should be marked wrong before it is filled in. */
.sf-field input:user-invalid,
.sf-field select:user-invalid,
.sf-field textarea:user-invalid { border-color: #a33b2a; }

.sf-hint { font-size: 13.5px; color: var(--ink-3); }

/* The notice sits with the consent box, not in a policy nobody opens: short
   enough to read, with the full account one link away. */
.sf-gdpr {
  margin: 0 0 14px;
  padding: 12px 16px;
  background: var(--surface);
  border-left: 3px solid var(--rule);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
.sf-gdpr strong { color: var(--ink-2); }

.sf-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--ink-2);
}
.sf-consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--accent); }

.sf-form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sf-form-actions .sf-btn { border: 1px solid var(--ink); cursor: pointer; }

/* The honeypot is for machines reading the markup, so it is removed from the
   layout rather than merely hidden - a screen reader never reaches it. */
.sf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sf-form-status {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 14px 18px;
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.sf-form-ok { border-left-color: #1f6b60; }
.sf-form-bad { border-left-color: #a33b2a; }

.sf-form-alt { margin: 16px 0 0; font-size: 15px; color: var(--ink-3); }

/* ---------- Session picker ---------- */

.sf-slot-field { gap: 10px; }

.sf-field-label {
  font-family: Karla, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.sf-slot-picker {
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fff;
  padding: 16px 18px 18px;
}

.sf-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sf-slot-month { font-weight: 600; font-size: 15.5px; text-transform: capitalize; }

.sf-slot-nav {
  font: inherit;
  font-size: 18px;
  line-height: 1;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-2);
  padding: 6px 12px;
  cursor: pointer;
}
.sf-slot-nav:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.sf-slot-nav:disabled { opacity: .35; cursor: default; }

/* The weekday row shares the grid's columns so the labels line up with the
   dates under them. */
.sf-slot-week,
.sf-slot-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.sf-slot-week { margin-bottom: 4px; }

.sf-slot-weekday {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-3);
}

.sf-slot-weekend { opacity: .6; }

.sf-slot-day {
  font: inherit;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0;
}

/* A day with nothing free is still shown - a gap in the grid would read as a
   missing date rather than as a full one. */
.sf-slot-closed { color: var(--ink-3); opacity: .45; }

.sf-slot-open {
  background: var(--surface);
  border-color: var(--rule);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.sf-slot-open:hover { border-color: var(--accent); }
.sf-slot-open.is-chosen { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }

.sf-slot-blank { border: 0; }

.sf-slot-times { margin-top: 14px; }

.sf-slot-row { display: flex; flex-wrap: wrap; gap: 8px; }

.sf-slot-time {
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  padding: 9px 14px;
  cursor: pointer;
}
.sf-slot-time:hover { border-color: var(--accent); }

.sf-slot-their { font-size: 12px; font-weight: 400; color: var(--ink-3); }

.sf-slot-chosen {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
  padding: 12px 14px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

.sf-slot-change {
  font: inherit;
  font-size: 13.5px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-2);
  padding: 6px 12px;
  cursor: pointer;
}
.sf-slot-change:hover { border-color: var(--ink); }

.sf-slot-status {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.sf-slot-status-warn { border-left: 3px solid #a33b2a; padding-left: 10px; }

.sf-slot-hint, .sf-slot-zones { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.sf-slot-zones { margin-top: 12px; }

.sf-slot-picker button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* The closing call to action carries the price: the figure and the button that
   acts on it belong in the same panel, not in separate parts of the page. */
.sf-price-panel { align-self: start; }
.sf-price-panel .sf-price-note { margin-bottom: 0; }

.sf-price-panel .sf-ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 20px;
}
.sf-price-panel .sf-ctas .sf-btn { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  body.sefirot * { transition: none !important; animation: none !important; }
}

@media only screen and (max-width: 900px) {
  .sf-hero { grid-template-columns: 1fr; gap: 40px; }
  .sf-two { grid-template-columns: 1fr; gap: 30px; }
}

@media only screen and (max-width: 720px) {
  body.sefirot { font-size: 16px; }
  .sf-section { padding-block: 46px; }
  .sf-dim { grid-template-columns: 1fr; gap: 7px; }
  .sf-aside { float: none; width: 100%; max-width: 240px; margin: 0 auto 26px; }
  .sf-step { grid-template-columns: 1fr; gap: 5px; }
  .sf-panel { padding: 22px 20px; }
  .sf-lede { font-size: 18px; }
  .sf-form { padding: 24px 20px 22px; }
  .sf-grid { grid-template-columns: 1fr; }
  .sf-slot-picker { padding: 12px 12px 14px; }
  .sf-slot-day { font-size: 13px; }
  .sf-slot-time { flex: 1 1 calc(50% - 4px); }
}
