/* What changed? Page styles on top of theme.css. Built by Suman Mukherjee. */
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.stamp.cobalt { color: var(--cobalt); }
.stamp.ink { color: var(--ink); }
.h3 { font-size: 17px; font-weight: 700; font-variation-settings: "wdth" 105; color: var(--ink); }

/* Inputs */
.try { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 16px; }
.inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(var(--gap) * 1.2); }
.side-in { min-width: 0; border-radius: var(--radius); }
.side-in.drop textarea { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-wash); }
.side-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; margin-bottom: 6px; }
.file-row { display: inline-flex; gap: 8px; align-items: center; position: relative; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; left: 0; top: 0; }
.file-input:focus-visible + label { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.file-row label.btn { cursor: pointer; }
.side-in textarea { min-height: 230px; font-size: 13px; }
.file-status { min-height: 1.4em; margin: 6px 0 0; overflow-wrap: anywhere; }
.go { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; margin-top: 14px; }
.privacy { margin: 0; max-width: 72ch; flex: 1 1 360px; }
.progress { display: flex; gap: 12px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.progress progress { width: min(360px, 100%); height: 10px; accent-color: var(--cobalt); }
#message { margin-top: 14px; }

/* Results */
.res-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px; margin-bottom: 12px; }
.res-head h2 { margin: 0 0 4px; font-size: clamp(21px, 2.2vw, 26px); font-weight: 750; font-variation-settings: "wdth" 110; }
.counts { margin: 0; color: var(--ink-2); max-width: 70ch; }
.counts b { color: var(--ink); }
.export { justify-content: flex-end; }
.notice.caution { border-left-color: var(--ink); background: var(--sheet); margin: 0 0 12px; }
#layout-warn { margin: 0 0 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.chip { appearance: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; cursor: pointer; min-height: 32px; }
.chip span { color: var(--ink-2); font-weight: 500; margin-left: 2px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: #dfe5ec; }
.changes { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.item { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 6px 14px; padding: 12px 0 13px; border-bottom: 1px solid var(--rule); align-items: start; }
.item .stamp { font-size: 11px; padding: 2px 6px 1px; border-width: 2px; justify-self: start; margin-top: 3px; }
.item .title { margin: 0; font-weight: 650; font-size: 16px; overflow-wrap: anywhere; }
.item .meta { margin: 2px 0 0; color: var(--ink-2); }
.item .snip { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }

/* Full comparison */
.cmp-h { margin: 34px 0 6px; font-size: clamp(19px, 2vw, 23px); font-weight: 750; font-variation-settings: "wdth" 110; }
.results .sub { margin: 0 0 10px; color: var(--ink-2); max-width: 72ch; }
.show-same { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 10px; cursor: pointer; }
.show-same input { width: 18px; height: 18px; accent-color: var(--cobalt); }
del { background: var(--deny-wash); color: var(--ink); text-decoration: line-through; text-decoration-color: var(--deny); text-decoration-thickness: 1.5px; }
ins { background: var(--allow-wash); color: var(--ink); text-decoration: underline; text-decoration-color: var(--allow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cmp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; font-size: 13px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 10px 6px; border-bottom: 2px solid var(--ink); position: sticky; top: 0; background: var(--paper); z-index: 2; }
.compare { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 22px; padding: 10px 10px 12px; border-bottom: 1px solid var(--rule-2); border-left: 4px solid transparent; scroll-margin-top: 48px; }
.row:focus { outline: none; }
.row:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -3px; }
.row .where { grid-column: 1 / -1; color: var(--ink-2); font-size: 12.5px; }
.row .kind { font-weight: 700; margin-left: 6px; }
.row.k-changed { border-left-color: var(--cobalt); background: var(--sheet); }
.row.k-added { border-left-color: var(--allow); background: var(--sheet); }
.row.k-removed { border-left-color: var(--deny); background: var(--sheet); }
.row.k-moved, .row.k-movedFrom { border-left-color: var(--review); }
.row.k-moved { background: var(--sheet); }
.k-added .kind { color: var(--allow); } .k-removed .kind { color: var(--deny); } .k-moved .kind, .k-movedFrom .kind { color: var(--review); } .k-minor .kind { color: var(--ink-3); font-weight: 600; }
.cell { min-width: 0; }
.cell .txt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.55; }
.cell .side, .cell .side.both { display: none; }
.none { margin: 0; color: var(--ink-3); font-style: italic; font-size: 13.5px; }
.moved-text del { background: none; text-decoration: none; color: var(--ink-2); }
.moved-note { display: block; color: var(--review); margin-top: 4px; }
.fold { padding: 8px 10px; border-bottom: 1px solid var(--rule-2); }
.fold-body { margin-top: 8px; }
.row.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: var(--review-wash); } 100% { background: var(--sheet); } }
@media (prefers-reduced-motion: reduce) { .row.flash { animation: none; background: var(--review-wash); } }

