@import url("scams-drawings.css");

/* "Avoid scams" (src/pages/scams.js). Shared parts come from parts.css; colours are tokens from
   site.css only. Read carefully, often on a phone: text stays at 1.05rem or more and lines stay
   short. Each scam: the story on the left, the warning sign (coral) and the check (gold card) on
   the right; the cases "on the record" below. The game is plain text without its script. */

/* ---------- head */
.scams-head__title { max-width: 24ch; }
.scams-head__asof { margin-top: 1.3rem; font-weight: 650; color: var(--ink); }
.scams-head__facts { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.7rem; max-width: 46rem; }
.scams-head__fact { padding-left: 1.2rem; border-left: 3px solid var(--sea); font-size: 1.06rem; line-height: 1.6; }
.scams-head__fx { margin-top: 0.8rem; max-width: 44rem; font-size: 0.98rem; color: var(--ink-soft); }
.scams-note {
  margin-top: 1.6rem; max-width: 44rem; padding: 1rem 1.3rem 1.15rem;
  background: var(--card); border: 2px dashed var(--coral-deep); border-radius: 6px 16px 8px 18px;
}
.scams-note__label { font-family: var(--font-hand); font-weight: 700; font-size: 1.55rem; line-height: 1.1; color: var(--coral-deep); }
.scams-note__text { margin-top: 0.3rem; font-size: 1.06rem; line-height: 1.6; }

.scams-toc { margin-top: 2rem; max-width: 46rem; }
.scams-toc__title { font-family: var(--font-body); font-size: 0.86rem; font-weight: 650; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.6rem; }
.scams-toc__list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem 0.7rem; counter-reset: toc; }
.scams-toc__link {
  display: inline-block; padding: 0.45rem 0.95rem; font-weight: 600; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--wobble);
}
.scams-toc__link:hover { background: color-mix(in srgb, var(--gold-light) 35%, var(--card)); color: var(--ink); }

