/* Holding page (site/holding.html). Website CSS, not Sapphire.
   Loaded after /assets/ksf.css. Every colour, space and typeface here
   is a Sapphire token: Evergreen, Bone, Oxide and Walnut, the colours of
   the home page masthead. What this file adds is page layout only, plus
   a few fixes this page needs on the Evergreen ground. Those fixes are
   noted where they stand, as candidates to move into Sapphire later. */

/* --- the pair: one block, two languages ---
   Sorani comes first in the source, so it comes first on a phone. On a
   wide screen the two sit side by side, Sorani on the right and English
   on the left, whatever the direction of the text inside each cell. */
.holding-wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--ksf-space-32);
}
.holding-pair {
  display: grid;
  gap: var(--ksf-space-22) var(--ksf-space-48);
  direction: ltr;
}
.holding-pair + .holding-pair { margin-top: var(--ksf-space-32); }
.holding-pair > * { min-width: 0; }
@media (min-width: 860px) {
  .holding-pair { grid-template-columns: 1fr 1fr; align-items: start; }
  .holding-pair > .holding-pair__ku { grid-column: 2; grid-row: 1; }
  .holding-pair > .holding-pair__en { grid-column: 1; grid-row: 1; }
}

/* On a phone the page reads one language at a time, in this order:
   Sorani appeal, Sorani buttons, English appeal, English buttons.
   The wide layout pairs each block side by side. Here each language cell
   is taken out of its pair (display: contents) and placed by order, so a
   heading, its text and its list stay together. The green contact cells
   carry their own ground (ksf-on-evergreen in the markup). */
@media (max-width: 859.98px) {
  main { display: flex; flex-direction: column; }
  .holding-band,
  .holding-band > .holding-wrap,
  .holding-band > .holding-wrap > .holding-pair { display: contents; }

  .holding-band > .holding-wrap > .holding-pair > [class*="holding-pair__"] {
    padding-inline: var(--ksf-space-22);
    padding-block: var(--ksf-space-22);
  }
  .holding-band:not(.holding-contact) > .holding-wrap > .holding-pair:first-child > [class*="holding-pair__"] {
    padding-top: var(--ksf-space-48);
  }
  .holding-band:not(.holding-contact) > .holding-wrap > .holding-pair > .holding-pair__ku { order: 1; }
  .holding-contact > .holding-wrap > .holding-pair > .holding-pair__ku { order: 2; }
  .holding-band:not(.holding-contact) > .holding-wrap > .holding-pair > .holding-pair__en { order: 3; }
  .holding-contact > .holding-wrap > .holding-pair > .holding-pair__en { order: 4; }
}

/* --- hero: the Sapphire masthead, with a name pair and a saying pair --- */
.holding-hero .holding-pair { width: 100%; max-width: 1120px; margin-top: 0; }
.holding-hero .holding-pair > * { text-align: center; }
.holding-hero .ksf-lede { margin-inline: auto; margin-top: var(--ksf-space-12); }
.holding-hero__name { margin: 0; }
.holding-hero__dates { margin-top: var(--ksf-space-12); }
.holding-hero .ksf-code.holding-hero__dates { font-size: 13px; }
.holding-hero__saying { margin-top: var(--ksf-space-32); }

/* --- bands --- */
.holding-band--ruled { border-top: var(--ksf-size-hairline) solid var(--ksf-rule-hairline); }
.holding-head > * {
  border-top: var(--ksf-size-rule) solid var(--ksf-accent-human);
  padding-top: var(--ksf-space-16);
}
.holding-head h2 { margin-top: var(--ksf-space-12); }

/* --- Sorani sizes on this page ---
   Each Sorani text is set one step below Sapphire's Sorani ramp, so
   that beside its English pair the two read as the same size (Rawaz's
   review, 21 November 2026). The headings are the exception in the
   other direction: ksf-ku-title is 22px, set for cards, and beside a
   35px Latin heading it reads as a caption. */
