/* Design tokens (DESIGN-SYSTEM.md). */
@font-face {
  font-family: "Inter";
  src: url("https://patriarkkorsord.se/assets/fonts/inter-sv.woff2?v=6157921f") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --ink: #252c25;
  --brand: #475b36;
  --brand-hover: #334327;
  --muted: #62695e;
  --rule: #dadfd5;
  --pale: #f3f5ee;
  --selected: #e4ebcf;
  --accent-on-brand: #d6dfb4;
  --focus: #245fc4;
  --error: #a82e38;
  --disabled: #aeb5a5;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1280px;
  --gutter: 24px;
  --radius-control: 5px;
  --radius-callout: 4px;
  --radius-tile: 2px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 200ms;
}

@media (max-width: 759px) {
  :root { --gutter: 20px; }
}

@media (max-width: 340px) {
  :root { --gutter: 16px; }
}

/* Base elements. */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  font-optical-sizing: none;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }

h1, h2, h3 {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1, h2 { line-height: 1.1; }
h3 { line-height: 1.3; }

img,
svg,
picture { display: block; max-width: 100%; }
img { height: auto; }

ul, ol { padding: 0; list-style: none; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

/* Links are never underlined (owner rule); state is shown by colour, weight and focus rings instead. */
a:hover,
a:focus,
a:active { text-decoration: none; }
a:hover { color: var(--brand-hover); }

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--white);
  border-radius: 2px;
}

[hidden] { display: none !important; }

::selection { background: var(--selected); color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Containers, header, mobile menu and footer. */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 1440px) {
  .container { max-width: var(--container); padding: 0; }
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main { flex: 1 0 auto; }
main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  transform: translateY(-150%);
  transition: transform var(--duration) var(--ease-out);
}

.skip-link:focus { transform: translateY(0); color: var(--white); }

/* Header (not sticky). */
.header-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 112px;
  padding-top: 30px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 2px;
}

.brand-logo { width: 297px; height: auto; }

.primary-nav { margin-right: -5px; }

.nav-list {
  display: grid;
  grid-template-columns: repeat(4, 174px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 52px;
  margin-top: -4px;
  padding-right: 16px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 400;
}

/* Underline indicator sits on the header rule area, 2px, grows from the left on hover. */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 52px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--ease-out);
}

.nav-link:hover { color: var(--brand); }
.nav-link:hover::after { transform: scaleX(0.35); }
.nav-link[aria-current="page"] { color: var(--brand); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle,
.menu-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 -10px 0 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
}

.menu-toggle .icon,
.menu-close .icon { width: 24px; height: 24px; }

@media (max-width: 1099px) {
  .nav-list { grid-template-columns: repeat(4, auto); column-gap: 24px; }
  .primary-nav { margin-right: -16px; }
  .brand-logo { flex: 0 0 auto; }
}

@media (max-width: 759px) {
  .header-inner { height: 86px; padding-top: 22px; align-items: flex-start; }
  .brand { min-height: 40px; }
  .brand-logo { width: 243px; }
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; margin-top: -2px; }
  /* Without JavaScript the footer still lists every page; the toggle only appears when it can work. */
  html:not(.js) .menu-toggle { display: none; }
}

@media (max-width: 340px) {
  .brand-logo { width: 212px; }
}

/* Mobile menu: modal surface below a duplicated header row. */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  animation: menu-in 220ms var(--ease-out);
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.menu-inner { padding-bottom: 40px; }

.menu-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 86px;
  padding-top: 22px;
  border-bottom: 1px solid var(--rule);
}

.menu-top .brand-logo { width: 243px; }
.menu-close { display: inline-flex; margin-top: -2px; }

