/*
 * "Around the Table" episode card.
 *
 * Everything is scoped to .ptt-att so it can't collide with Bootstrap (loaded
 * site-wide from the child theme's header.php) or Storefront.
 *
 * Storefront ships no theme.json, so core wraps every group block's children in
 * an extra .wp-block-group__inner-container. Each flex row below is therefore
 * declared on BOTH the block and that wrapper — block themes and the editor
 * render without it, so this covers both.
 */

.ptt-att {
    --att-mint: #71CABC;
    --att-teal-mid: #146070;
    --att-teal-deep: #003D42;
    --att-coral: #F58D75;
    --att-sage: #D6D6B3;
    --att-paper: #FAF7F0;
    --att-offwhite: #F3F3F3;
    --att-line: rgba(0, 61, 66, .14);

    /* Cormorant Garamond isn't installed on this site; Georgia is the closest
       thing already available without adding a Google Fonts request. */
    --att-serif: Georgia, 'Times New Roman', serif;
    --att-script: 'UglyQua', Georgia, serif;
    --att-formal: 'silver_south_scriptregular', 'Snell Roundhand', cursive;
    --att-sans: 'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    max-width: 760px;
    margin: 0 0 24px;
    border: 1px solid var(--att-line);
    border-radius: 24px;
    overflow: hidden;
    background: var(--att-paper);
    box-shadow: 0 30px 70px -46px rgba(0, 28, 12, .4);
}

/*
 * Storefront ships no theme.json, so it never defines
 * --wp--style--global--content-size. The block editor's own
 * `.wp-block { max-width: var(--wp--style--global--content-size) }` rule
 * (two classes, higher specificity than our single `.ptt-att` selector)
 * then resolves to `max-width: none` and stretches the card edge to edge
 * in the editor only. Re-assert the real max-width and the frontend's
 * flush-left position here so the editor canvas matches the published page.
 */
.editor-styles-wrapper .ptt-att {
    max-width: 760px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.ptt-att * {
    box-sizing: border-box;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.ptt-att__head {
    position: relative;
    padding: 20px 28px 17px;
    background: linear-gradient(160deg, #0a5560, var(--att-teal-deep));
    color: var(--att-offwhite);
    overflow: hidden;
}

.ptt-att__head:after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(135deg, rgba(113, 202, 188, .16) 0 1px, transparent 1px 22px);
    pointer-events: none;
}

/* Keep the text above the diagonal hatch overlay. */
.ptt-att__head > *,
.ptt-att__head > .wp-block-group__inner-container > * {
    position: relative;
    z-index: 1;
}

.ptt-att__eyebrow {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--att-sans);
    font-size: 11.5px !important;
    font-weight: 700;
    letter-spacing: .24em;
    line-height: 1.4 !important;
    text-transform: uppercase;
    color: var(--att-mint) !important;
}

.ptt-att__ttl {
    margin: 6px 0 0 !important;
    padding: 0 !important;
    font-family: var(--att-formal);
    font-size: 46px !important;
    font-weight: 400;
    line-height: .86 !important;
    color: var(--att-offwhite) !important;
}

.ptt-att__sub {
    margin: 7px 0 0 !important;
    padding: 0 !important;
    font-family: var(--att-sans);
    font-size: 12.5px !important;
    font-weight: 300;
    line-height: 1.5 !important;
    color: rgba(243, 243, 243, .72) !important;
}

/* ── People ─────────────────────────────────────────────────────────────── */

.ptt-att__body {
    padding: 2px 20px 10px;
}

.ptt-att__person,
.ptt-att__person > .wp-block-group__inner-container {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.ptt-att__person {
    padding: 14px 8px;
}

/* Guests sit in a wrapping grid so any number of duplicated guest cards line
   up several to a row instead of stacking full-width — no core/columns
   needed, and the row reflows on its own as guests are added or removed. */
.ptt-att__guests,
.ptt-att__guests > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px 20px;
    width: 100%;
}

.ptt-att__guests {
    padding-top: 16px;
    margin-top: 4px;
    border-top: 1px solid var(--att-line);
}

.ptt-att__person--guest,
.ptt-att__person--guest > .wp-block-group__inner-container {
    flex-direction: column;
    align-items: center;
}

.ptt-att__person--guest {
    text-align: center;
    padding: 16px 14px;
    border: 1px solid var(--att-line);
    border-radius: 16px;
    background: #fff;
}

.ptt-att__person--guest .ptt-att__meta {
    padding-top: 0;
}

.ptt-att__person--guest .ptt-att__links,
.ptt-att__person--guest .ptt-att__links > .wp-block-group__inner-container,
.ptt-att__person--guest .ptt-att__social,
.ptt-att__person--guest .ptt-att__ctas {
    justify-content: center;
}

/* The teal fill only shows through the transparent placeholder mark; a real
   photo is object-fit: cover and hides it entirely. */
.ptt-att__ph {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--att-teal-deep);
    line-height: 0;
}

