/* ==========================================================================
   SlideSorted — shared stylesheet
   Used by the hub guide and all spoke (long-tail) pages.
   ========================================================================== */

:root {
  --accent: #c43e1c;
  --accent-soft: #fdf0ec;
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --fg: #1a1a1a;
  --fg-muted: #5c5c5c;
  --border: #e3e3df;
  --max: 72ch;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff8a65;
    --accent-soft: #2a1a15;
    --bg: #14140f;
    --bg-alt: #1d1d18;
    --fg: #ecece6;
    --fg-muted: #a3a39b;
    --border: #32322b;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- skip link ---------- */
.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
}

/* ---------- layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--wide { max-width: 1080px; }

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.site__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--accent); }

nav.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}
nav.site-nav a {
  color: var(--fg-muted);
  text-decoration: none;
}
nav.site-nav a:hover { color: var(--accent); }
nav.site-nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
}

/* ---------- breadcrumb ---------- */
nav.crumbs {
  font-size: 13.5px;
  color: var(--fg-muted);
  padding: 22px 0 0;
}
nav.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
nav.crumbs li { display: flex; gap: 8px; }
nav.crumbs li + li::before {
  content: "/";
  color: var(--border);
}
nav.crumbs a {
  color: var(--fg-muted);
  text-decoration: none;
}
nav.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- hero / article head ---------- */
.hero { padding: 34px 0 8px; }
.hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0 0 18px;
}
.hero .lede {
  font-size: 19px;
  color: var(--fg-muted);
  margin: 0 0 20px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 99px;
  margin-bottom: 18px;
}
.byline {
  font-size: 13.5px;
  color: var(--fg-muted);
  margin: 0;
  padding-bottom: 4px;
}

/* ---------- quick answer box (featured-snippet target) ---------- */
.answer {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 0 0 34px;
}
.answer p { margin: 0; }
.answer strong { color: var(--fg); }

