/* install-guide.css — shared by the install guides.
   Mobile-first: these pages are usually read on the phone being set up, so
   there is one narrow column at every screen size. */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Reserve the scrollbar's width so pages don't shift when navigating */
html {
    scrollbar-gutter: stable;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #222;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Site header — same bar, same height, as the rest of the site */
.header {
    background-color: #1e73be;
    color: #fff;
    text-align: center;
    padding: 24px 20px;
    line-height: normal;
}

.header-title {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
}

.header p {
    margin-top: 8px;
    font-size: 1rem;
}

.content {
    flex: 1;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 16px 40px;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
    background-color: #fff;
    border-radius: 14px;
    padding: 24px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1e73be;
    background-color: #eaf2fb;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 1.7rem;
    line-height: 1.2;
    color: #16314d;
    margin-bottom: 10px;
}

.hero p {
    color: #444;
    font-size: 1.02rem;
}

.hero p + p {
    margin-top: 8px;
}

.download-btn {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 16px 20px;
    background-color: #bd5909;
    color: #fff;
    font-size: 1.15rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.download-btn:hover,
.download-btn:focus {
    background-color: #9e4a07;
}

.download-btn:focus-visible {
    outline: 3px solid #1e73be;
    outline-offset: 2px;
}

.download-note {
    margin-top: 8px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.hero-alt {
    margin-top: 12px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.hero-alt a {
    color: #1e73be;
}

/* TV short code */
.code-box {
    text-align: center;
    margin: 18px 0 4px;
}

.code-box .code {
    display: inline-block;
    font-family: "Courier New", monospace;
    font-size: 2.2rem;
    letter-spacing: 6px;
    background-color: #eaf2fb;
    color: #1e73be;
    border: 2px solid #1e73be;
    border-radius: 10px;
    padding: 10px 20px 10px 26px;
    font-weight: bold;
}

.code-label {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* "Which TV do you have?" */
.device-list {
    margin-top: 18px;
    border-top: 1px solid #e8e8e8;
}

.device-list h2 {
    font-size: 1.05rem;
    color: #16314d;
    margin: 14px 0 4px;
}

.device-row {
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.device-row strong {
    display: block;
    color: #16314d;
    margin-bottom: 2px;
}

.device-row p {
    font-size: 0.95rem;
    color: #444;
}

.device-row .ok {
    color: #1e73be;
    font-weight: bold;
}

/* ---- Notices --------------------------------------------------------------- */
.guide-notice,
.step-help {
    border-radius: 10px;
    padding: 14px 16px;
    margin: 14px 0;
}

.guide-notice {
    background-color: #fff4e8;
    border-left: 4px solid #e67e22;
}

.step-help {
    background-color: #eaf2fb;
    border-left: 4px solid #1e73be;
    margin-bottom: 0;
}

/* Direct child only: bold words inside the callout's own paragraphs, paths
   and tab panels must stay inline. */
.guide-notice > strong,
.step-help > strong {
    display: block;
    margin-bottom: 4px;
    color: #16314d;
}

.guide-notice p,
.step-help p {
    font-size: 0.95rem;
    color: #444;
}

.guide-notice p + p,
.step-help p + p {
    margin-top: 6px;
}

.step-help a {
    color: #1e73be;
    font-weight: bold;
}

/* ---- Step cards -------------------------------------------------------------- */
.step {
    background-color: #fff;
    border-radius: 14px;
    padding: 18px 18px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
}

/* Marks a step as conditional, so numbered badges are not read as "do all" */
.step-when {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 10px;
    background-color: #f1f1f1;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: bold;
    color: #666;
}

.step h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    color: #16314d;
    margin-bottom: 10px;
}

.step-num {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #1e73be;
    color: #fff;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.step-num.step-done {
    background-color: #2e9e5b;
}

.step p {
    font-size: 1rem;
    color: #333;
}

.step p + p {
    margin-top: 8px;
}

.step img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    margin: 14px auto 0;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
}

@media (min-width: 700px) {
    .step img {
        max-height: 520px;
    }
}

/* A settings path, e.g. Settings → Apps → Install unknown apps */
.path {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    background-color: #f6f8fb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #222;
    line-height: 1.5;
}

/* ---- "Pick your phone" tabs ----------------------------------------------------
   Without JavaScript every panel stays visible under its own heading; the
   script adds .js, shows the buttons and hides all but the chosen panel. */
.tab-list {
    display: none;
}

.brand-tabs.js .tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}

.tab {
    font: inherit;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 8px 14px;
    border: 2px solid #1e73be;
    border-radius: 999px;
    background-color: #fff;
    color: #1e73be;
    cursor: pointer;
}

.tab.active {
    background-color: #1e73be;
    color: #fff;
}

.tab:focus-visible {
    outline: 3px solid #e67e22;
    outline-offset: 2px;
}

.tab-panel h3 {
    font-size: 1rem;
    color: #16314d;
    margin: 14px 0 4px;
}

.brand-tabs.js .tab-panel h3 {
    display: none;
}

.tab-panel[hidden] {
    display: none;
}

.tab-tip {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #666;
}

/* ---- Troubleshooting: tap to expand ------------------------------------------ */
.faq-section {
    margin-top: 22px;
}

.faq-section h2 {
    font-size: 1.15rem;
    color: #16314d;
    margin: 0 4px 10px;
}

.faq {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 8px;
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 44px 14px 16px;
    font-weight: bold;
    color: #16314d;
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #1e73be;
    border-bottom: 2px solid #1e73be;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.15s ease;
}

.faq[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.faq-body {
    padding: 0 16px 16px;
}

.faq-body p {
    font-size: 0.97rem;
    color: #333;
}

.faq-body p + p {
    margin-top: 8px;
}

/* ---- Footer ------------------------------------------------------------------- */
.footer-note {
    text-align: center;
    font-size: 0.92rem;
    color: #555;
    margin-top: 22px;
}

.footer-note + .footer-note {
    margin-top: 8px;
}

.footer-note a {
    color: #1e73be;
}

.footer {
    background-color: #1e73be;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
}
