/* Cobito · hub pages (builder 1): /spanish, /spanish/phrases, /spanish/phrase-of-the-day.
   Sits on top of pages.css (same header, fonts, colors, tag, signpost, dark panel, footer). One reading column, a bit wider. */

.hub-page { display: block; max-width: 888px; }
.hub-page .intro { max-width: 720px; }
.hub-page .body section { margin-top: 64px; }
.hub-page .more { margin-top: 14px !important; font-weight: 700; }

/* plain link lists, steps, comparison cards */
.links li { padding: 12px 0; border-top: 1px solid var(--line); }
.links li:last-child { border-bottom: 1px solid var(--line); }
.links a { font-weight: 700; }
.steps { counter-reset: s; }
.steps li { position: relative; padding: 10px 0 10px 44px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 30px; height: 30px; border-radius: 50%; background: var(--manila); font: 800 15px/30px var(--display); text-align: center; }
.dcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dcard { padding: 16px 18px; background: var(--card) var(--noise); border-radius: 4px; box-shadow: 0 0 0 1px var(--line), 0 3px 0 rgba(122, 77, 42, .12); }
.dcard-h { font-size: 19px; }
.dcard p + p { margin-top: 6px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }

/* tables (levels, 10 to start with) */
.tbl { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.4; }
.tbl th { padding: 8px 10px 8px 0; text-align: left; font: 700 13px/1.3 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 10px 10px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl-start td:first-child { font-weight: 700; }
.tbl-play { width: 52px; padding: 0 !important; vertical-align: middle !important; }
.tbl a, .rows a { font-weight: 700; }

/* phrase rows by situation: Spanish — English ▶ */
.rows li { padding: 9px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows li > span[lang], .rows li > a { font-weight: 700; }
.rows .play-i { vertical-align: middle; margin: -10px 0; }

/* /spanish · the town map: real links pinned over a paper map (a list under it on phones) */
.map { position: relative; margin-top: 28px; }
.map-img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.pins li { position: absolute; transform: translate(-50%, -50%); }
.pins a { display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; align-items: center; padding: 0 14px 0 12px; border-radius: 30px; background: var(--card); box-shadow: 0 0 0 1.5px var(--ink), 0 3px 0 1.5px var(--ink); color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 15px; transition: transform .15s; }
.pins a:hover { transform: translateY(-2px); }
.pins b { font: 800 14px/1 var(--display); color: var(--accent); }
.pin-cafe { left: 20%; top: 47%; } .pin-market { left: 80%; top: 45%; } .pin-street { left: 50%; top: 32%; }
.pin-bus { left: 26%; top: 93%; } .pin-home { left: 80%; top: 92%; }

/* /spanish/phrases · the 10 phrase pages as price tags on a string */
.ptags { margin-top: 30px; }
.ptags ul { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 14px; padding-top: 26px; }
.ptags ul::before { content: ""; position: absolute; left: -1%; right: -1%; top: 4px; height: 18px; border-top: 2px solid #D8CBB4; border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: scaleY(-1); }
.ptag a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 8px 12px; text-align: center; text-decoration: none; color: var(--ink); isolation: isolate;
  filter: drop-shadow(0 3px 0 rgba(122, 77, 42, .22)); transform-origin: 50% -20px; rotate: var(--r, 0deg); transition: rotate .3s; }
.ptag a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise), var(--tc, var(--manila)); clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px); }
.ptag a::after { content: ""; position: absolute; left: 50%; top: 7px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(15, 26, 43, .4); }
.ptag:nth-child(3n+1) a { --r: -2deg; } .ptag:nth-child(3n+2) a { --r: 1.5deg; --tc: #F6E7C2; } .ptag:nth-child(3n) a { --r: -.8deg; --tc: #EBD9B2; }
.ptag a:hover, .ptag a:focus-visible { --r: 0deg; }
.ptag img { width: 100%; height: auto; aspect-ratio: 360 / 234; object-fit: cover; border-radius: 3px; }
.ptag-es { margin-top: 8px; font: 800 15px/1.2 var(--display); letter-spacing: -.01em; }
.ptag-en { margin-top: 3px; font-size: 14px; line-height: 1.3; color: #6B4B22; }

/* Say it yourself / today's tag in the reading column */
.hub-say { margin-top: 40px; }
.hub-tag { max-width: 380px; margin: 0 auto; }
.say-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin-top: 14px !important; }
.card-say-n { display: block; font-size: 14px; color: #6B4B22; }
.card-note { margin-top: 12px; font-size: 16px; line-height: 1.45; color: var(--ink-2); text-align: left; }
.card-more-p { margin-top: 4px; }
.card-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.card[data-mode="say"] .card-note, .card[data-mode="say"] .card-more-p { display: none; }

/* /spanish/phrase-of-the-day */
.potd-date { margin-top: 6px; font: 700 15px/1.3 var(--display); color: var(--ink-2); }
.potd { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; margin-top: 18px; }
.potd-scene img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.potd-audio { display: flex; gap: 4px 22px; flex-wrap: wrap; margin-top: 8px; }
.potd-q { margin-bottom: 70px !important; text-align: center; }
.potd-hidden { margin-top: 14px !important; text-align: center; color: var(--ink-2); }
.yest { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.yest img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.yest-form { margin-top: 10px; max-width: 420px; }
.yest-out { margin-top: 8px; min-height: 1.5em; }
.week summary { display: inline-flex; align-items: center; min-height: 44px; font: 700 15px/1 var(--display); color: var(--accent); cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.week ul { margin-top: 8px; }
.week li { padding: 8px 0; border-top: 1px solid var(--line); }
.week li a { font-weight: 700; }
.wk-en { color: var(--ink-2); }
.week .play-i { vertical-align: middle; margin: -10px 0; }

@media (max-width: 759px) {
  .hub-page .body section { margin-top: 52px; }
  .dcards { grid-template-columns: 1fr; }
  .pins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .pins li { position: static; transform: none; }
  .pins a { width: 100%; white-space: normal; flex-wrap: wrap; padding: 8px 12px; line-height: 1.2; }
  .ptags ul { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .ptags ul::before { display: none; }
  .tbl { font-size: 15px; } .tbl th { font-size: 14px; letter-spacing: 0; } .tbl td, .tbl th { padding-right: 8px; }
  .potd { grid-template-columns: 1fr; }
  .potd-q { margin-bottom: 64px !important; }
  .yest { grid-template-columns: 1fr; }
  .yest img { max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) { .ptag a { rotate: 0deg !important; } }
.hub-page .more a { display: inline-flex; align-items: center; min-height: 44px; }
.say-nav .lnk { gap: 6px; }