.ptt-att__ph img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
}

.ptt-att__ph--host {
    width: 76px;
    height: 76px;
    box-shadow: 0 0 0 2px var(--att-paper), 0 0 0 4px var(--att-mint);
}

.ptt-att__ph--guest {
    width: 60px;
    height: 60px;
    box-shadow: 0 0 0 2px var(--att-paper), 0 0 0 3px var(--att-sage);
}

.ptt-att__meta {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    padding-top: 2px;
}

.ptt-att__role {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--att-sans);
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: .2em;
    line-height: 1.4 !important;
    text-transform: uppercase;
    color: var(--att-coral) !important;
}

.ptt-att__person--guest .ptt-att__role {
    color: var(--att-teal-mid) !important;
}

.ptt-att__name {
    margin: 3px 0 0 !important;
    padding: 0 !important;
    font-family: var(--att-serif);
    font-size: 23px !important;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.05 !important;
    color: var(--att-teal-deep) !important;
}

.ptt-att__cred {
    margin: 2px 0 0 !important;
    padding: 0 !important;
    font-family: var(--att-script);
    font-size: 15px !important;
    font-style: italic;
    line-height: 1.3 !important;
    color: var(--att-teal-mid) !important;
}

/* ── Social icons + CTA ─────────────────────────────────────────────────── */

.ptt-att__links,
.ptt-att__links > .wp-block-group__inner-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    min-width: 0;
}

.ptt-att__links {
    margin-top: 9px !important;
}

/* Declared explicitly rather than inheriting core's .wp-block-social-links
   layout — core only enqueues per-block CSS when the block is on the page. */
.ptt-att__social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important;
}

.ptt-att__social .wp-social-link {
    width: 30px;
    height: 30px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--att-line);
    border-radius: 50%;
    background: #fff !important;
    transition: background .15s, border-color .15s;
}

.ptt-att__social .wp-social-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 !important;
    color: var(--att-teal-deep) !important;
}

.ptt-att__social .wp-social-link svg {
    width: 15px !important;
    height: 15px !important;
}

.ptt-att__social .wp-social-link:hover {
    background: var(--att-teal-deep) !important;
    border-color: var(--att-teal-deep);
}

.ptt-att__social .wp-social-link:hover a {
    color: var(--att-offwhite) !important;
}

.ptt-att__ctas {
    margin: 0 !important;
    gap: 9px !important;
}

.ptt-att__cta .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 999px;
    font-family: var(--att-sans);
    font-size: 11.5px !important;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.ptt-att__cta--host .wp-block-button__link {
    border: 1px solid var(--att-teal-deep);
    background: var(--att-teal-deep) !important;
    color: var(--att-offwhite) !important;
}

.ptt-att__cta--host .wp-block-button__link:hover {
    background: var(--att-mint) !important;
    color: var(--att-teal-deep) !important;
}

.ptt-att__cta--guest .wp-block-button__link {
    border: 1px solid var(--att-line);
    background: transparent !important;
    color: var(--att-teal-deep) !important;
}