/* ---------- sections ---------- */
section { padding: 36px 0; }
h2 {
  font-size: clamp(23px, 3.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.017em;
  margin: 0 0 10px;
  scroll-margin-top: 70px;
}
h3 {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.section__intro {
  color: var(--fg-muted);
  margin: 0 0 30px;
  font-size: 17px;
}
p { margin: 0 0 16px; }
a { color: var(--accent); }

/* ---------- numbered steps ---------- */
ol.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 30px 60px;
  border-left: 2px solid var(--border);
  margin-left: 19px;
}
ol.steps > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -20px;
  top: -4px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
ol.steps h3 { padding-top: 4px; }
ol.steps p { margin-bottom: 10px; }

/* ---------- callouts ---------- */
.tip {
  font-size: 15px;
  color: var(--fg-muted);
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 11px 15px;
  margin: 0;
}
.tip strong { color: var(--fg); }
.tip a { color: var(--accent); }

.keys {
  font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 6px;
  white-space: nowrap;
}

/* ---------- plain list ---------- */
ul.plain, ul.issues {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.plain > li, ul.issues > li {
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
ul.plain > li:last-child, ul.issues > li:last-child { border-bottom: 0; }
ul.plain > li::before, ul.issues > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 23px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
ul.plain strong, ul.issues strong { display: block; margin-bottom: 2px; }
ul.issues { color: var(--fg-muted); }
ul.issues strong { color: var(--fg); }

/* ---------- tier cards ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.tier {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.tier__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.tier h3 { margin-bottom: 6px; }
.tier__meta {
  font-size: 13.5px;
  color: var(--fg-muted);
  margin: 0 0 16px;
}
.tier ul {
  margin: 0 0 18px;
  padding-left: 18px;
  font-size: 15.5px;
  color: var(--fg-muted);
}
.tier ul li { margin-bottom: 6px; }
.tier__out {
  margin-top: auto;
  font-size: 14.5px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--fg);
}
.tier__out b { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq dt {
  font-weight: 650;
  font-size: 17.5px;
  margin-top: 26px;
  letter-spacing: -0.008em;
}
.faq dt:first-child { margin-top: 0; }
.faq dd {
  margin: 7px 0 0;
  color: var(--fg-muted);
}

/* ---------- figures ---------- */
figure { margin: 28px 0; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
figcaption {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin-top: 10px;
}
figcaption b { color: var(--fg); }

/* ---------- related / next-step cards ---------- */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.related a {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.related a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.related .related__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.related .related__title {
  display: block;
  font-weight: 650;
  line-height: 1.35;
  margin-bottom: 5px;
}
.related .related__desc {
  display: block;
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 30px 26px;
  margin: 10px 0 0;
}
.cta h2 { font-size: 21px; margin-bottom: 8px; }
.cta p { color: var(--fg-muted); margin-bottom: 0; font-size: 16px; }
.cta p + p { margin-top: 12px; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 50px;
  padding: 26px 0 40px;
  font-size: 13.5px;
  color: var(--fg-muted);
}
footer.site p { margin: 0 0 6px; }
footer.site a { color: var(--fg-muted); }
footer.site a:hover { color: var(--accent); }

/* ---------- sources / outbound references ---------- */
.sources {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.sources h2 {
  font-size: 12.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
  margin: 0 0 14px;
}
.sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
}
.sources li { margin-bottom: 10px; }
.sources li:last-child { margin-bottom: 0; }
.sources a { color: var(--accent); }
.sources span {
  display: block;
  color: var(--fg-muted);
  font-size: 13.5px;
  margin-top: 2px;
}

/* ---------- inline code ---------- */
code {
  font: 500 0.88em/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  word-break: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   File size checker (powerpoint-file-size-checker.html)
   ========================================================================== */

.tool {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  margin-bottom: 8px;
}

/* ---------- drop zone ---------- */
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 46px 24px 40px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.drop:hover,
.drop:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}
.drop.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
  border-style: solid;
}
.drop.is-busy { opacity: 0.55; pointer-events: none; }

.drop__icon { color: var(--accent); line-height: 0; margin-bottom: 10px; }
.drop__title { font-size: 18px; letter-spacing: -0.01em; }
.drop__hint { font-size: 14.5px; color: var(--fg-muted); }
.drop__privacy {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 99px;
  padding: 4px 12px;
  margin-top: 14px;
}
.drop.is-over .drop__privacy,
.drop:hover .drop__privacy { background: var(--bg); }

.tool-error {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
  font-size: 15.5px;
}

/* ---------- report header ---------- */
.tool-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.tool-file {
  display: block;
  font-size: 17px;
  letter-spacing: -0.01em;
  word-break: break-all;
}
.tool-meta { font-size: 14px; color: var(--fg-muted); }

.btn-plain {
  font: inherit;
  font-size: 14px;
  color: var(--accent);
  background: none;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 7px 15px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-plain:hover { border-color: var(--accent); }

.tool-h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 30px 0 12px;
}

/* ---------- headline numbers ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px 14px;
}
.stat__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.stat__value {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
  font-variant-numeric: tabular-nums;
}
.stat__note { display: block; font-size: 13px; color: var(--fg-muted); }

/* ---------- verdicts ---------- */
.verdicts { margin-top: 18px; display: grid; gap: 10px; }
.verdict {
  padding: 15px 18px;
  border-radius: var(--radius);
  border-left: 3px solid var(--fg-muted);
  background: var(--bg);
  font-size: 15.5px;
}
.verdict strong { display: block; margin-bottom: 4px; letter-spacing: -0.008em; }
.verdict p { margin: 0; color: var(--fg-muted); font-size: 15px; }
.verdict--hot { border-left-color: var(--accent); background: var(--accent-soft); }
.verdict--hot strong { color: var(--accent); }
.verdict--warn { border-left-color: #b0862a; }
@media (prefers-color-scheme: dark) {
  .verdict--warn { border-left-color: #d8b45c; }
}

/* ---------- breakdown bars ---------- */
.breakdown { display: grid; gap: 9px; }
.bar {
  display: grid;
  grid-template-columns: 110px 1fr 82px;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
}
.bar__label { color: var(--fg-muted); }
.bar__track {
  height: 10px;
  border-radius: 99px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.bar__fill { height: 100%; border-radius: 99px; background: var(--fg-muted); }
.bar__value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--fg-muted);
}

.k-video     { background: #c43e1c; }
.k-audio     { background: #8a5cc4; }
.k-image     { background: #2f7fb8; }
.k-font      { background: #4f8a4f; }
.k-embed     { background: #b0862a; }
.k-slide     { background: #7a7a72; }
.k-other     { background: #9a9a92; }

/* ---------- tables ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
table.files {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
table.files th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.files td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  word-break: break-all;
}
table.files tr:last-child td { border-bottom: 0; }
table.files .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  padding: 2px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .tool { padding: 18px; }
  .bar { grid-template-columns: 76px 1fr 68px; font-size: 13.5px; }
  .drop { padding: 34px 18px 30px; }
}