/* ---------- the scams */
.scams-patterns { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.scams-list { list-style: none; margin: 0; padding: 0; }
.scams-case__title { display: flex; align-items: flex-start; gap: 0.8rem; font-size: clamp(min(1.45rem, 7.2vw), 2.4vw, 1.9rem); margin: 0; }

/* ---------- folds: each scam, and the glossary, is a native <details>, closed on arrival. The closed
   summary carries the lesson (title, one warning sign, one check); the drawn button is the DR vs USA
   page's: plus when closed, minus when open. */
.scams-fold { border-top: 2px dashed var(--rule); }
.scams-case:last-child .scams-fold { border-bottom: 2px dashed var(--rule); }
.scams-fold__summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.6rem;
  padding: 1.3rem 0.5rem 1.35rem; border-radius: 6px;
}
.scams-fold__summary::-webkit-details-marker { display: none; }
.scams-fold__summary::marker { content: ""; }
.scams-fold__summary:hover { background: color-mix(in srgb, var(--gold-light) 18%, transparent); }
.scams-fold__summary:hover .scams-case__title { color: var(--gold-deep); }
.scams-fold__summary:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.scams-fold__text { display: grid; gap: 0.55rem; min-width: 0; }
.scams-fold__line { display: flex; align-items: flex-start; gap: 0.55rem; max-width: 46rem; font-size: 1.05rem; line-height: 1.5; padding-left: 3.3rem; }
.scams-fold__line .scams-icon { width: 1.3rem; height: 1.3rem; margin-top: 0.12rem; }
.scams-fold__label { font-weight: 700; }
.scams-fold__line--warn .scams-fold__label { color: var(--coral-deep); }
.scams-fold__line--check .scams-fold__label { color: var(--ink); }
.scams-fold__mark { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 650; color: var(--ink); }
.scams-fold__sign {
  position: relative; flex: none; width: 2.8rem; height: 2.8rem;
  background: var(--gold); border: 2px solid var(--ink); border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  box-shadow: 2px 3px 0 var(--ink);
}
.scams-fold__sign::before, .scams-fold__sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1.15rem; height: 3px; border-radius: 2px;
  background: var(--ink); transform: translate(-50%, -50%);
}
.scams-fold__sign::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.2s ease; }
.scams-fold[open] .scams-fold__sign { background: var(--card); }
.scams-fold[open] .scams-fold__sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.scams-fold__word--close, .scams-fold[open] .scams-fold__word--open { display: none; }
.scams-fold[open] .scams-fold__word--close { display: inline; }
.scams-fold__body { padding: 1.2rem 0 2.8rem; }
.scams-fold--glossary { border-bottom: 2px dashed var(--rule); }
.scams-glossary__title { margin: 0; }
/* the glossary fold and the source fold sit one under the other, without a band of space between */
.scams-glossary.section { padding-bottom: 0; }
.scams-glossary + .sources { padding-top: 0; }
.scams-glossary + .sources .scams-fold--sources { border-top: 0; }
.scams-fold--sources { border-bottom: 2px dashed var(--rule); }
.scams-fold--sources .sources__title { margin: 0; }
.scams-fold--sources .scams-fold__summary { padding-block: 0.8rem; }
.scams-fold--sources[open] > .scams-fold__summary { margin-bottom: 0.8rem; }
.scams-case__n {
  display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; margin-top: -0.1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  background: var(--gold); border: 2px solid var(--ink); border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
}
.scams-case__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.6rem 2.4rem; align-items: start; }
.scams-case__heading, .scams-record__heading {
  font-family: var(--font-body); font-size: 0.86rem; font-weight: 650; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 0.75rem;
}
.scams-story { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; font-size: 1.07rem; line-height: 1.68; }
.scams-story__item { position: relative; padding-left: 1.2rem; }
.scams-story__item::before {
  content: ""; position: absolute; left: 0; top: 0.8em; width: 0.6rem; height: 2.5px;
  background: var(--gold); border-radius: 2px;
}
.scams-case__more { margin-top: 1.1rem; }
.scams-more { font-weight: 600; text-decoration-color: var(--gold-deep); text-underline-offset: 0.2em; }
.scams-more::after { content: " \2192"; }

/* "How it can go": a pattern told without a case */
.scams-pattern {
  margin-bottom: 1.2rem; padding: 1rem 1.2rem; max-width: 42rem;
  background: var(--card); border: 2px solid var(--ink-soft); border-radius: 8px 14px 6px 16px;
}
.scams-pattern__label { font-family: var(--font-hand); font-weight: 700; font-size: 1.45rem; line-height: 1.1; color: var(--gold-deep); }
.scams-pattern__text { margin-top: 0.3rem; font-size: 1.07rem; line-height: 1.62; font-style: italic; }
.scams-gap { margin-block: 0 1.3rem; }

/* the warning sign and the check */
/* minmax(0, 1fr), not the implicit column: that one grew to its longest word on a phone with large text */
.scams-case__side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.scams-warn {
  padding: 1.1rem 1.3rem 1.2rem;
  background: color-mix(in srgb, var(--coral) 9%, var(--card));
  border: 2px solid var(--coral-deep); border-radius: 8px 16px 6px 14px;
}
.scams-check {
  padding: 1.2rem 1.35rem 1.35rem;
  background: color-mix(in srgb, var(--gold-light) 18%, var(--card));
  border: 2px solid var(--ink); border-radius: var(--wobble); box-shadow: 5px 6px 0 var(--gold);
}
.scams-warn__title, .scams-check__title { display: flex; align-items: center; gap: 0.55rem; font-size: 1.28rem; margin-bottom: 0.8rem; }
.scams-warn__title { color: var(--coral-deep); }
.scams-warn__list, .scams-check__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; font-size: 1.06rem; line-height: 1.6; }
.scams-warn__item { position: relative; padding-left: 1.2rem; }
.scams-warn__item::before { content: "!"; position: absolute; left: 0.1rem; top: 0; font-weight: 800; color: var(--coral-deep); }
.scams-check__item { position: relative; padding-left: 2rem; font-weight: 500; }
.scams-check__item::before {
  content: ""; position: absolute; left: 0; top: 0.22em; width: 1.15rem; height: 1.15rem;
  background: var(--card); border: 2px solid var(--ink); border-radius: 3px 5px 2px 4px;
}

