/* Prague winter guide — components. Mobile first, RTL only, light only; every value is a token from tokens.css.
   The page's character lives here as reusable parts: the salmon action with its ink offset, the hand-drawn
   highlighter, paper ellipses, luggage stamps and the line-ruled FAQ. */

/* Every pressable thing: no grey tap flash, no double-tap zoom delay, one focus ring. */
.co-btn, .co-icon-btn, .co-acc-trigger { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.co-btn:focus-visible, .co-icon-btn:focus-visible, .co-acc-trigger:focus-visible, .co-input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Input rings stay inside the field so scroll containers cannot clip them. */
.co-input:focus-visible { outline-offset: -3px; }

/* ---------- Button ---------- */
.co-btn {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5); border: 1.5px solid var(--ink); border-radius: var(--radius-md);
  background: var(--surface-raised); color: var(--ink); font: 700 18px/1.3 var(--font-display); text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
}
.co-btn svg { flex: none; width: 20px; height: 20px; }
/* Primary: purchase and access actions. Salmon with an ink offset; lifts to rose on hover, sinks when pressed. */
.co-btn-primary { background: var(--salmon); box-shadow: var(--shadow-offset); font-weight: 800; }
.co-btn-primary:active { transform: translate(2px, 2px); box-shadow: var(--shadow-offset-sm); }
.co-btn-ghost { border-color: transparent; background: transparent; font: 700 18px/1.3 var(--font-sans); }
.co-btn-ghost:active { background: var(--rose-strong); }
.co-btn-sm { min-height: 44px; padding: 0 var(--space-3); }
.co-btn-lg { min-width: min(100%, 260px); min-height: 56px; padding: 0 var(--space-6); font-size: 20px; }
.co-btn-block { display: flex; width: 100%; }
@media (min-width: 768px) { .co-btn-lg { min-height: 60px; font-size: 22px; } }
@media (hover: hover) and (pointer: fine) {
  .co-btn-primary:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-offset-lg); background: var(--rose); }
  .co-btn-primary:active { transform: translate(2px, 2px); box-shadow: var(--shadow-offset-sm); }
  .co-btn-ghost:hover { background: var(--rose); }
}
.co-btn[disabled], .co-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.co-btn[aria-busy="true"] { cursor: wait; }

/* Icon-only control (dialog close): 44×44, accessible name on the element. */
.co-icon-btn {
  box-sizing: border-box; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-warm); border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--ink); cursor: pointer;
  transition: background-color .14s ease;
}
.co-icon-btn svg { width: 20px; height: 20px; }
.co-icon-btn:active { background: var(--rose-strong); }
@media (hover: hover) and (pointer: fine) { .co-icon-btn:hover { background: var(--rose); } }

/* ---------- Badge (pills) ---------- */
.co-badge {
  box-sizing: border-box; display: inline-flex; align-items: center; gap: var(--space-1); min-height: 34px; padding: 0 var(--space-4);
  border-radius: var(--radius-pill); background: var(--beige); color: var(--ink); font: 700 15px/1.35 var(--font-sans);
}
.co-badge strong { font-weight: 800; }
.co-badge-rose { background: var(--rose); }
/* Launch-price tags use the secondary rose surface; salmon stays on actions. */
.co-badge-offer { min-height: 38px; padding: 0 var(--space-4); border-radius: var(--radius-md); background: var(--rose); font: 700 17px/1.35 var(--font-display); }
@media (min-width: 768px) { .co-badge { font-size: 16px; } .co-badge-offer { font-size: 19px; } }

