/* =====================================================================
   tense-lesson.css — the 12 tense lesson pages and the tense chart, in the tenses-pillar
   design. Works on top of the styles those pages take from /tenses-lessons.html
   (lq-core.css, tech-skills.css, the inline ts- and tl- rules) and of daily-english.css
   (de-wrap tables, de-note, de-card, de-faq, the listen button). Tokens: --card, --line,
   --muted, --ink, --ts-c. Sizes follow the site type scale. Prefix: tn-
   ===================================================================== */

/* hero: the formula and the jump bar */
.tn-formula{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin-top:16px;padding:12px 16px;border:1px solid color-mix(in srgb,var(--ts-c) 26%,transparent);
  border-radius:14px;background:color-mix(in srgb,var(--ts-c) 8%,transparent);font-size:1.0625rem;line-height:1.45;color:var(--ink)}
.tn-formula b{font-size:.8125rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ts-c)}
.tn-formula span{font-weight:700}
.tn-jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.tn-jump b{align-self:center;margin-right:2px;font-size:.8125rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.tn-jump a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:var(--card);
  font-size:.8125rem;font-weight:600;color:var(--ink);text-decoration:none;white-space:nowrap}
.tn-jump a:hover{border-color:var(--ts-c);color:var(--ts-c)}
.tn-jump a:focus-visible{outline:2px solid var(--ts-c);outline-offset:2px}

/* structure table: the form name in the first column */
.tl-table.tn-structure td{width:40%}
.tl-table.tn-structure td:first-child{width:20%;white-space:normal}

/* uses: one card per row */
.tn-uses{display:grid;gap:14px}
.tn-use ul{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:6px}
.tn-use li{position:relative;padding-left:18px;font-size:1.0625rem;line-height:1.55;color:var(--ink)}
.tn-use li::before{content:"";position:absolute;left:2px;top:.68em;width:6px;height:6px;border-radius:50%;background:var(--ts-c)}