.holding .ksf-ku-body { font-size: 17px; }
.holding .ksf-ku-meta { font-size: 13px; }
.holding .ksf-ku-display { font-size: 30px; }
.holding .ksf-lede:lang(ckb) { font-size: 20px; }
.holding .ksf-action--ku { font-size: 12px; }
.holding h2.ksf-ku-title { font-size: 28px; line-height: 1.5; }
.holding .holding-hero__saying .ksf-ku-title { font-size: 25px; }
.holding .holding-hero .ksf-ku-meta.holding-hero__dates { font-size: 14px; }
.holding .ksf-list__item:lang(ckb),
.holding .ksf-callout--reading:lang(ckb) p { font-size: 15.5px; }

/* --- list: a plain Oxide marker (ksf-list has markers only for its
   do and don't variants) --- */
.holding-list { margin-top: var(--ksf-space-16); }
.holding-list .ksf-list__item::before {
  content: "";
  top: 19px;
  width: 6px;
  height: 6px;
  background: var(--ksf-accent-human);
}
.holding-list .ksf-list__item:lang(ckb)::before { top: 22px; }
/* The list sits inside the callout box; its last line needs no rule. */
.holding .ksf-callout .ksf-list__item:last-child { border-bottom: 0; padding-bottom: 0; }

/* --- contact band, on Evergreen --- */
.holding-contact {
  /* The action's own fill is Walnut, which has no visible edge on
     Evergreen. Here the primary action is a Bone field with a Walnut
     label; a secondary action fills the same way on hover. */
  --ksf-action-fill: var(--ksf-colour-bone);
  --ksf-action-label: var(--ksf-colour-walnut);
}
.holding-contact .ksf-action--primary:hover { color: var(--ksf-colour-bone); }
.holding-contact .holding-pair { row-gap: var(--ksf-space-48); }
.holding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ksf-space-12);
  margin-top: var(--ksf-space-32);
}
.holding-actions .ksf-action { text-align: center; display: inline-flex; align-items: center; gap: 8px; }
.holding-icon { width: 16px; height: 16px; flex: none; }
.holding-details { margin: var(--ksf-space-32) 0; }
.holding-details dd {
  margin: var(--ksf-space-4) 0 var(--ksf-space-16);
  font-family: var(--ksf-font-meta);
  font-size: 16px;
  unicode-bidi: isolate;
}
.holding-pair__ku .holding-details dd { text-align: right; }
.holding-contact__note { margin-top: var(--ksf-space-22); max-width: var(--ksf-size-measure); }
.holding-contact .ksf-body + .ksf-body,
.holding-contact .ksf-ku-body + .ksf-ku-body { margin-top: var(--ksf-space-16); }
.holding-contact a:not(.ksf-action),
.holding-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- footer --- */
.holding-footer {
  padding: var(--ksf-space-32);
  text-align: center;
}

/* --- fixes for the dark grounds (candidates for Sapphire) ---
   1. ksf-ku-meta keeps its Stone ink on a dark ground, where base.css
      lightens ksf-label and the other meta classes. Stone on Evergreen
      fails contrast, so it takes the same lightened ink here.
   2. The focus outline is Oxide, which does not stand out on Evergreen
      or Walnut. On those grounds it is Bone. */
.holding .ksf-on-evergreen .ksf-ku-meta,
.holding .ksf-on-closing .ksf-ku-meta {
  color: color-mix(in srgb, var(--ksf-ink-on-dark) 72%, transparent);
}
.holding .ksf-on-evergreen :focus-visible,
.holding .ksf-on-closing :focus-visible {
  outline-color: var(--ksf-colour-bone);
}

@media (max-width: 640px) {
  .holding-wrap { padding-inline: var(--ksf-space-22); }
  .holding-band { padding-block: var(--ksf-space-48); }
  .holding h2.ksf-heading { font-size: 29px; }
  .holding h2.ksf-ku-title { font-size: 25px; }
  .holding-footer { padding: var(--ksf-space-22); }
}
