/* Shared styles for Sense input-method sub-pages
   Used by photo/email/pdf/document/screenshot/flyer/text/url/ics/voice/alexa/siri/share -to-calendar pages */

:root {
    --sp-ink: #1d1d1f;
    --sp-ink-dim: #515154;
    --sp-muted: #86868b;
    --sp-rule: #e3e3e6;
}

body { background: #fff; }
main { color: var(--sp-ink); }

.sp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ----- Hero ----- */
.sp-head {
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--sp-rule);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: end;
}
.sp-kicker {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--sp-muted);
    margin-bottom: 1.25rem;
}
.sp-kicker a {
    color: var(--sp-muted);
    text-decoration: none;
}
.sp-kicker a:hover { color: var(--sp-ink); }
.sp-head h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--sp-ink);
    margin: 0 0 1.25rem;
    max-width: 760px;
}
.sp-sub {
    font-family: var(--font-display);
    font-size: 1.18rem;
    line-height: 1.55;
    color: var(--sp-ink-dim);
    max-width: 640px;
    margin: 0 0 2rem;
}
.sp-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.sp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--sp-ink);
    color: white;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}
.sp-cta:hover { background: #2c2c30; }
.sp-cta svg { width: 14px; height: 14px; }
.sp-back {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--sp-ink-dim);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.sp-back:hover { color: var(--sp-ink); border-bottom-color: var(--sp-ink); }

.sp-head-meta {
    text-align: right;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--sp-muted);
    line-height: 1.6;
}
.sp-head-meta strong {
    display: block;
    color: var(--sp-ink);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

/* ----- Section ----- */
.sp-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--sp-rule);
}
.sp-section:last-of-type { border-bottom: none; }
.sp-section h2 {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--sp-muted);
    margin: 0 0 2.5rem;
}

/* ----- Numbered steps (3-column row, thin top rule, leading 0-counter) ----- */
.sp-steps {
    list-style: none;
    counter-reset: step;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.sp-steps li {
    counter-increment: step;
    border-top: 2px solid var(--sp-ink);
    padding-top: 1rem;
}
.sp-steps li::before {
    content: "0" counter(step);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sp-muted);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.75rem;
}
.sp-steps strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--sp-ink);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}
.sp-steps p {
    font-family: var(--font-display);
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--sp-ink-dim);
    margin: 0;
}

/* ----- 3-column bulleted list (rule-divided) ----- */
.sp-bullets {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 3rem;
}
.sp-bullets li {
    padding: 1.2rem 0;
    border-top: 1px solid var(--sp-rule);
}
.sp-bullets li:nth-child(1),
.sp-bullets li:nth-child(2),
.sp-bullets li:nth-child(3) {
    border-top: none;
    padding-top: 0;
}
.sp-bullets strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--sp-ink);
    margin-bottom: 0.3rem;
}
.sp-bullets p {
    font-family: var(--font-display);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--sp-ink-dim);
    margin: 0;
}

/* ----- Related cross-links (2-column rule-divided) ----- */
.sp-related {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 4rem;
}
.sp-related li {
    padding: 1.1rem 0;
    border-top: 1px solid var(--sp-rule);
}
.sp-related li:nth-child(1),
.sp-related li:nth-child(2) {
    border-top: none;
    padding-top: 0;
}
.sp-related a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;
}
.sp-related a:hover { opacity: 0.6; }
.sp-related strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--sp-ink);
    margin-bottom: 0.2rem;
}
.sp-related p {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--sp-ink-dim);
    line-height: 1.5;
    margin: 0;
}
.sp-related-text { flex: 1; }
.sp-related-arrow {
    font-family: var(--font-display);
    color: var(--sp-muted);
    font-size: 0.95rem;
}

/* ----- FAQ (native <details>) ----- */
.sp-faq {
    list-style: none;
    margin: 0; padding: 0;
}
.sp-faq li {
    border-top: 1px solid var(--sp-rule);
}
.sp-faq li:first-child { border-top: none; }
.sp-faq details { padding: 1.5rem 0; }
.sp-faq summary {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--sp-ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after {
    content: "+";
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--sp-muted);
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.sp-faq details[open] summary::after { content: "−"; }
.sp-faq details p {
    font-family: var(--font-display);
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--sp-ink-dim);
    margin: 1rem 0 0;
    max-width: 740px;
}

/* ----- Footer CTA ----- */
.sp-foot { padding: 4rem 0 5rem; }
.sp-foot p {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--sp-ink-dim);
    margin: 0 0 1rem;
}

@media (max-width: 900px) {
    .sp-head {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }
    .sp-head-meta { text-align: left; }
}
@media (max-width: 720px) {
    .sp-head { padding: 3rem 0 2.5rem; }
    .sp-section { padding: 3rem 0; }
    .sp-steps {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .sp-bullets,
    .sp-related {
        grid-template-columns: 1fr;
    }
    .sp-bullets li:nth-child(2),
    .sp-bullets li:nth-child(3),
    .sp-related li:nth-child(2) {
        border-top: 1px solid var(--sp-rule);
        padding-top: 1.2rem;
    }
}
