/*
 * Startup Stash alternatives pages — the one stylesheet for single "alternative" posts.
 * Loaded by inc/alternatives.php. Markup comes from single-alternative.php and the post body.
 * Byline and tooltip styles are shared with the list pages (Additional CSS).
 * The table of contents has its own file: css/ss-toc.css.
 */
html body.single-alternative {
  --ss-navy: #0F3766;
  --ss-accent: #FF6644;
  --ss-ink: #111;
  --ss-muted: #5B6B80;
  --ss-line: #E6EBEF;
  --ss-soft: #F7F9FA;
  --ss-frame: 1.5px solid var(--ss-navy);
  --ss-shadow: 4px 4px 0 var(--ss-navy);
}
html body.single-alternative { overflow-x: hidden; }

/* Date and byline under the title */
html body.single-alternative .ss-alt-date { display: block; margin: 0 0 8px; padding: 0; font: 500 13px/1.3 Poppins, sans-serif; color: var(--ss-muted); }
html body.single-alternative .ss-byline { margin: 4px 0 16px !important; padding-bottom: 14px !important; }

/* Article body */
html body.single-alternative .is-article .alt-post-content h2 { margin: 40px 0 14px; }
html body.single-alternative .is-article .alt-post-content h2.ss-item { scroll-margin-top: 96px; }
html body.single-alternative .is-article .alt-post-content h3 { margin: 26px 0 10px; }
html body.single-alternative .is-article .alt-post-content img { display: block; max-width: 100%; height: auto; margin: 6px 0 18px; border: var(--ss-frame); border-radius: 10px; }
html body.single-alternative .is-article .alt-post-content ul { margin: 0 0 16px; }
html body.single-alternative .alt-post-content .add-spc { display: none; }
html body.single-alternative .alt-post-content .ss-item-links { margin: 4px 0 0; font: 500 13px/1.5 Poppins, sans-serif; color: var(--ss-muted); }
html body.single-alternative .text-al-after p,
html body.single-alternative .text-al-after h2 { color: #000; }
html body.single-alternative .text-al-after h3 { color: #000; font-size: 1.3em; line-height: 140%; }

/* Key takeaways */
html body.single-alternative .ss-takeaways { background: #fff !important; border: var(--ss-frame) !important; box-shadow: var(--ss-shadow) !important; overflow: visible !important; }
html body.single-alternative .ss-takeaways::before,
html body.single-alternative .ss-takeaways::after { content: none !important; display: none !important; }

/* Tables: quick picks and comparisons */
html body.single-alternative .ss-pick-wrap { width: 100%; margin: 8px 0 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: var(--ss-frame); box-shadow: var(--ss-shadow); border-radius: 12px; }
html body.single-alternative table.ss-pick { width: 100%; min-width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font: 400 15px/1.45 Poppins, sans-serif; }
html body.single-alternative table.ss-pick th { padding: 12px 16px; border: 0; background: var(--ss-navy); color: #fff; font: 600 13px/1.3 Poppins, sans-serif; text-align: left; }
html body.single-alternative table.ss-pick td { padding: 13px 16px; border: 0; border-bottom: 1px solid var(--ss-line); background: #fff; color: var(--ss-ink); vertical-align: top; }
html body.single-alternative table.ss-pick tbody tr:nth-child(even) td { background: var(--ss-soft); }
html body.single-alternative table.ss-pick tbody tr:last-child td { border-bottom: 0; }
html body.single-alternative table.ss-pick td:first-child { font-weight: 600; color: var(--ss-navy); }
html body.single-alternative table.ss-pick a { color: var(--ss-accent); font-weight: 600; text-decoration: none; }
html body.single-alternative .ss-pill { display: inline-block; margin-right: 6px; padding: 4px 7px; border-radius: 999px; font: 700 10px/1 Poppins, sans-serif; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; }
html body.single-alternative .ss-pill-stay { background: var(--ss-navy); color: #fff; }

/* Tip and label chips used inside articles */
html body.single-alternative .ss-gem { margin: 0 0 8px; font: 500 13px/1.3 Poppins, sans-serif; color: var(--ss-muted); }
html body.single-alternative .ss-gem span { display: inline-block; margin-right: 8px; padding: 5px 9px; border-radius: 999px; background: var(--ss-accent); color: #fff; font: 700 11px/1 Poppins, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
html body.single-alternative .ss-protip { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 18px; padding: 10px 12px; background: #FFF5F2; border: 1.5px solid var(--ss-accent); box-shadow: var(--ss-shadow); border-radius: 10px; font: 400 14px/1.4 Poppins, sans-serif; color: var(--ss-navy); }
html body.single-alternative .ss-protip strong { display: inline-block; flex: 0 0 auto; margin: 1px 0 0; padding: 5px 8px; border-radius: 999px; background: var(--ss-accent); color: #fff; font: 700 10px/1 Poppins, sans-serif; letter-spacing: .05em; text-transform: uppercase; }

/* Positioning matrix ("Where the switch sits"). Dot positions are set inline on each dot. */
html body.single-alternative .ss-matrix { margin: 10px 0 28px; }
html body.single-alternative .ss-matrix figcaption { margin: 0 0 10px; font: 700 13px/1.3 Poppins, sans-serif; color: var(--ss-navy); }
html body.single-alternative .ss-matrix-wrap { display: flex; align-items: stretch; gap: 8px; }
html body.single-alternative .ss-matrix-y { display: flex; flex-direction: column; justify-content: space-between; min-width: 18px; padding: 12px 0; font: 700 11px/1 Poppins, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ss-accent); }
html body.single-alternative .ss-matrix-y span { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
html body.single-alternative .ss-matrix-board { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; min-height: 400px; overflow: hidden; background: var(--ss-soft); border: var(--ss-frame); box-shadow: var(--ss-shadow); border-radius: 12px; }
html body.single-alternative .ss-mq { position: relative; min-height: 148px; padding: 12px 12px 14px; border: 0 solid var(--ss-navy); background-image: linear-gradient(to right, rgba(15,55,102,.13) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,55,102,.13) 1px, transparent 1px); background-size: 20% 20%; }
html body.single-alternative .ss-mq-tl { border-right-width: 1.5px; border-bottom-width: 1.5px; }
html body.single-alternative .ss-mq-tr { border-bottom-width: 1.5px; background-color: #FFF8F5; }
html body.single-alternative .ss-mq-bl { border-right-width: 1.5px; }
html body.single-alternative .ss-mq-lab { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 1; margin: 0; pointer-events: none; font: 700 11px/1.2 Poppins, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--ss-navy); }
html body.single-alternative .ss-mq-tr .ss-mq-lab,
html body.single-alternative .ss-mq-br .ss-mq-lab { text-align: right; }
html body.single-alternative .ss-mq-here { position: absolute; z-index: 1; max-width: 50%; font: 600 12px/1.3 Poppins, sans-serif; color: var(--ss-accent); }
html body.single-alternative .ss-mq-empty { position: absolute; top: 44%; left: 12%; right: 12%; z-index: 1; text-align: center; font: 600 13px/1.3 Poppins, sans-serif; color: var(--ss-navy); }
html body.single-alternative .ss-dot { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 32px; height: 32px; padding: 4px; background: #fff; border: 1.5px solid var(--ss-navy); box-shadow: 2px 2px 0 var(--ss-navy); border-radius: 8px; font-size: 0; line-height: 0; color: transparent; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
html body.single-alternative .ss-dot img { display: block; width: 22px; height: 22px; margin: 0; border: 0; border-radius: 3px; }
html body.single-alternative .ss-dot:hover,
html body.single-alternative .ss-dot:focus-visible { border-color: var(--ss-accent); box-shadow: 2px 2px 0 var(--ss-accent); }
html body.single-alternative .ss-dot::after { content: attr(title); position: absolute; left: 50%; top: calc(100% + 5px); z-index: 5; padding: 4px 6px; border-radius: 4px; background: var(--ss-navy); color: #fff; font: 600 10px/1 Poppins, sans-serif; white-space: nowrap; transform: translateX(-50%); opacity: 0; pointer-events: none; }
html body.single-alternative .ss-dot:hover::after,
html body.single-alternative .ss-dot:focus-visible::after { opacity: 1; }
html body.single-alternative .ss-matrix-x { display: flex; justify-content: space-between; margin: 8px 0 0 28px; font: 700 11px/1 Poppins, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--ss-muted); }
html body.single-alternative .ss-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; }
html body.single-alternative .ss-key .ss-ki { display: inline-flex; align-items: center; gap: 6px; color: var(--ss-navy) !important; text-decoration: none; font: 500 12px/1.2 Poppins, sans-serif; }
html body.single-alternative .ss-key img { box-sizing: content-box; width: 16px; height: 16px; margin: 0; padding: 1px; background: #fff; border: 1px solid var(--ss-navy); border-radius: 3px; }

/* More alternatives */
html body.single-alternative .more-al > h2 { margin: 0 0 16px !important; font: 700 22px/1.2 Poppins, sans-serif !important; letter-spacing: -.02em !important; color: var(--ss-navy) !important; text-align: left !important; }
/* Old Additional CSS hid the h2 and printed the title again with ::after. The h2 is real now, so drop the copy. */
html body.single-alternative .more-al > h2::after { content: none !important; display: none !important; }
html body.single-alternative .more-alt-boxes { display: flex !important; flex-wrap: wrap !important; gap: 16px !important; overflow: visible !important; }
html body.single-alternative .more-alt-boxes .alt-box { flex: 1 1 0; min-width: 0; max-width: 100%; width: auto !important; margin: 0 !important; padding: 0 0 12px !important; overflow: hidden; background: #fff !important; border: var(--ss-frame) !important; border-radius: 10px !important; box-shadow: var(--ss-shadow) !important; }
html body.single-alternative .more-alt-boxes .alt-box-cont { padding: 14px 12px 2px !important; }
html body.single-alternative .more-alt-boxes .alt-box-cont h3,
html body.single-alternative .more-alt-boxes .alt-box-cont h3 a { display: -webkit-box; min-height: 0 !important; margin: 0 0 4px !important; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font: 600 14px/1.3 Poppins, sans-serif !important; color: var(--ss-ink) !important; text-decoration: none !important; }
html body.single-alternative .more-alt-boxes .alt-box-cont p { display: -webkit-box !important; min-height: 0 !important; margin: 6px 0 8px !important; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font: 400 13px/1.45 Poppins, sans-serif !important; color: var(--ss-muted) !important; }
html body.single-alternative .more-alt-boxes .read-m-btn { display: inline-block !important; box-sizing: border-box; max-width: calc(100% - 24px); margin: 2px 12px 0 !important; padding: 9px 14px !important; border-radius: 999px !important; background: var(--ss-accent) !important; color: #fff !important; font: 600 12px/1 Poppins, sans-serif !important; text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* FAQ: boxed, collapsible questions (markup from the_content filter in inc/alternatives.php; old Customizer CSS styles .ss-faq on blog posts, so these use .ss-afaq) */
html body.single-alternative .ss-afaq { display: grid; gap: 12px; margin: 8px 0 28px; }
html body.single-alternative .ss-afaq-item { margin: 0; padding: 0 20px; background: #fff; border: var(--ss-frame); border-radius: 12px; box-shadow: var(--ss-shadow); transition: transform .15s ease; }
html body.single-alternative .ss-afaq-item:hover { transform: translate(-1px, -1px); }
html body.single-alternative .ss-afaq-q { position: relative; display: block; padding: 16px 40px 16px 0; list-style: none; cursor: pointer; }
html body.single-alternative .ss-afaq-q::-webkit-details-marker { display: none; }
html body.single-alternative .ss-afaq-q::marker { content: ""; }
html body.single-alternative .ss-afaq-q::after { content: "+"; position: absolute; right: 0; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--ss-soft); color: var(--ss-accent); font: 600 20px/28px Poppins, sans-serif; text-align: center; }
html body.single-alternative .ss-afaq-item[open] > .ss-afaq-q::after { content: "\2212"; background: var(--ss-accent); color: #fff; }
html body.single-alternative .ss-afaq-q h3 { margin: 0 !important; padding: 0 !important; font: 600 18px/1.35 Poppins, sans-serif !important; letter-spacing: -.01em !important; color: var(--ss-navy) !important; }
html body.single-alternative .ss-afaq-q:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: 4px; border-radius: 6px; }
html body.single-alternative .ss-afaq-a { padding: 14px 0 18px; border-top: 1px solid var(--ss-line); }
html body.single-alternative .ss-afaq-a p { margin: 0 0 12px; padding: 0; font: 400 16px/1.65 Poppins, sans-serif; color: var(--ss-ink); }
html body.single-alternative .ss-afaq-a > :last-child { margin-bottom: 0 !important; }
@media (prefers-reduced-motion: reduce) { html body.single-alternative .ss-afaq-item { transition: none; } html body.single-alternative .ss-afaq-item:hover { transform: none; } }

@media (max-width: 767px) {
  html body.single-alternative .ss-afaq-item { padding: 0 14px; }
  html body.single-alternative .ss-afaq-q h3 { font-size: 16px !important; }

  html body.single-alternative .more-alt-boxes { flex-direction: column !important; gap: 14px !important; }
  html body.single-alternative .more-alt-boxes .alt-box { width: 100% !important; }
  html body.single-alternative .ss-matrix-wrap { flex-direction: column; }
  html body.single-alternative .ss-matrix-y { flex-direction: row; min-width: 0; padding: 0 0 6px; }
  html body.single-alternative .ss-matrix-y span { writing-mode: horizontal-tb; transform: none; font-size: 10px; letter-spacing: .04em; }
  html body.single-alternative .ss-matrix-board { min-height: 280px; }
  html body.single-alternative .ss-mq { min-height: 120px; padding: 8px; }
  html body.single-alternative .ss-mq-lab { font-size: 10px; }
  html body.single-alternative .ss-mq-here { max-width: 48%; font-size: 10px; }
  html body.single-alternative .ss-dot { width: 24px; height: 24px; padding: 3px; }
  html body.single-alternative .ss-dot img { width: 16px; height: 16px; }
  html body.single-alternative .ss-dot::after { display: none; }
  html body.single-alternative .ss-matrix-x { margin-left: 0; font-size: 10px; }
  html body.single-alternative .ss-key { gap: 6px 10px; margin: 10px 0 0; }
  html body.single-alternative .ss-key .ss-ki { gap: 4px; font-size: 11px; }
  html body.single-alternative .ss-key img { width: 14px; height: 14px; }
}