.scams-icon { width: 1.7rem; height: 1.7rem; flex: none; overflow: visible; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.scams-icon--flag { stroke: var(--coral-deep); }
.scams-icon--check { stroke: var(--ink); }
.scams-icon--check path + path { stroke: var(--gold-deep); stroke-width: 3.2; }

/* the cases on the record */
.scams-record { margin-top: 1.8rem; }
.scams-record__note { font-size: 0.98rem; color: var(--ink-soft); margin: -0.35rem 0 0.9rem; max-width: 46rem; }
.scams-record__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1.1rem; }
.scams-record__case { padding: 1rem 1.15rem 1.1rem; background: var(--card); border: 1.5px solid var(--rule); border-left: 4px solid var(--sea); border-radius: 4px 10px 6px 12px; }
.scams-record__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; margin-bottom: 0.45rem; }
.scams-record__title { font-family: var(--font-display); font-weight: 650; font-size: min(1.12rem, 5.6vw); overflow-wrap: break-word; }
.scams-record__place { font-size: 0.92rem; color: var(--ink-soft); }
.scams-record__text { font-size: 1.02rem; line-height: 1.6; }
.scams-record__status { margin-top: 0.6rem; padding-top: 0.55rem; border-top: 1.5px dashed var(--rule); font-size: 0.98rem; line-height: 1.55; }
.scams-record__label { font-weight: 650; color: var(--sea-deep); }
.scams-record__see { margin-top: 1.4rem; font-size: 1.02rem; }
.scams-case__foot { margin-top: 1.2rem; }
.scams-case__back { font-size: 0.97rem; color: var(--ink-soft); }

/* a Spanish term linked to its glossary entry */
.scams-term { text-decoration-style: dotted; text-decoration-thickness: 2px; text-decoration-color: var(--gold-deep); }

/* ---------- the illustrator's drawings: their frame, stills and notes are in scams-drawings.css
   (imported above); here only their place on the page */
.scams-scene { margin: 0 0 1.4rem; }
.scams-game .scams-scene { max-width: 46rem; }

/* ---------- red flags */
.scams-flags__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 0.9rem 1.2rem; }
.scams-flag {
  display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.9rem 1rem;
  background: var(--card); border: 1.5px solid var(--coral-deep); border-radius: 6px 12px 5px 14px;
  font-size: 1.04rem; line-height: 1.55;
}
/* the text beside the icon may shrink below its longest word (a flex item does not by default) */
.scams-flag__text { min-width: 0; overflow-wrap: anywhere; }
.scams-flag .scams-icon { width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; }

/* ---------- the checklist */
.scams-checklist .section__title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; min-width: 0; overflow-wrap: break-word; }
.scams-checklist .section__title .scams-icon { width: 2.1rem; height: 2.1rem; }
.scams-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; max-width: 52rem; }
/* at a large text size on a narrow phone an auto column grew to its longest words (the page was
   564 px wide at 320 px with 24 px text): the columns keep to the screen and long words break */