/* ---------- Section heading ---------- */
.co-heading { display: flex; flex-direction: column; gap: var(--space-3); max-width: var(--measure); }
.co-heading-center { align-items: center; margin-inline: auto; text-align: center; }
.co-eyebrow { margin: 0; color: var(--accent); font: 700 17px/1.4 var(--font-display); }
.co-title { margin: 0; color: var(--ink); font: 800 clamp(32px, 7vw, 52px)/1.15 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
.co-title-hero { font-size: clamp(40px, 9vw, 64px); font-weight: 900; line-height: 1.12; letter-spacing: -0.02em; }
.co-lead { margin: 0; color: var(--ink); font: 400 clamp(19px, 4.6vw, 22px)/1.6 var(--font-sans); text-wrap: pretty; }
/* Hand-drawn highlighter: a slightly tilted rose stroke behind the second beat of a headline. */
.co-mark { position: relative; isolation: isolate; display: inline-block; }
.co-mark::before { content: ""; position: absolute; inset: 59% -5px 1px; z-index: -1; background: var(--rose); transform: rotate(calc(-1 * var(--tilt))); }
@media (min-width: 768px) { .co-eyebrow { font-size: 18px; } }

/* ---------- Paper ellipse ---------- */
/* A hand-cut oval with a dashed inner outline; the paper tilts, its content stays level. */
.co-blob {
  --blob-tilt: var(--tilt);
  position: relative; isolation: isolate; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  padding: var(--space-5) var(--space-4); border-radius: var(--shape-blob-a); background: var(--beige); text-align: center;
  transform: rotate(var(--blob-tilt));
}
.co-blob::after { content: ""; position: absolute; inset: 7px; border: 1px dashed var(--stamp); border-radius: inherit; opacity: .6; pointer-events: none; }
.co-blob > * { position: relative; z-index: 1; margin: 0; transform: rotate(calc(-1 * var(--blob-tilt))); }
.co-blob-rose { --blob-tilt: calc(-1 * var(--tilt)); border-radius: var(--shape-blob-b); background: var(--rose); }
.co-blob svg { width: 32px; height: 32px; color: var(--accent); }
.co-blob h3 { font: 700 19px/1.25 var(--font-display); }
.co-blob p { font: 400 17px/1.4 var(--font-sans); }
@media (min-width: 768px) { .co-blob { padding: var(--space-6) var(--space-5); } .co-blob svg { width: 34px; height: 34px; } .co-blob h3 { font-size: 21px; } .co-blob p { font-size: 18px; } }

/* ---------- Luggage stamp ---------- */
/* Three cuts of the same stamp: framed card, double-ruled oval, clipped ticket. Each has the dashed inner rule. */
.co-stamp {
  position: relative; isolation: isolate; box-sizing: border-box; padding: var(--space-5) var(--space-5);
  border: 2px solid var(--stamp); border-radius: var(--shape-stamp); background: var(--surface-raised); box-shadow: var(--shadow-stamp); text-align: center;
}
.co-stamp::before { content: ""; position: absolute; inset: 7px; border: 1px dashed var(--stamp); border-radius: inherit; pointer-events: none; }
.co-stamp > * { position: relative; z-index: 1; }
.co-stamp-oval { padding: var(--space-6) var(--space-5); border: 4px double var(--stamp); border-radius: var(--shape-oval); background: var(--rose); }
.co-stamp-ticket { border-radius: var(--shape-ticket); background: var(--beige); }
.co-stamp h3 { margin: 0 0 var(--space-2); font: 700 20px/1.35 var(--font-display); color: var(--ink); }
.co-stamp p { margin: 0; font: 400 18px/1.5 var(--font-sans); color: var(--ink); }
@media (min-width: 768px) { .co-stamp h3 { font-size: 21px; } .co-stamp p { font-size: 19px; } }

/* ---------- Accordion (FAQ): ruled rows, rose when open ---------- */
.co-acc { display: grid; width: 100%; }
.co-acc-item { min-width: 0; border-top: 1px solid var(--line); }
.co-acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 56px; margin-block: var(--space-1);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--ink); font: 700 19px/1.4 var(--font-sans);
  list-style: none; cursor: pointer; transition: background-color .14s ease, color .14s ease;
}
.co-acc-trigger::-webkit-details-marker { display: none; }
.co-acc-trigger:active { background: var(--rose-strong); }
@media (hover: hover) and (pointer: fine) { .co-acc-trigger:hover { background: var(--rose); color: var(--accent); } }
.co-acc-chev { display: grid; flex: none; place-items: center; width: 28px; height: 28px; color: var(--accent); transition: transform .14s ease; }
.co-acc-chev svg { width: 20px; height: 20px; }
.co-acc-item[open] > .co-acc-trigger { background: var(--rose); color: var(--accent); }
.co-acc-item[open] .co-acc-chev { transform: rotate(180deg); }
.co-acc-body { padding: var(--space-2) var(--space-3) var(--space-4); }
.co-acc-body p { margin: 0; font: 400 18px/1.6 var(--font-sans); }
.co-acc-body a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
@media (min-width: 768px) { .co-acc-trigger { font-size: 20px; } .co-acc-body p { font-size: 19px; } }

/* ---------- Form ---------- */
.co-label { font: 700 18px/1.4 var(--font-sans); color: var(--ink); }
.co-input {
  box-sizing: border-box; width: 100%; min-height: 52px; padding: 0 var(--space-4);
  border: 1px solid var(--stamp); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font: 400 18px/1.4 var(--font-sans);
}
.co-input::placeholder { color: var(--ink-muted); }
.co-help { margin: 0; color: var(--ink-muted); font: 400 var(--text-small)/1.5 var(--font-sans); }
.co-status { margin: 0; color: var(--ink-muted); font: 600 var(--text-small)/1.5 var(--font-sans); }
.co-status:empty { display: none; }
.co-status[data-tone="error"] { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--danger); }
.co-status[data-tone="error"]::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Dialog: centred card from 768px, bottom sheet on phones ---------- */
dialog.co-sheet {
  box-sizing: border-box; width: min(480px, calc(100% - var(--space-6))); max-height: calc(100dvh - var(--space-6));
  padding: var(--space-6); border: 1px solid var(--line-warm); border-radius: var(--radius-xl);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-dialog); overflow: auto; overscroll-behavior: contain;
}
dialog.co-sheet:focus { outline: none; }
dialog.co-sheet::backdrop { background: var(--scrim); backdrop-filter: blur(3px); }
@media (max-width: 767px) {
  dialog.co-sheet {
    width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0;
    padding: var(--space-3) var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom));
    border-width: 1px 0 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  dialog.co-sheet::before { content: ""; display: block; width: 40px; height: 5px; margin: 0 auto var(--space-3); border-radius: var(--radius-pill); background: var(--line-warm); }
}
/* The page never scrolls behind an open modal dialog or sheet. */
html:has(dialog:modal) { overflow: hidden; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .co-btn, .co-icon-btn, .co-acc-trigger, .co-acc-chev { transition: none; }
  .co-btn:hover, .co-btn:active { transform: none; }
}