.ptt-att__cta--guest .wp-block-button__link:hover {
    background: var(--att-sage) !important;
    color: var(--att-teal-deep) !important;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.ptt-att__foot,
.ptt-att__foot > .wp-block-group__inner-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.ptt-att__foot {
    padding: 13px 28px 15px;
    background: var(--att-offwhite);
    border-top: 1px solid var(--att-line);
}

.ptt-att__foot-formal {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--att-formal);
    font-size: 26px !important;
    font-weight: 400;
    line-height: 1 !important;
    color: var(--att-teal-mid) !important;
}

.ptt-att__foot-meta {
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    font-family: var(--att-sans);
    font-size: 12px !important;
    font-weight: 300;
    line-height: 1.4 !important;
    color: #3f5152 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Share / Subscribe cards
   Companions to .ptt-att. Tokens are redeclared rather than shared so the
   .ptt-att rules above stay untouched.
   ═══════════════════════════════════════════════════════════════════════════ */

.ptt-share,
.ptt-sub {
    --att-mint: #71CABC;
    --att-teal-deep: #003D42;
    --att-coral: #F58D75;
    --att-paper: #FAF7F0;
    --att-offwhite: #F3F3F3;
    --att-serif: Georgia, 'Times New Roman', serif;
    --att-formal: 'silver_south_scriptregular', 'Snell Roundhand', cursive;
    --att-sans: 'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    box-sizing: border-box;
    width: 100%;
    max-width: 400px;
    margin: 0 0 24px;
    padding: 26px 28px 28px;
    border-radius: 24px;
}

/* Same editor-only fix as .ptt-att above: Storefront defines no
   --wp--style--global--content-size, so the editor's higher-specificity
   `.wp-block { max-width: var(...) }` collapses to none and stretches
   these cards edge to edge. Re-assert the real size here. */
.editor-styles-wrapper .ptt-share,
.editor-styles-wrapper .ptt-sub {
    max-width: 400px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.ptt-share *,
.ptt-sub * {
    box-sizing: border-box;
}

.ptt-share__eyebrow,
.ptt-sub__eyebrow {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--att-formal);
    font-size: 34px !important;
    font-weight: 400;
    line-height: .9 !important;
}

.ptt-share__ttl,
.ptt-sub__ttl {
    margin: 10px 0 0 !important;
    padding: 0 !important;
    font-family: var(--att-serif);
    font-size: 26px !important;
    font-weight: 400;
    letter-spacing: .18em;
    line-height: 1.1 !important;
    text-transform: uppercase;
}

/* ── Share ──────────────────────────────────────────────────────────────── */

.ptt-share {
    background: var(--att-teal-deep);
}

.ptt-share__eyebrow {
    color: var(--att-mint) !important;
}

.ptt-share__ttl {
    color: var(--att-offwhite) !important;
}

.ptt-share__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.ptt-share__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(243, 243, 243, .45);
    border-radius: 50%;
    color: var(--att-offwhite);
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

.ptt-share__links a:hover,
.ptt-share__links a:focus-visible {
    background: var(--att-mint);
    border-color: var(--att-mint);
    color: var(--att-teal-deep);
}

.ptt-share__links svg {
    width: 19px;
    height: 19px;
}

/* ── Subscribe ──────────────────────────────────────────────────────────── */

.ptt-sub {
    background: var(--att-coral);
}

.ptt-sub__eyebrow,
.ptt-sub__ttl,
.ptt-sub__body {
    color: var(--att-teal-deep) !important;
}

.ptt-sub__body {
    margin: 14px 0 0 !important;
    padding: 0 !important;
    font-family: var(--att-sans);
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.55 !important;
}

/* Override core's flex .wp-block-buttons so the pill spans the card. */
.ptt-sub__cta {
    display: block !important;
    margin: 20px 0 0 !important;
}

.ptt-sub__cta .wp-block-button {
    display: block;
    width: 100%;
    margin: 0;
}

.ptt-sub__cta .wp-block-button__link {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--att-teal-deep);
    border-radius: 999px;
    background: transparent !important;
    color: var(--att-teal-deep) !important;
    font-family: var(--att-sans);
    font-size: 15px !important;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.ptt-sub__cta .wp-block-button__link:hover {
    background: var(--att-teal-deep) !important;
    color: var(--att-paper) !important;
}