.menu-heading {
  margin-top: 36px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.menu-list { margin-top: 26px; }

.menu-link {
  display: grid;
  grid-template-columns: 34px 1fr 44px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}

.menu-index {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.menu-arrow {
  justify-self: end;
  width: 24px;
  height: 24px;
  transition: transform var(--duration) var(--ease-out);
}

.menu-link:hover .menu-arrow,
.menu-link:focus-visible .menu-arrow { transform: translateX(4px); }
.menu-link[aria-current="page"] { color: var(--brand); }
.menu-link[aria-current="page"] .menu-index { color: var(--brand); }

.menu-note {
  margin-top: 84px;
  padding: 22px 20px 24px;
  border-radius: var(--radius-callout);
  background: var(--pale);
  color: var(--muted);
  font-size: 15px;
}

.menu-note-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
}

@media (max-height: 640px) {
  .menu-note { margin-top: 40px; }
}

/* Footer. */
.site-footer {
  margin-top: 80px;
  background: var(--pale);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(0, 1fr);
  grid-template-areas:
    "brand nav"
    "note meta";
  min-height: 240px;
  padding-top: 37px;
  padding-bottom: 40px;
  border-top: 1px solid var(--rule);
}

.footer-brand { grid-area: brand; }
.footer-logo { width: 270px; }

.footer-tagline {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.footer-nav { grid-area: nav; }

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  row-gap: 4px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 15px;
}

.footer-nav a:hover { color: var(--brand); }

.footer-note {
  grid-area: note;
  align-self: end;
  color: var(--muted);
  font-size: 15px;
}

.footer-meta {
  grid-area: meta;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 40px;
  color: var(--muted);
  font-size: 13px;
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand);
  font-weight: 500;
}

@media (max-width: 1099px) {
  .footer-inner { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .footer-nav ul { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 759px) {
  .site-footer { margin-top: 64px; }
  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "nav" "meta";
    min-height: 310px;
    padding-top: 37px;
    padding-bottom: 32px;
  }
  .footer-tagline { margin-top: 14px; }
  .footer-nav { margin-top: 28px; }
  .footer-nav ul { grid-template-columns: 177px 1fr; row-gap: 0; }
  .footer-note { display: none; }
  .footer-meta { margin-top: 12px; flex-direction: column; align-items: flex-start; gap: 0; }
  .footer-copy { margin-top: 4px; }
}

/* Parent section of the current page (e.g. a clue page under Ledtrådar). */
.nav-link[data-section="current"] { color: var(--brand); }
.nav-link[data-section="current"]::after { transform: scaleX(1); }

/* Reusable components: typography helpers, buttons, quick answer, finder, answer list, figure, FAQ. */
.kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.intro {
  color: var(--muted);
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand);
  font-weight: 600;
}

.prose .text-link { display: inline; min-height: 0; }

/* Buttons. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 188px;
  min-height: 48px;
  padding: 0 17px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--brand);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color var(--duration) var(--ease-out), transform 120ms var(--ease-out);
}

.button:hover { background: var(--brand-hover); color: var(--white); }
.button:active { background: var(--ink); color: var(--white); transform: scale(0.98); }
.button:focus-visible { border-radius: var(--radius-control); }
.button[disabled] { background: var(--disabled); cursor: not-allowed; }

.reset-button,
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  margin-left: -8px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
}

.reset-button:hover,
.text-button:hover { color: var(--brand-hover); background: var(--pale); }

.arrow-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--brand);
  font-size: 16px;
  font-weight: 600;
}

.arrow-link .icon {
  width: 24px;
  height: 24px;
  transition: transform var(--duration) var(--ease-out);
}

.arrow-link:hover .icon,
.arrow-link:focus-visible .icon { transform: translateX(4px); }

/* Quick answer panel. */
.quick-answer {
  min-height: 248px;
  padding: 24px 24px 16px;
  border-radius: var(--radius-control);
  background: var(--brand);
  color: var(--white);
}

.quick-label {
  color: var(--accent-on-brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tiles {
  display: flex;
  gap: 10px;
  margin-top: 19px;
}

.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 62px;
  border-radius: var(--radius-tile);
  background: var(--white);
  color: var(--ink);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
}

.quick-note {
  margin-top: 21px;
  max-width: 330px;
  font-size: 15px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}

.quick-link:hover { color: var(--accent-on-brand); }
.quick-link:focus-visible { outline-color: var(--white); box-shadow: 0 0 0 4px var(--focus); }

/* Finder. */
.finder {
  margin-top: 50px;
  min-height: 211px;
  padding: 23px 27px 28px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-control);
  scroll-margin-top: 16px;
}

