/* Shared UI primitives in the App Gallery tone. Names avoid the block classes in blocks.css (.tp-styled-box, .tp-faq, ...). */
.tp-icon-spark,
.tp-icon-smile {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}
/* Ensure arrows and decorative symbols render as text glyphs across all OSes (prevents Apple Color Emoji fallback) */
[aria-hidden="true"],
.tp-button > span,
.tp-button-ghost > span,
.tp-text-link > span,
.footer-cta-button span,
.footer-brand-link span,
.footer-nav a span {
    font-variant-emoji: text;
}
.tp-shell { width: var(--tp-shell); margin-inline: auto; }
.tp-eyebrow { font-family: var(--tp-font-display); font-size: 14px; font-weight: 700; letter-spacing: .035em; margin-bottom: 24px; color: var(--tp-ink); }
.tp-kicker { color: var(--tp-ink-soft); font-size: 14px; margin-bottom: 12px; }
.tp-title-xl { font-size: clamp(42px, 4.5vw, 68px); line-height: 1.4; letter-spacing: -.035em; font-weight: 900; text-wrap: balance; color: var(--tp-ink); }
.tp-title-xl span, .tp-title-lg span { color: var(--tp-indigo); }
.tp-title-lg { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.025em; line-height: 1.6; font-weight: 800; text-wrap: balance; color: var(--tp-ink); }
.tp-title-md { font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--tp-ink); }
.tp-lead { font-size: 16px; line-height: 2; color: var(--tp-ink); }
.tp-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.tp-count { white-space: nowrap; font: 600 13px/1.4 var(--tp-font-display); padding-bottom: 9px; color: var(--tp-ink); }