/* Evaluation */
.eval-main h3, .eval-h3 { margin: 18px 0 4px; }
#eval-table, #eval-all { max-width: 920px; }
#eval-table tr.total td { font-weight: 700; border-top: 1.5px solid var(--ink); }
#eval-all td:first-child .muted { display: block; font-weight: 400; }
#eval-all td:first-child { font-weight: 600; }
.eval-notes { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: calc(var(--gap) * 1.4); margin-top: 18px; }
.eval-notes h3 { margin-top: 10px; }
.eval-notes ul { padding-left: 18px; margin: 6px 0 12px; }
.eval-notes li { margin-bottom: 5px; }
.how-note { margin: 14px 0 0; }

.why { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: calc(var(--gap) * 1.4); }
.limits ul { padding-left: 18px; margin: 8px 0 0; }
.limits li { margin-bottom: 6px; }
.credit .tiny a { color: var(--ink-2); }

@media (max-width: 860px) {
  .inputs, .why, .eval-notes { grid-template-columns: minmax(0, 1fr); }
  .side-in textarea { min-height: 170px; }
}
/* Phones: Before and After stack inside each row */
@media (max-width: 720px) {
  .cmp-cols { display: none; }
  .row { grid-template-columns: minmax(0, 1fr); padding: 10px 8px 12px; gap: 6px; }
  .cell .side { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); margin-bottom: 2px; }
  .row.k-same .cell.after, .row.k-same .side.one { display: none; }
  .cell .side.both { display: block; }
  .item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .export { justify-content: flex-start; }
}
@media (max-width: 480px) {
  table.data { font-size: 13px; }
  table.data th, table.data td { padding: 7px 5px; }
  .steps li { border-right: 0; padding-left: 0 !important; }
}

/* Print: the list and the comparison only */
@media print {
  body { background: #fff; font-size: 12px; }
  .skip, .bench, #eval, .section:not(.results), .credit nav, .export, .filters, .show-same, .fold button, .byline span:last-child { display: none !important; }
  .results { display: block !important; border: 0; padding-top: 8px; }
  .masthead { border-bottom: 1px solid #000; padding: 0 0 8px; }
  .masthead .lede { display: none; }
  .row, .item { break-inside: avoid; }
  .row { background: #fff !important; }
  .cmp-cols { position: static; }
  del, ins { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}

/* Does it affect me? */
.impact { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 2px solid var(--ink, #16243a); }
.new-tag { display: inline-block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; background: #2443c7; color: #fff; padding: .15rem .45rem; margin-right: .4rem; vertical-align: middle; }
.impact-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem 1.2rem; margin: 1rem 0; }
.impact-form .fact { display: flex; flex-direction: column; gap: .3rem; }
.impact-form .fact[hidden] { display: none; }
.impact-form label { font-weight: 600; font-size: .95rem; }
.impact-form input, .impact-form select { font: inherit; padding: .6rem .7rem; min-height: 44px; border: 1px solid #c9d3de; background: #fff; color: #16243a; width: 100%; box-sizing: border-box; }
.impact-form .btn-row { grid-column: 1 / -1; align-items: center; }
.impact-rows { list-style: none; padding: 0; margin: 1rem 0; }
.imp-row { border-top: 1px solid #c9d3de; padding: 1rem 0; }
.imp-head { display: flex; gap: 1rem; align-items: flex-start; }
.imp-head .stamp { flex: none; }
.imp-row .title { font-weight: 700; margin: 0 0 .25rem; }
.imp-row .why { margin: 0; }
.imp-row .needs { margin: .3rem 0 0; color: #a35f00; }
.imp-pass { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .7rem; }
.imp-pass blockquote { margin: .2rem 0 0; padding: .5rem .7rem; border-left: 3px solid #c9d3de; background: #fff; font-size: .95rem; overflow-wrap: anywhere; }
.imp-pass .side { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #4a5a70; }
@media (max-width: 640px) { .imp-pass { grid-template-columns: 1fr; } .imp-head { flex-direction: column; gap: .5rem; } }