.finder-title {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.finder-form {
  display: grid;
  grid-template-columns: 170px minmax(0, 540px) auto;
  column-gap: 24px;
  align-items: start;
  margin-top: 19px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
}

.select-wrap { position: relative; }

select,
input[type="text"] {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-callout);
  background: var(--white);
  font-size: 16px;
  transition: border-color var(--duration) var(--ease-out);
}

select {
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

select:hover,
input[type="text"]:hover { border-color: #b9c1b0; }

select:focus-visible,
input[type="text"]:focus-visible {
  border-color: var(--focus);
  outline: 2px solid var(--focus);
  outline-offset: 0;
  box-shadow: none;
}

input::placeholder { color: #737a6f; opacity: 1; }

input[aria-invalid="true"] { border-color: var(--error); }
input[aria-invalid="true"]:focus-visible { outline-color: var(--error); }

.hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.field-error {
  margin-top: 8px;
  color: var(--error);
  font-size: 14px;
  font-weight: 500;
}

.finder-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 24px;
  margin-left: 8px;
}

.finder-actions .button { justify-content: flex-start; }

/* Results and answer list (ruled rows, not cards). */
.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 808px) 420px;
  justify-content: space-between;
  column-gap: 52px;
  margin-top: 48px;
}

.results h2 { font-size: 34px; }

.result-count {
  margin-top: 21px;
  color: var(--muted);
  font-size: 13px;
}

.answer-list { margin-top: 18px; border-top: 1px solid var(--rule); }

.answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "word count"
    "kind kind"
    "note copy"
    "error error";
  column-gap: 16px;
  min-height: 118px;
  padding: 14px 0 14px;
  border-bottom: 1px solid var(--rule);
}

.answer-word {
  grid-area: word;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  user-select: text;
}

.answer-word.is-long { font-size: 24px; }

.answer-count {
  grid-area: count;
  padding-top: 8px;
  padding-right: 24px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.answer-kind {
  grid-area: kind;
  margin-top: 6px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
}

.answer-note {
  grid-area: note;
  align-self: center;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.answer-copy {
  grid-area: copy;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  align-self: end;
}

.copy-status {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.copy-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -2px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  transition: background-color var(--duration) var(--ease-out);
}

.copy-button:hover { background: var(--pale); }
.copy-button:active { background: var(--selected); }
.copy-button .icon { width: 18px; height: 18px; }
.copy-button .icon-check { display: none; }
.copy-button.is-copied .icon-copy { display: none; }
.copy-button.is-copied .icon-check { display: block; }
html:not(.js) .answer-copy { display: none; }

.copy-error {
  grid-area: error;
  margin-top: 8px;
  color: var(--error);
  font-size: 14px;
}

.answer.is-hidden { display: none; }

.empty-state {
  min-height: 190px;
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius-callout);
  background: var(--pale);
}

.empty-state h3 { font-size: 24px; line-height: 1.2; }

.empty-state p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.empty-state .text-button { margin-top: 14px; }

/* Editorial figure and feature. */
.editorial-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--pale);
}

.editorial-figure figcaption {
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
}

.feature .kicker { margin-top: 28px; }

.feature-title {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.2;
}

.feature-body {
  margin-top: 22px;
  color: var(--muted);
  font-size: 16px;
}

.feature .arrow-link { margin-top: 18px; }

/* Prose sections. */
.prose { max-width: 850px; margin-top: 56px; }

.prose-section + .prose-section { margin-top: 44px; }

.prose h2 {
  margin-bottom: 22px;
  font-size: 34px;
}

.prose p {
  color: var(--muted);
  font-size: 17px;
}

.prose p + p { margin-top: 20px; }

.length-item { margin-top: 32px; }
.length-item:first-of-type { margin-top: 30px; }

.length-item h3 {
  margin-bottom: 20px;
  font-size: 23px;
  line-height: 1.2;
}

/* FAQ disclosures. */
.faq { margin-top: 64px; }

.faq h2 {
  margin-bottom: 24px;
  font-size: 34px;
}

.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }

.faq-q { font-size: inherit; font-weight: inherit; }

.faq-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 72px;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
}

.faq-button:hover { color: var(--brand); }

