/* Sympathy - this page's own rules, in the order the page is read. New pieces are named by id; classes come from site.css. */

/* The opening: the sentence under the h1 sits a line below it. */
.burs .buro + p { margin-top: 1rem; }

/* #forhome, #forservice, #pricedintro: the text under each headline runs in two columns where the panel is wide. */
#forhome > div, #forservice > div, #pricedintro > div {
  columns: 2 16rem;
  column-gap: 2rem;
}
#forhome p, #forservice p, #pricedintro p { break-inside: avoid; }

/* #pricedintro sits right above the two price rows. The rows are site.css .bura, stepped by price, given a pale panel here. */
#pricedintro { margin-bottom: var(--space-between-blocks); }
main > .bura {
  background: var(--colour-of-the-panels);
  padding: var(--space-inside-a-panel);
  align-items: center;
}
main > .bura p { margin: 0; }

/* #cardspread: words, the folded card, the numbered choices, then the five lines to copy. */
#cardspread {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "words" "folded" "choices" "copyable";
  gap: var(--space-between-blocks);
}
#cardwords { grid-area: words; }
#foldedcard { grid-area: folded; }
#numberrow { grid-area: choices; }
#fivelines { grid-area: copyable; }
@media (min-width: 56em) {
  #cardspread {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    grid-template-areas:
      "words folded"
      "words choices"
      "copyable copyable";
  }
}

/* #foldedcard: two flat panels with the green showing between them as the fold; blank left, written right. On phones the fold runs across. */
#foldedcard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(7rem, auto) auto;
  gap: 0.5rem;
  min-height: 15rem;
}
#foldedcard > div { background: var(--colour-of-the-panels); }
#foldedcard > div::before {
  content: "";
  display: block;
  width: var(--length-of-the-bar);
  height: var(--thickness-of-the-bar);
  background: var(--colour-of-the-sunflower);
}
/* #inscription: the one line the card carries, in the text face at a size to be read across a table. */
#inscription {
  display: flex;
  align-items: center;
  margin: 0;
  padding: var(--space-inside-a-panel);
  background: var(--colour-of-the-panels);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
@media (min-width: 30em) {
  #foldedcard {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: none;
    min-height: clamp(14rem, 30vh, 19rem);
  }
}

/* #numberrow: five flat numbers in one row; with no script they would do nothing, so they stay out. */
#numberrow { display: flex; flex-wrap: wrap; gap: 0.5rem; align-content: start; }
#numberrow .buru { min-width: 2.75rem; font-size: var(--size-of-the-text); }
html:not(.js) #numberrow { display: none; }

/* #fivelines: the same five lines as plain text, set in columns so the wide panel is filled. */
#fivelines ol {
  margin: 0;
  padding-left: 1.5em;
  columns: 2 20rem;
  column-gap: 2rem;
}
#fivelines li { margin-bottom: 0.6em; break-inside: avoid; }

/* #callthere: the hand-off on the yellow panel; its hover fill turns ink so a link still answers on yellow. */
#callthere > div { display: grid; gap: 1rem 2rem; align-items: start; }
#callthere a:hover, #callthere a:focus-visible {
  background-color: var(--colour-of-the-ink);
  color: var(--colour-of-the-sunflower);
}
@media (min-width: 56em) {
  #callthere > div { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
