/* N72 – content-flow additions: second links, the domains' open cue, catalogue cards and
   filters, folded sections and the notice in the Kidmat opener. Kept apart from main.css. */

/* ---------- a button with a quieter second link beside it ---------- */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.btn-row .btn { margin-top: 0 !important; }
.light .btn-row .btn.line { box-shadow: inset 0 0 0 1px var(--line-l); }
.light .btn-row .btn.line:hover { background: rgba(34, 35, 32, .05); }
.empty .btn-row { margin-top: 20px; }
.about-btn { margin-top: 30px; }
.s-text .wrap > .btn { margin-top: 26px; }

/* ---------- home: the short way on to the fund under the opportunities ---------- */
.sc-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-l);
  font-size: 17px;
  color: var(--mute-l);
}
.sc-aside .link { font-weight: 700; color: var(--black); }

/* ---------- three areas: it is clear that a card opens, also without hover ---------- */
.dom-face-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: rgba(34, 35, 32, .35);
  box-shadow: inset 0 0 0 1px rgba(185, 166, 141, .45);
  backdrop-filter: blur(6px);
  transition: background .4s ease;
}
[dir="ltr"] .dom-face-cue { padding: 8px 16px 8px 10px; }
.dom-face-cue i {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .75);
}
.dom-face-cue i::before,
.dom-face-cue i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; background: var(--white); translate: -50% -50%; }
.dom-face-cue i::after { rotate: 90deg; }
.dom-panel:hover .dom-face-cue { background: rgba(var(--accent-rgb), .55); }
/* the line under the face would sit under the cue; the cue takes its place */
.dom:not(.has-open) .dom-face::after { display: none; }

.dom-facts { display: grid; gap: 10px; max-width: 46ch; margin: 0; }
.dom-facts > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; }
.dom-facts dt {
  min-width: 52px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold);
}
.dom-facts dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--white-2); }
.dom-panel.is-open .dom-body > :nth-child(6) { transition-delay: .85s; }
.dom-panel.is-open .dom-body > :nth-child(7) { transition-delay: .95s; }
@media (max-width: 860px) {
  .dom-panel.is-open { height: auto; min-height: min(600px, 86svh); }
  .dom-panel.is-open .dom-body { position: relative; padding-top: 120px; }
  .dom-facts dd { font-size: 14px; }
}
@media (min-width: 861px) {
  /* the open card holds more text now: the logo (already on the tab) gives way to it */
  .dom-body:has(.dom-facts) .dom-logo { display: none; }
  .dom-body:has(.dom-facts) .dom-tagline { font-size: clamp(24px, 2.2vw, 32px); }
}
@media (min-width: 1100px) {
  .dom-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 60ch; }
  .dom-facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (min-width: 861px) and (max-height: 820px) {
  /* short laptop screens: keep the open card's text inside the card */
  .dom-body:has(.dom-facts) { gap: 12px; padding: 26px 32px; }
  /* the motto is on the closed card already; here the room goes to what the area offers */
  .dom-body:has(.dom-facts) .dom-tagline { display: none; }
  .dom-panel.is-open .dom-text { font-size: 15px; line-height: 1.55; }
  .dom-facts dd { font-size: 14px; }
}

/* ---------- catalogue cards: what is known, label and value ---------- */
.pcard-facts { display: grid; gap: 0; margin: 4px 0 0; }
.pcard-facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--line-d);
}
.light .pcard-facts > div { border-color: var(--line-l); }
.pcard-facts dt { font-size: 13px; color: var(--mute-d); }
.light .pcard-facts dt { color: var(--mute-l); }
.pcard-facts dd { margin: 0; font-size: 15px; font-weight: 700; text-align: end; }
.pcard-facts + .pcard-key { margin-top: 0; }
.pcard-body .pcard-meta + * { margin-top: 0; }

/* ---------- catalogue: a compact filter that grows with the catalogue ---------- */
.filter-sum { margin-top: 10px; font-size: 16px; color: var(--gold); }
.filters-fold { margin-bottom: 4px; }
.filters-fold > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  background: var(--pearl);
  box-shadow: var(--lift-l);
  cursor: pointer;
  list-style: none;
}
.filters-fold > summary::-webkit-details-marker { display: none; }
.filters-fold > summary .ico { width: 18px; height: 18px; }
.filters-fold > summary b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--white);
  background: var(--green);
}
.filters-fold > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-inline-start: 4px;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  translate: 0 -2px;
  transition: rotate .3s ease;
}
.filters-fold[open] > summary::after { rotate: 225deg; translate: 0 2px; }
.filters-fold[open] > .filters { margin-top: 14px; }

/* ---------- sections that open on request (Kidmat: street widths, planning principles) ---------- */
.fold { position: relative; }
.fold > .fold-sum {
  display: block;
  padding-block: 26px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(180deg, rgba(243, 240, 234, .04), rgba(243, 240, 234, 0));
  border-block: 1px solid var(--line-d);
}
.fold > .fold-sum::-webkit-details-marker { display: none; }
.fold > .fold-sum .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.fold-label { font-family: var(--f-title); font-size: clamp(19px, 1.6vw, 24px); font-weight: 700; line-height: 1.3; }
.fold-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  transition: background .3s ease;
}
[dir="ltr"] .fold-cue { padding: 10px 20px 10px 12px; }
.fold > .fold-sum:hover .fold-cue { background: rgba(255, 255, 255, .08); }
.fold-cue i { position: relative; width: 26px; height: 26px; border-radius: 50%; background: rgba(var(--accent-rgb), .8); }
.fold-cue i::before,
.fold-cue i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.5px; background: var(--white); translate: -50% -50%; transition: rotate .3s ease; }
.fold-cue i::after { rotate: 90deg; }
.fold[open] .fold-cue i::after { rotate: 0deg; }
.fold-close,
.fold[open] .fold-open { display: none; }
.fold[open] .fold-close { display: inline; }
.fold > .fold-sum:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.fold[open] > .fold-sum { border-bottom-color: transparent; }

/* ---------- Kidmat opener: the land is not available for building today ---------- */
.hero-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 640px;
  margin-top: 26px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--white-2);
  background: rgba(34, 35, 32, .55);
  box-shadow: inset 0 0 0 1px rgba(161, 139, 112, .4);
  backdrop-filter: blur(8px);
}
.hero-notice .ico { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--gold); }
.hero-notice b { color: var(--white); }
.hero .hero-notice + .row { margin-top: 24px; }
@media (max-width: 640px) {
  .hero-notice { font-size: 15px; padding: 12px 14px; }
}
@media (min-width: 1100px) {
  .dom-body:has(.dom-facts) { width: min(620px, 100%); }
}
@media (min-width: 861px) {
  /* the close button moves to the far corner so it never sits on the text */
  .dom-body:has(.dom-facts) .dom-close { top: 18px; inset-inline-start: auto; inset-inline-end: 18px; }
}