/* common mistakes: wrong, right, why */
.tl-table.tn-mistakes td:first-child{white-space:normal;font-weight:600;color:#b42318;text-decoration:line-through;text-decoration-color:color-mix(in srgb,#b42318 45%,transparent)}
.tl-table.tn-mistakes td:nth-child(2){font-weight:700;color:#15803d}
.tl-table.tn-mistakes td{width:30%}
.tl-table.tn-mistakes td:last-child{width:40%}
.tl-table.tn-compare td{width:34%}
.tl-table.tn-compare td:first-child{white-space:normal}
.tl-table.tn-compare td:last-child{width:32%;color:var(--muted)}
.tl-table.tn-signals td:first-child{width:28%}

/* translation practice and the exercise */
.tn-list{margin:0;padding:0;list-style:none;display:grid;gap:8px;counter-reset:tn}
.tn-list > li{counter-increment:tn;position:relative;padding:12px 16px 12px 52px;border:1px solid var(--line);border-radius:14px;background:var(--card);font-size:1.0625rem;line-height:1.55;color:var(--ink)}
.tn-list > li::before{content:counter(tn);position:absolute;left:14px;top:12px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  font-size:.8125rem;font-weight:700;color:var(--ts-c);background:color-mix(in srgb,var(--ts-c) 12%,transparent)}
.tn-list details{margin-top:6px}
.tn-list summary,.tn-answers > summary{display:inline-flex;align-items:center;min-height:36px;font-size:.8125rem;font-weight:700;color:var(--ts-c);cursor:pointer}
.tn-list summary:focus-visible,.tn-answers > summary:focus-visible{outline:2px solid var(--ts-c);outline-offset:2px;border-radius:6px}
.tn-list details p{margin:2px 0 0;font-weight:700}
.tn-answers{margin-top:14px;padding:8px 16px;border:1px solid color-mix(in srgb,var(--ts-c) 22%,transparent);border-radius:14px;background:color-mix(in srgb,var(--ts-c) 6%,transparent)}
.tn-answers ol{margin:4px 0 10px;padding-left:24px;display:grid;gap:4px;font-size:1.0625rem;line-height:1.5;color:var(--ink)}
.tn-answers ol li::marker{font-weight:700;color:var(--ts-c)}
.tn-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.tn-tools .ts-btn{min-height:44px}

/* the Hinglish summary that was already on the lesson */
#lessonHinglish{max-width:none;margin:16px 0 0;padding:0}

/* the interactive lesson (lq-core) moved into the page */
#tnPracticeSlot .tn-off{display:none !important}
#tnPracticeSlot > div > .mesh-bg{display:none}

/* previous and next tense */
.tn-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tn-nav a{display:block;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:var(--card);text-decoration:none;color:var(--ink)}
.tn-nav a:hover{border-color:var(--ts-c)}
.tn-nav a:focus-visible{outline:2px solid var(--ts-c);outline-offset:2px}
.tn-nav small{display:block;font-size:.8125rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ts-c)}
.tn-nav b{display:block;margin-top:4px;font-size:1.1875rem;font-weight:700}
.tn-nav a.tn-next{text-align:right}

/* tense chart */
.tl-table.tn-chart td:first-child{white-space:nowrap}
.tl-table.tn-chart td{font-size:.9375rem}
.tn-print-only{display:none}

@media (max-width:760px){
  .tn-jump{flex-wrap:nowrap;overflow-x:auto;margin-right:-20px;padding:2px 20px 6px 0;scrollbar-width:none}
  .tn-jump::-webkit-scrollbar{display:none}
  .tl-table.tn-structure td,.tl-table.tn-mistakes td,.tl-table.tn-compare td,.tl-table.tn-signals td{width:auto !important}
  .tn-nav{grid-template-columns:minmax(0,1fr)}
  .tn-nav a.tn-next{text-align:left}
  .tn-tools .ts-btn{flex:1 1 auto;justify-content:center}
}

/* print: the chart page prints as a clean chart (use the browser's "Save as PDF") */
@media print{
  @page{size:A4 landscape;margin:9mm}
  body.tn-chart-page{background:#fff !important}
  body.tn-chart-page > header,body.tn-chart-page > footer,body.tn-chart-page .mesh-bg,body.tn-chart-page .toast,body.tn-chart-page .scroll-top,
  body.tn-chart-page #scrollTop,body.tn-chart-page .cookie-banner,body.tn-chart-page [class*="consent"],body.tn-chart-page .tn-no-print,
  body.tn-chart-page .ts-hero,body.tn-chart-page .de-say,body.tn-chart-page .tl-links{display:none !important}
  body.tn-chart-page::before,body.tn-chart-page::after{display:none !important}
  body.tn-chart-page main,body.tn-chart-page main section{max-width:none !important;margin:0 !important;padding:0 !important}
  body.tn-chart-page .tn-print-only{display:block}
  body.tn-chart-page .tn-print-title{margin:0 0 1mm;font-size:14pt;font-weight:700;color:#000}
  body.tn-chart-page .tn-print-note{margin:0 0 3mm;font-size:8.5pt;color:#333}
  body.tn-chart-page .ts-sec{margin:0 0 2mm}
  body.tn-chart-page .ts-sec h2{font-size:11pt;color:#000}
  body.tn-chart-page .ts-sec p{display:none}
  body.tn-chart-page .tl-wrap{border:0;border-radius:0;overflow:visible;background:none}
  body.tn-chart-page .tl-table{font-size:8pt;line-height:1.25}
  body.tn-chart-page .tl-table th,body.tn-chart-page .tl-table td{padding:1.1mm 1.8mm;border:.3mm solid #999 !important;color:#000 !important;background:none !important}
  body.tn-chart-page .tl-table th{background:#eee !important;font-size:7.6pt;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.tn-chart-page .tl-table a{color:#000 !important;text-decoration:none}
  body.tn-chart-page .tl-table tr{break-inside:avoid}
  body.tn-chart-page .tn-print-break{break-before:page}
  /* always the table layout on paper, whatever the window width was */
  body.tn-chart-page .tl-table{display:table !important;width:100%}
  body.tn-chart-page .tl-table thead{display:table-header-group !important;position:static !important;width:auto;height:auto;clip:auto;overflow:visible}
  body.tn-chart-page .tl-table tbody{display:table-row-group !important}
  body.tn-chart-page .tl-table tr{display:table-row !important;margin:0;border:0;border-radius:0;background:none}
  body.tn-chart-page .tl-table th,body.tn-chart-page .tl-table td{display:table-cell !important}
  body.tn-chart-page .tl-table td::before{display:none !important}
  body.tn-chart-page .tl-table td:first-child{white-space:nowrap !important}
  body.tn-chart-page #be-consent,body.tn-chart-page #tense-chart > .ts-sec,body.tn-chart-page [id*="scroll"]{display:none !important}
}