.faq-button .icon {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin: 11px 4px 11px 11px;
}

.faq-button .icon-minus { display: none; }
.faq-button[aria-expanded="true"] .icon-plus { display: none; }
.faq-button[aria-expanded="true"] .icon-minus { display: block; }

.faq-a {
  max-width: 850px;
  padding-bottom: 25px;
  color: var(--muted);
  font-size: 16px;
}

/* Breadcrumb. */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb li { display: inline-flex; align-items: center; }

.breadcrumb li + li::before {
  content: "/";
  margin: 0 4px;
  color: var(--muted);
}

.breadcrumb li:first-child a { justify-content: flex-start; margin-right: -14px; }

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: -14px 0;
  color: var(--muted);
}

.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current] { color: var(--muted); }

/* Recovery CTA and source links. */
.recovery { margin-top: 60px; }
.recovery .sources-link { margin-bottom: 18px; }
.recovery .button { min-width: 211px; }

.source-links { margin-top: -6px; }
.source-links .text-link { display: inline-flex; min-height: 44px; font-weight: 500; }

/* Page templates and responsive behaviour. */

/* Home hero. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  column-gap: 52px;
  align-items: start;
  padding-top: 57px;
}

.hero h1 {
  margin-top: 6px;
  font-size: 72px;
  letter-spacing: -0.02em;
}

.h1-break { display: block; }

.hero .intro {
  max-width: 620px;
  margin-top: 26px;
  font-size: 18px;
}

.quick-answer { margin-top: 4px; }

/* Inner page heading. */
.page-head { padding-top: 46px; max-width: 1040px; }
.page-head .breadcrumb + .kicker { margin-top: 26px; }

.page-head h1 {
  margin-top: 8px;
  font-size: 58px;
  letter-spacing: -0.02em;
}

.page-head .intro {
  max-width: 850px;
  margin-top: 32px;
}

.page-inner .prose { margin-top: 44px; }

/* Name guide. */
.diagram { margin-top: 42px; }
.diagram img { width: 1000px; max-width: 100%; }

.guide-layout { margin-top: 58px; }
.guide-layout .results h2 { margin-bottom: 26px; }
.guide-layout .answer-list { margin-top: 0; }
.feature-photo { padding-top: 61px; }

/* Search help example. */
.example-panel {
  min-height: 133px;
  margin-top: 42px;
  padding: 22px 22px 24px;
  border-radius: var(--radius-callout);
  background: var(--pale);
}

.example-label {
  color: var(--brand);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.example-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}

.example-pattern { min-width: 72px; color: var(--ink); }
.example-arrow { width: 24px; height: 24px; margin: 6px 25px 0 0; }
.example-word { color: var(--brand); }

/* 404. */
.page-404 .recovery { margin-top: 40px; }
.page-404 main { padding-bottom: 120px; }

/* Tablet: stack the quick panel and the sidebar; finder may wrap. */
@media (max-width: 1099px) {
  .hero { grid-template-columns: 1fr; }
  .hero .intro { margin-top: 28px; }
  .quick-answer { margin-top: 28px; max-width: 520px; }

  .finder-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 4px;
  }
  .finder-actions { grid-column: 1 / -1; margin-left: 0; }

  .results-layout { grid-template-columns: minmax(0, 1fr); }
  .feature { max-width: 420px; margin-top: 50px; }
  .feature-photo { padding-top: 0; }
  .prose { max-width: 850px; }
}