.scams-steps, .scams-warn__list, .scams-check__list { grid-template-columns: minmax(0, 1fr); }
.scams-step__in, .scams-warn__item, .scams-check__list > li { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
/* the words beside a number or an icon are flex items: they may shrink below their longest word */
.scams-step__words, .scams-case__words, .game__words, .scams-fold__line > span:not(.scams-icon) { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
/* a heading's words wrap whole, as every heading's (site.css; "esta-fas" read badly, 2026-11-22) */
.scams-step__words, .scams-case__words { hyphens: manual; }
.scams-step__in {
  padding: clamp(1.1rem, 3vw, 1.6rem); background: var(--card);
  border: 2px solid var(--ink); border-radius: 6px 12px 5px 14px; box-shadow: 5px 6px 0 var(--gold);
}
.scams-step__title { display: flex; align-items: flex-start; gap: 0.7rem; font-size: clamp(min(1.3rem, 6.6vw), 2.4vw, 1.6rem); margin-bottom: 0.9rem; }
.scams-step__n {
  display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; margin-top: -0.1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 52% 46% 55% 44% / 47% 55% 45% 53%;
}
.scams-step__facts { margin: 0; display: grid; gap: 0; }
.scams-step__row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.2rem 1.2rem; padding: 0.65rem 0; border-top: 1.5px dashed var(--rule); }
.scams-step__row dt { font-weight: 650; color: var(--ink-soft); }
.scams-step__row dd { margin: 0; font-size: 1.06rem; line-height: 1.6; }
.scams-step__gap { margin-block: 0.8rem 0; }
/* the owner's open question: shown in review mode only (.review-only, parts.css) */
.scams-owner { margin-top: 0.9rem; padding: 0.9rem 1.1rem; background: var(--paper-deep); border: 2px dashed var(--gold-deep); border-radius: 8px 12px 6px 14px; }
.scams-owner__title { font-size: 1.1rem; margin-bottom: 0.4rem; }

/* ---------- if it happened to you */
.scams-help__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.2rem; }
.scams-help__card { padding: 1.2rem 1.3rem 1.3rem; background: var(--card); border: 2px solid var(--ink); border-radius: var(--wobble); box-shadow: 4px 5px 0 var(--sea); }
.scams-help__title { font-size: 1.3rem; margin-bottom: 0.7rem; }
.scams-help__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; font-size: 1.05rem; line-height: 1.6; }

/* ---------- check us the same way */
.scams-us__body { max-width: 44rem; display: grid; gap: 0.7rem; font-size: 1.12rem; line-height: 1.6; }
.scams-us__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; margin-top: 1.4rem; }
.scams-us__offers { font-weight: 600; }

