/* SuccessPathGuru Smart Text Summarizer - screen sizes and printing. */

/* Phones: menu behind a button (only when JavaScript runs; without it the menu simply wraps). */
@media (max-width: 899px) {
  .header-row { flex-wrap: wrap; }
  .js .site-nav { display: none; flex-basis: 100%; padding-bottom: .6rem; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: .75rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { flex-basis: 100%; padding-bottom: .5rem; }
  .theme-btn .theme-text { display: none; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { order: 2; margin-left: auto; }
  .theme-btn { order: 3; margin-left: .3rem; }
}

@media (max-width: 460px) {
  body { font-size: 1rem; }
  .brand { font-size: 1rem; }
  .brand img { width: 30px; height: 30px; }
  .tool { padding: .85rem; border-radius: var(--radius); }
  .sheet textarea { min-height: 13rem; padding-left: 2.2rem; }
  .seg { grid-template-columns: 1fr; }
  .opt label { min-height: 48px; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; }
  .time-grid { grid-template-columns: 1fr; }
  .time-cell { display: flex; justify-content: space-between; align-items: baseline; }
  .results-actions .btn { flex: 1 1 45%; }
  .btn-primary { flex-basis: 100%; }
}

@media (min-width: 760px) {
  .tool { padding: 1.6rem; }
  .results-body { padding: .4rem 1.6rem 1.2rem; }
  .results-head, .results-actions, .share-menu, .highlight-wrap, .result-note { padding-left: 1.6rem; padding-right: 1.6rem; }
}

@media (min-width: 1040px) {
  .tool-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
  .tool-grid .settings .choices:first-child { margin-top: 0; }
  .tool-grid .seg { grid-template-columns: 1fr; }
  .tool-grid .seg.modes { grid-template-columns: 1fr 1fr; }
  .sheet textarea { min-height: 24rem; }
}

@media (forced-colors: active) {
  .opt input:checked + label { outline: 2px solid CanvasText; }
  .highlight mark.picked { forced-color-adjust: none; background: Mark; color: MarkText; }
}

/* Save as PDF / print: only the result card is printed. */
@media print {
  :root, :root[data-theme="dark"], :root[data-theme="light"] {
    --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --muted: #333; --line: #bbb;
    --mark: #fff3c4; --mark-line: #c99700; --accent: #9A4F0A; --gold: #7A4F00; --ok: #1F7A43;
  }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .crumbs, .hero, .tool, .soon, .content, .history, .ad-slot,
  .results-actions, .share-menu, .highlight-wrap, .skip, noscript { display: none !important; }
  .results { display: block !important; margin: 0; }
  .results-card { border: 0; box-shadow: none; }
  .results-head { padding: 0 0 .4rem; }
  .results-body { padding: 0; }
  .r-block { break-inside: avoid; }
  .print-head { display: block !important; margin-bottom: .6rem; font-size: 10pt; color: #333; }
  .result-note { padding: .6rem 0 0; }
  a { color: #000; }
}
.print-head { display: none; }
