/* W1's adaptations (CR-050, AD-63): only what the Main board does not draw.
   home.css is the board's port and is never edited by hand. Nothing here
   changes the page at 1440 or 1280 px; the board gate shows it. */

/* The page's landmark wraps the board's sections without boxing them. */
#main {
  display: contents;
}

/* Skip to content: off screen until focused. */
.skip-link {
  position: absolute;
  inset-inline-start: -10000px;
  top: 0;
}
.skip-link:focus {
  inset-inline-start: 12px;
  top: 12px;
  z-index: 10;
}

/* The sample notice above the board while wave 1 shows leadership's
   example content (KD-125), in the board's own colours and type. */
.home-sample {
  background: #FBEBCB;
  border-bottom: 1px solid #E7D5BF;
  padding: 12px 40px;
  text-align: center;
}
/* A whole number of pixels at 1440 and at the 1280 zoom (54 and 48), so
   the board below it stays on the pixel grid the gate compares. */
@media (min-width: 1200px) {
  .home-sample {
    box-sizing: border-box;
    block-size: 54px;
    padding-block: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.home-sample p {
  margin: 0;
  font-family: 'Ignite Geometric', 'URW Gothic', 'URW Gothic L', 'Century Gothic', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  color: #45372A;
}

/* From 1200 to 1439 px the 1440 composition scales as a whole (AD-63).
   Browsers without typed arithmetic take the nearest step below. */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  html {
    zoom: 0.8333;
  }
}
@media (min-width: 1280px) and (max-width: 1439.98px) {
  html {
    zoom: 0.8888;
  }
}
@media (min-width: 1360px) and (max-width: 1439.98px) {
  html {
    zoom: 0.9444;
  }
}
@supports (width: calc(100vw / 1440px * 1px)) {
  @media (min-width: 1200px) and (max-width: 1439.98px) {
    html {
      zoom: calc(100vw / 1440px);
    }
  }
}

/* From 1440 px, the board centred, its ground running to the edges. */
@media (min-width: 1440.02px) {
  .b-1lxtkwo {
    max-width: 1440px;
    margin-inline: auto;
  }
}

/* A member's links, shown in place of the visitor's once member.js marks
   the page (WEB-08, AD-28). */
[data-for-member] {
  display: none !important;
}
html[data-member] [data-for-member] {
  display: revert !important;
}
html[data-member] [data-for-visitor] {
  display: none !important;
}
html[data-member] .btn-gold[data-for-member],
html[data-member] .btn-line[data-for-member],
html[data-member] .btn-ring[data-for-member] {
  display: inline-flex !important;
}
html[data-member] .door[data-for-member] {
  display: flex !important;
}

/* The header's search: the board draws a field; a real input lies over it,
   and the board's words show until something is typed. */
.home-search {
  display: contents;
}
.home-search .sfield {
  position: relative;
}
.home-search input {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  box-sizing: border-box;
  padding-inline: 46px 18px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  font: inherit;
  color: inherit;
  appearance: none;
}
.home-search input:focus {
  outline: none;
}
.home-search .sfield:focus-within {
  outline: 3px solid #985C06;
  outline-offset: 3px;
}
.home-search .sfield:has(input:not(:placeholder-shown)) .b-1ggp0ik {
  visibility: hidden;
}

/* Find's search: the board draws it holding its words; a real input lies
   over them, its own letters showing once it has focus. */
.b-030zcf6 input {
  color: transparent;
  caret-color: currentColor;
}
.b-030zcf6 input:focus {
  color: inherit;
}
.b-030zcf6:focus-within .b-0r3puog {
  visibility: hidden;
}

/* Under 1200 px, until the home's 1024 and 390 px boards are drawn (AD-63):
   the board's composition reflows, its words and photos unchanged, so the
   page reads at 1024 px, at 320 px and at 200 percent zoom. */
/* The header as the Main board is redrawn for Join Igniteopedia (CR-066),
   its three rules from the board's current port: `home.css` stays the port
   CR-050 made until S07.7.2b.11 ports Main again, which moves them there
   (the new port drops classes the wave 1 footer still uses). */
.b-1xxtbr7 { padding: 0 40px; height: 84px; display: flex; align-items: center; gap: 20px; }
.b-019dwhc { display: flex; gap: 18px; align-items: center; }
.b-1r9j49f { width: 176px; height: 40px; }

@media (max-width: 1199.98px) {
  .b-1xxtbr7 {
    height: auto;
    min-height: 72px;
    padding: 12px 24px;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .b-019dwhc {
    flex-wrap: wrap;
    gap: 4px 18px;
  }
  .b-00pool8 {
    flex-wrap: wrap;
  }
  .b-1r9j49f,
  .b-1sqbvy6 {
    height: 44px;
  }
  .b-1d54lpf {
    height: auto;
    padding: 8px 24px 64px;
    overflow-x: clip;
  }
  .home-search input {
    inset: -2px;
  }
  .b-055bcyv,
  .b-01wykjw {
    padding-block: 5px;
  }
  .b-1upj9jt {
    font-size: clamp(28px, 10.6vw, 142px);
  }
  .b-09mznqe {
    width: auto;
    max-width: 640px;
  }
  .b-12af5b8 {
    white-space: normal;
    font-size: clamp(15px, 2.2vw, 25px);
    letter-spacing: 0.2em;
  }
  .b-1sziavn {
    font-size: clamp(21px, 2.6vw, 31px);
  }
  .b-1evft6z {
    flex-wrap: wrap;
    gap: 14px;
  }
  .b-1jmbe83 {
    position: relative;
    left: auto;
    top: auto;
    margin: 32px auto 0;
    zoom: 0.9;
  }
  .b-0c6r60o,
  .b-1io2oed,
  .b-085ybw8,
  .b-14uzd9l,
  .b-15qrkbk {
    padding-inline: 24px;
  }
  .b-1v9zt5b {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .b-07kha8y {
    white-space: normal;
    letter-spacing: 0.2em;
  }
  .b-1navxxm {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  /* A live or translated title may be 40 percent longer: the card grows
     (S07.7.2b.5; AD-26). */
  .b-1vsyc7q {
    height: auto;
    min-height: 150px;
  }
  .feat > img {
    position: absolute;
    inset: 0;
  }
  /* The words keep the board's side of the card, over its gradient. */
  .b-16hnl47,
  .b-0yfjx6p {
    position: relative;
    inset: auto;
    min-height: 150px;
    box-sizing: border-box;
  }
  .b-16hnl47 {
    margin-inline: 16px 40%;
    padding-block: 16px;
  }
  /* The board sets this card's words at its top, over the play ring. */
  .b-0yfjx6p {
    margin-inline: 44% 16px;
    padding-block: 12px 56px;
  }
  .b-1io2oed {
    flex-direction: column;
    align-items: flex-start;
  }
  .b-03bc3wt {
    inline-size: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 18px 8px;
  }
  .b-1xpgg6o {
    white-space: normal;
    text-align: center;
    font-size: 14px;
  }
  .b-1bcrgrj {
    padding: 36px 24px 26px;
  }
  .b-18fzx36,
  .b-1rljl38 {
    text-align: center;
  }
  .b-18fzx36 {
    font-size: clamp(30px, 5vw, 58px);
  }
  .b-0hvmvwd,
  .b-1rtzn90,
  .b-1hzu66w,
  .b-05ociuv,
  .b-0dih217 {
    white-space: normal;
    letter-spacing: 0.18em;
    text-align: center;
  }
  .b-0acabhr,
  .b-0n2ivtp,
  .b-02z7b2j,
  .b-1pe5xeh,
  .b-1327avw,
  .b-1fr5iu0,
  .b-15oy0yv,
  .b-104zvth {
    width: 40px;
  }
  .b-0808t81 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .b-0097nb8 {
    white-space: normal;
  }
  .b-1gqm5z1 {
    font-size: clamp(32px, 5.2vw, 60px);
  }
  .b-012aun1 {
    height: 44px;
  }
  .b-0ui5v4r,
  .b-0odv6rv,
  .b-1vag532 {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .b-1swmp7b {
    white-space: normal;
  }
  .b-1kvty2z {
    right: -12px;
  }
  .b-1205fuf {
    font-size: clamp(30px, 4.7vw, 54px);
    text-align: center;
  }
  .b-0flzyp2 {
    font-size: 20px;
    letter-spacing: 0.16em;
  }
  .b-1n84ijx {
    grid-column: 1 / -1;
    padding-inline-start: 0;
  }
  .b-0b9c2fg,
  .b-1ig17ts,
  .b-03238wi {
    padding-inline: 28px;
    letter-spacing: 0.16em;
  }
  .b-1xwjpyz {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 22px;
    gap: 14px;
  }
  .b-056uufy {
    width: auto;
    height: 2px;
  }
  .b-0a00hh1 {
    white-space: normal;
  }
  .b-0p6y56z {
    height: auto;
    padding-bottom: 56px;
  }
  .b-1yjck1q {
    position: relative;
    inline-size: 100%;
    height: 280px;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent);
    mask-image: linear-gradient(180deg, #000 62%, transparent);
  }
  .b-164q4it {
    margin-inline-start: 0;
    padding: 16px 24px 0;
  }
  .b-0orclp9 {
    font-size: clamp(40px, 7vw, 88px);
  }
  .b-0c7avp2 {
    font-size: clamp(19px, 2.4vw, 27px);
  }
  .b-0c7avp2 br {
    display: none;
  }
  .b-18pvsms {
    min-width: 0;
    height: 60px;
    padding: 0 32px;
    font-size: 17px;
    letter-spacing: 0.16em;
  }
  .b-1tsl74u {
    padding: 28px 24px 32px;
  }
}

/* Under 900 px a gallery's words sit above its stories. */
@media (max-width: 899.98px) {
  .b-1gy0wzv {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
  }
  .b-0zukt83 {
    width: auto;
  }
  .b-0xkbq4b {
    width: auto;
    height: 2px;
    margin: 0;
  }
  .b-1kvty2z {
    position: static;
    transform: none;
    align-self: flex-end;
  }
}

/* Phones: the header's parts take their own rows, the hero's photos scale
   to the width, and the cards take the whole width. */
@media (max-width: 767.98px) {
  .b-1fmtbh4 {
    display: none;
  }
  .b-019dwhc {
    order: 3;
    inline-size: 100%;
  }
  .b-00pool8 {
    margin-inline-start: 0;
    inline-size: 100%;
  }
  .b-1r9j49f {
    flex: 1 1 100%;
    width: auto;
  }
  .b-1jmbe83 {
    zoom: 0.5;
  }
  .b-0808t81 {
    grid-template-columns: minmax(0, 1fr);
  }
  .b-0i8kaus {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  }
  .b-1mykjq9 {
    width: 220px;
    height: 220px;
  }
  .b-0ui5v4r,
  .b-0odv6rv,
  .b-1vag532 {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .b-1navxxm {
    grid-template-columns: minmax(0, 1fr);
  }
  .b-0hs4zkr {
    gap: 12px;
  }
  .b-1n84ijx {
    gap: 16px;
  }
  .b-03238wi,
  .b-1ig17ts,
  .b-0b9c2fg {
    padding-inline: 18px;
    letter-spacing: 0.1em;
  }
  .b-0gevt3s {
    min-width: 0;
  }
  .b-0a00hh1 {
    font-size: 16px;
    letter-spacing: 0.06em;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 419.98px) {
  .b-1jmbe83 {
    zoom: 0.34;
  }
}
@supports (width: calc(100vw / 1440px * 1px)) {
  @media (max-width: 1199.98px) {
    .b-1jmbe83 {
      zoom: min(0.9, calc((100vw - 48px) / 790px));
    }
  }
}
/* A featured card with no photo (S07.7.2b.5): the board's ink, the darkest
   stop of its gradient, so the white words keep their contrast. The board
   draws every card with a photo. */
.feat-bare {
  background: rgb(25, 14, 5);
}

/* The wordmark filled with C23's photograph (S07.7.2b.4; reopen point 15),
   in place of the board's painted gold when one is chosen: the board's own
   darkening layer over the photo, and the board's ink (its `color`) under it, the stage's ink fallback, so the
   letters show while the photo loads or if it fails. */
.wordmark-photo {
  background-image:
    linear-gradient(180deg, rgba(35, 24, 15, .18), rgba(35, 24, 15, .05) 45%, rgba(35, 24, 15, .22)),
    var(--wordmark-fill),
    linear-gradient(currentColor, currentColor);
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
}


/* The member's search field keeps its 232 px, as CR-066 draws the member's
   header (the visitor's is 176 px, to fit Join Igniteopedia); S07.7.2b.12
   places the redrawn header on every page. */
@media (min-width: 1200px) {
  html[data-member] .b-1r9j49f {
    width: 232px;
  }
}