/* ---------- the game. Without its script every answer shows; with it, the answer opens once chosen. */
.game { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 50rem; }
.game { grid-template-columns: minmax(0, 1fr); }
.game__item { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.game__item { padding: 1rem 1.2rem 1.1rem; background: var(--card); border: 2px solid var(--ink); border-radius: 6px 14px 8px 12px; }
.game__q { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 1.1rem; line-height: 1.55; font-weight: 550; }
.game__n {
  display: grid; place-items: center; flex: none; width: 2rem; height: 2rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  background: var(--gold-light); border: 2px solid var(--ink); border-radius: 50%;
}
.game__choices { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; padding-left: 2.7rem; }
.game__choices[hidden] { display: none; }
.game__btn {
  font: inherit; font-weight: 650; font-size: 1rem; padding: 0.45rem 1.05rem; cursor: pointer; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--wobble); box-shadow: 2px 3px 0 var(--ink);
}
.game__btn--flag:hover, .game__btn--flag:focus-visible { background: color-mix(in srgb, var(--coral) 18%, var(--paper)); }
.game__btn--fine:hover, .game__btn--fine:focus-visible { background: color-mix(in srgb, var(--palm) 18%, var(--paper)); }
.game__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.game__btn[disabled] { cursor: default; opacity: 0.55; box-shadow: none; }
.game__btn.is-picked { opacity: 1; outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.game__feedback { padding-left: 2.7rem; font-family: var(--font-hand); font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.game__feedback:empty { display: none; }
.game__feedback.is-right { color: var(--palm); }
.game__feedback.is-wrong { color: var(--coral-deep); }
.game__item.is-right .game__feedback, .game__item.is-wrong .game__feedback { margin-top: 0.6rem; }
.game__answer { margin-top: 0.7rem; padding-left: 2.7rem; font-size: 1.04rem; line-height: 1.6; }
.game__answer[hidden] { display: none; }
.game__label { font-weight: 650; color: var(--ink-soft); }
.game__verdict { display: inline-block; padding: 0.05rem 0.55rem; font-weight: 700; font-size: 0.92rem; border: 1.5px solid; border-radius: 999px; }
.game__verdict--flag { color: var(--coral-deep); background: var(--paper); } /* 4.9:1; on a coral tint it was 4.4 */
.game__verdict--fine { color: var(--palm-deep); background: color-mix(in srgb, var(--palm) 12%, var(--paper)); } /* 5.2:1 */
.game__score { margin-top: 1.3rem; font-family: var(--font-hand); font-weight: 700; font-size: 1.9rem; line-height: 1.1; color: var(--gold-deep); }
.game__score[hidden] { display: none; }
/* "Play again" waits hidden until the game is played (.btn sets a display that would beat `hidden`) */
.game__again .btn[hidden] { display: none; }
.game__again { margin-top: 0.8rem; }

/* ---------- glossary (the shared .facts grid) */
.scams-glossary__list { max-width: 58rem; }
.scams-glossary__list dt { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.scams-glossary__list dd { line-height: 1.6; }
.scams-glossary__list dt:target, .scams-glossary__list dt:target + dd { background: color-mix(in srgb, var(--gold-light) 40%, transparent); }

/* ---------- smaller screens */
@media (max-width: 62rem) {
  .scams-case__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 48rem) {
  .scams-step__row { grid-template-columns: minmax(0, 1fr); }
  .scams-step__row dt { font-size: 0.92rem; }
  .scams-check, .scams-warn { padding-inline: 1.05rem; }
  .game__choices, .game__feedback, .game__answer { padding-left: 0; }
  /* on a phone the button keeps its sign only, and the summary lines take the whole width */
  .scams-fold__word { display: none !important; }
  /* the button sits beside the title only; the warning and the check run under both, full width */
  .scams-fold__summary { padding-inline: 0.2rem; gap: 0.6rem 0.8rem; align-items: start; }
  .scams-fold__text { display: contents; }
  .scams-fold__summary .scams-case__title, .scams-fold__summary .section__title, .scams-fold__summary .sources__title { grid-column: 1; grid-row: 1; align-self: center; }
  .scams-fold__mark { grid-column: 2; grid-row: 1; }
  .scams-fold__line { grid-column: 1 / -1; padding-left: 0; font-size: 1rem; }
}

/* a narrow phone (also any phone at a large text size): a scam's number and a step's number above
   their words, and the fold's sign under the title, so a long word keeps the whole line */
@media (max-width: 30rem) {
  .scams-case__title, .scams-step__title { flex-direction: column; gap: 0.35rem; }
  .scams-fold__summary { grid-template-columns: minmax(0, 1fr); }
  .scams-fold__mark { grid-column: 1; grid-row: auto; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .scams-toc__link, .game__btn, .scams-fold__sign::after { transition: none; }
}

/* ---------- print: the shared print rules (parts.css) do colours, header, chat and source
   addresses; this page drops its screen-only parts and shows every game answer */
@media print {
  .scams-toc, .scams-case__foot, .scams-scene, .scams-us__actions, .game__choices, .game__feedback, .game__score, .game__again, .scams-fold__mark { display: none !important; }
  .game__answer[hidden] { display: block !important; }
  /* every fold open on paper: the script opens them on beforeprint; this covers a browser that
     prints without running it */
  .scams-fold::details-content { content-visibility: visible; display: block; block-size: auto; }
  /* parts.css prints each source's address after its title. Two newspapers put an accused person's
     name in the address itself, and this page names no one: those two print their title only (the
     address stays the link target on screen). */
  .sources__item[data-source="acento-2023-07-16-titulos"] a::after,
  .sources__item[data-source="end-2026-07-13-punta-cana"] a::after { content: none !important; }
  .scams-case__grid { grid-template-columns: minmax(0, 1fr); }
  .scams-check, .scams-warn, .scams-record__case, .scams-step__in, .scams-flag, .scams-help__card, .game__item { break-inside: avoid; }
  .scams-term { text-decoration-color: currentColor; }
}