/* Buttons and links */
.tp-button { background: var(--tp-indigo); color: #fff; min-height: 54px; padding: 16px 26px; display: inline-flex; gap: 44px; align-items: center; justify-content: space-between; border-radius: var(--tp-radius-pill); font-size: 14px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s, color .2s; }
.tp-button:hover { background: var(--tp-indigo-deep); color: #fff; transform: translateY(-3px); text-decoration: none; }
.tp-button > span, .tp-button-ghost > span { font-size: 22px; line-height: 1; }
.tp-button-compact { gap: 18px; min-height: 46px; padding: 12px 20px; font-size: 13px; }
.tp-button-brand { background: var(--product-accent, var(--tp-indigo)); color: var(--product-accent-text, #fff); }
.tp-button-brand:hover { background: var(--product-deep, var(--tp-indigo-deep)); color: var(--product-accent-text, #fff); }
.tp-button-ghost { background: transparent; color: var(--tp-ink); min-height: 54px; padding: 15px 25px; display: inline-flex; gap: 44px; align-items: center; justify-content: space-between; border-radius: var(--tp-radius-pill); border: 1.5px solid var(--tp-ink); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.tp-button-ghost:hover { background: var(--tp-lavender-3); transform: translateY(-3px); text-decoration: none; color: var(--tp-ink); }
.tp-button[aria-disabled="true"], .tp-button.disabled { background: var(--tp-line); color: var(--tp-muted); cursor: not-allowed; transform: none; }
.tp-text-link { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 20px; padding-block: 12px; text-decoration: none; color: var(--tp-ink); text-underline-offset: 5px; }
.tp-text-link:hover { text-decoration: underline; }
.tp-text-link > span { font-size: 22px; line-height: 1; }

/* Surfaces */
.tp-card { background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--tp-radius-card); padding: 28px; color: var(--tp-ink); }
.tp-card-lift { transition: transform .25s, box-shadow .25s; }
.tp-card-lift:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow-flat-sm); }
.tp-panel { background: var(--tp-yellow); border-radius: var(--tp-radius-panel); padding: 44px; color: var(--tp-ink); }
.tp-panel-lavender { background: var(--tp-lavender); }
.tp-panel-mint { background: var(--tp-mint); }
.tp-panel-coral { background: var(--tp-coral); }
.tp-panel-ink { background: var(--tp-ink); color: var(--tp-paper); }
.tp-panel-ink .tp-button { background: var(--tp-yellow); color: var(--tp-ink); }
.tp-panel-ink .tp-button:hover { background: #fff; color: var(--tp-ink); }
.tp-panel-ink .tp-text-link { color: var(--tp-paper); }
.tp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--tp-radius-pill); border: 1px solid var(--tp-line); background: var(--tp-white); color: var(--tp-ink); font-size: 12px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.tp-chip-lavender { background: var(--tp-lavender); border-color: transparent; }
.tp-chip-mint { background: var(--tp-mint); border-color: transparent; }
.tp-chip-yellow { background: var(--tp-yellow-2); border-color: transparent; }
.tp-chip-coral { background: var(--tp-coral); border-color: transparent; }
.tp-chip-solid { background: var(--tp-ink); color: var(--tp-paper); border-color: var(--tp-ink); }
.tp-status { font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: var(--tp-ink); }
.tp-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tp-mint-ink); }
.tp-status-planning::before { background: var(--tp-yellow-ink); }
.tp-note { background: var(--tp-lavender-3); border-radius: 14px; padding: 18px 22px; font-size: 14px; line-height: 1.9; color: var(--tp-ink); }
.tp-note-yellow { background: var(--tp-yellow-2); }
.tp-note-mint { background: var(--tp-mint); }
.tp-spark { color: var(--tp-spark); font-size: 62px; line-height: 1; display: block; }
.tp-spark-indigo { color: var(--tp-indigo); }

/* Row list (journal style) */
.tp-list-rows { list-style: none; margin: 0; padding: 0; }
.tp-list-rows > * { border-top: 1px solid var(--tp-line); }
.tp-list-rows > *:last-child { border-bottom: 1px solid var(--tp-line); }
.tp-list-rows a { display: grid; grid-template-columns: 100px 1fr 24px; gap: 24px; padding-block: 25px; align-items: center; color: var(--tp-ink); text-decoration: none; }
.tp-list-rows time, .tp-list-rows .tp-row-meta { font-size: 12px; color: var(--tp-muted); font-family: var(--tp-font-display); }
.tp-list-rows h3, .tp-list-rows .tp-row-title { font-size: 15px; font-weight: 500; line-height: 1.8; margin: 0; }
.tp-list-rows a:hover h3, .tp-list-rows a:hover .tp-row-title { text-decoration: underline; text-underline-offset: 4px; }
.tp-list-rows .tp-row-arrow { font-size: 22px; line-height: 1; }

/* Page head for text pages (legal, docs, blog archives) */
.tp-page-head { padding-block: 64px 40px; }
.tp-page-head .tp-kicker { font-family: var(--tp-font-display); font-weight: 700; letter-spacing: .035em; color: var(--tp-ink); }
.tp-page-head h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.4; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; color: var(--tp-ink); }
.tp-page-head p.tp-page-lead { margin-top: 18px; font-size: 15px; line-height: 2; color: var(--tp-ink-soft); }
.tp-page-head .tp-page-meta { margin-top: 14px; font-size: 13px; color: var(--tp-muted); }
.tp-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font: 600 12px/1.6 var(--tp-font-display); color: var(--tp-muted); margin-bottom: 20px; }
.tp-breadcrumb a { color: var(--tp-ink); text-decoration: none; }
.tp-breadcrumb a:hover { text-decoration: underline; }
.tp-breadcrumb .sep { color: var(--tp-line); }

/* Focus and motion */
.tp-button:focus-visible, .tp-button-ghost:focus-visible, .tp-text-link:focus-visible, .tp-chip:focus-visible, .tp-list-rows a:focus-visible { outline: 3px solid var(--tp-indigo); outline-offset: 6px; }
@media (max-width: 600px) {
    .tp-section-heading { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 30px; }
    .tp-panel { padding: 28px 22px; border-radius: 18px; }
    .tp-card { padding: 22px; }
    .tp-list-rows a { grid-template-columns: 1fr 20px; gap: 8px; padding-block: 20px; }
    .tp-list-rows time, .tp-list-rows .tp-row-meta { grid-column: 1 / -1; }
    .tp-page-head { padding-block: 40px 28px; }
    .tp-button, .tp-button-ghost { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .tp-button, .tp-button-ghost, .tp-card-lift { transition: none; }
    .tp-button:hover, .tp-button-ghost:hover, .tp-card-lift:hover { transform: none; }
}