/* Mobile. */
@media (max-width: 759px) {
  body { font-size: 17px; }

  .hero { padding-top: 40px; }
  .hero h1 { font-size: 48px; margin-top: 6px; }
  .hero .intro { margin-top: 28px; font-size: 17px; }
  .quick-answer { max-width: none; margin-top: 34px; }

  .finder { margin-top: 32px; padding: 22px 21px 24px; }
  .finder-form { grid-template-columns: 1fr; row-gap: 22px; margin-top: 24px; }
  .finder-actions { margin-top: 2px; gap: 20px; }
  .finder-actions .button { min-width: 220px; }

  .results-layout { margin-top: 44px; }
  .results h2 { font-size: 28px; }
  .result-count { margin-top: 26px; }

  .answer {
    min-height: 150px;
    padding: 14px 0 12px;
  }
  .answer-word { font-size: 25px; }
  .answer-word.is-long { font-size: 19px; padding-top: 4px; }
  .answer-count { padding-right: 24px; }
  .answer-note { font-size: 14px; margin-top: 6px; }
  .answer-copy { margin-top: 2px; }

  .feature { max-width: none; margin-top: 50px; }
  .feature-title { font-size: 28px; }

  .prose { margin-top: 48px; }
  .prose h2 { font-size: 28px; line-height: 1.5; margin-bottom: 18px; }
  .prose-section + .prose-section { margin-top: 36px; }
  .length-item h3 { font-size: 21px; margin-bottom: 14px; }

  .faq { margin-top: 56px; }
  .faq h2 { font-size: 28px; line-height: 1.4; margin-bottom: 34px; }
  .faq-button { font-size: 17px; min-height: 92px; padding: 18px 0; }

  .page-head { padding-top: 34px; }
  .page-head .breadcrumb + .kicker { margin-top: 22px; }
  .page-head h1 { font-size: 40px; }
  .page-head .intro { margin-top: 28px; }

  .diagram { margin-top: 40px; }
  .diagram img { width: 350px; max-width: 100%; }
  .guide-layout { margin-top: 48px; }
  .guide-layout .results h2 { margin-bottom: 28px; }
  .feature-photo { margin-top: 40px; }

  .example-panel { margin-top: 40px; }
  .example-pattern { min-width: 0; }
  .example-arrow { margin-right: 8px; }

  .recovery { margin-top: 48px; }
}

@media (max-width: 340px) {
  .hero h1 { font-size: 40px; }
  .page-head h1 { font-size: 34px; }
  .tiles { gap: 8px; }
  .tile { width: 50px; height: 58px; font-size: 32px; }
  .finder { padding: 20px 16px; }
  .finder-actions { flex-wrap: wrap; }
  .finder-actions .button { min-width: 0; flex: 1 1 auto; }
  .answer-count { padding-right: 8px; }
}

/* Clue hub (/ledtradar/) and clue pages (keyword plan 2026-10-08). */
.hub { margin-top: 48px; }
.hub-group + .hub-group { margin-top: 48px; }
.hub-group h2 { margin-bottom: 20px; font-size: 34px; }

.clue-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.clue-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 132px;
  padding: 20px 56px 20px 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out);
}

.clue-card:hover { border-color: var(--brand); background: var(--pale); color: var(--ink); }
.clue-card-title { font-size: 21px; font-weight: 600; line-height: 1.25; }
.clue-card-meta { color: var(--muted); font-size: 14px; }
.clue-card-words { color: var(--brand); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }

.clue-card-arrow {
  position: absolute;
  right: 20px;
  top: 22px;
  width: 22px;
  height: 22px;
  transition: transform var(--duration) var(--ease-out);
}

.clue-card:hover .clue-card-arrow,
.clue-card:focus-visible .clue-card-arrow { transform: translateX(4px); }

.hub-method {
  max-width: 850px;
  margin-top: 48px;
  color: var(--muted);
}

.clue-layout { margin-top: 48px; }

.length-card {
  align-self: start;
  padding: 22px 22px 18px;
  border-radius: var(--radius-callout);
  background: var(--pale);
}

.length-card h2 { font-size: 23px; line-height: 1.3; }

.length-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  font-size: 15px;
}

.length-table th,
.length-table td {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.length-table thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.length-table tbody th { width: 92px; font-weight: 600; font-variant-numeric: tabular-nums; }
.length-table td { color: var(--ink); overflow-wrap: anywhere; }

.link-list li + li { margin-top: 2px; }
.link-list .text-link { display: inline-flex; min-height: 44px; }
.prose .link-list + p { margin-top: 12px; }

@media (max-width: 1099px) {
  .length-card { margin-top: 40px; max-width: 520px; }
}

@media (max-width: 759px) {
  .hub-group h2 { font-size: 28px; }
  .clue-cards { grid-template-columns: 1fr; }
  .length-card { max-width: none; }
}
