/* ──────────────────────────────────────────────────────────────────
   Poster · Instagram 4:5 export block
   Renders next to the A5 print poster. Native sheet size 1080×1350.
   Reuses each poster's existing brand vars: --navy, --navy-mid,
   --navy-lt, --gold, --gold-lt, --gold-pale, --paper, --ink,
   --ink-soft, --rule. Hidden on print so the A5 page is unaffected.
   ────────────────────────────────────────────────────────────────── */

.ig-section {
    width: 100%;
    max-width: 720px;
    margin: 8px auto 32px;
    padding: 0 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-family: 'Hind', Arial, sans-serif;
    color: var(--ink);
}

.ig-section .ig-section-head {
    text-align: center;
    margin-top: 6px;
}
.ig-section .ig-section-head .kicker {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--ink-soft);
    letter-spacing: 0.4px;
}
.ig-section .ig-section-head .title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--navy);
    margin-top: 2px;
    letter-spacing: 0.3px;
}

/* The visible frame: 4:5 aspect, scaled-down preview of the
   native 1080×1350 sheet. JS sets transform on .ig-sheet. */
.ig-frame {
    width: min(540px, 92vw);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
    background: var(--paper);
    border: 4px solid var(--navy);
    outline: 2px solid var(--gold);
    outline-offset: -10px;
    box-shadow: 0 18px 48px rgba(13, 27, 62, 0.28);
    border-radius: 2px;
}

/* The actual 1080×1350 sheet. Positioned at native size; JS scales
   it down to fit the frame's width. Top-left anchor so the scaled
   sheet aligns with the frame. */
.ig-sheet {
    width: 1080px;
    height: 1350px;
    background: var(--paper);
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    overflow: hidden;
}

/* Corner flourishes inside the sheet — gold L-brackets, matching the
   A5 poster's decorative corners. */
.ig-sheet .ig-corner {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid var(--gold);
    opacity: 0.55;
    pointer-events: none;
}
.ig-sheet .ig-corner.tl { top: 32px;   left: 32px;   border-right: none; border-bottom: none; }
.ig-sheet .ig-corner.tr { top: 32px;   right: 32px;  border-left: none;  border-bottom: none; }
.ig-sheet .ig-corner.bl { bottom: 32px; left: 32px;  border-right: none; border-top: none; }
.ig-sheet .ig-corner.br { bottom: 32px; right: 32px; border-left: none;  border-top: none; }

/* ── Header strip ─────────────────────────────────────────────── */
.ig-sheet .ig-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-lt) 100%);
    color: var(--gold-lt);
    padding: 28px 64px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 3px solid var(--gold);
    flex: 0 0 auto;
}
.ig-sheet .ig-header .logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--gold);
    object-fit: cover;
    flex: 0 0 auto;
}
.ig-sheet .ig-header .brand h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: var(--gold-lt);
    line-height: 1.1;
    letter-spacing: 0.6px;
}
.ig-sheet .ig-header .brand .tag {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-style: italic;
    color: #c4d4ea;
    margin-top: 4px;
}
.ig-sheet .ig-header .brand .hi {
    font-family: 'Noto Serif Devanagari', 'Hind', serif;
    font-weight: 700;
}

/* ── Body ─────────────────────────────────────────────────────── */
.ig-sheet .ig-body {
    flex: 1;
    padding: 60px 72px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    min-height: 0;
}

.ig-sheet .ig-eyebrow {
    display: inline-block;
    background: var(--gold-pale);
    border: 1.5px solid var(--gold);
    color: var(--navy);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 8px 26px;
    border-radius: 100px;
}

.ig-sheet .ig-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 800;
    color: var(--navy);
    font-size: 86px;
    line-height: 0.95;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}
.ig-sheet .ig-title .accent {
    color: var(--gold);
    display: block;
}
.ig-sheet .ig-title.smaller { font-size: 70px; }

.ig-sheet .ig-divider {
    width: 280px;
    height: 0;
    border-top: 2px solid var(--gold);
    margin: 0 auto;
    position: relative;
}
.ig-sheet .ig-divider::before,
.ig-sheet .ig-divider::after {
    content: "✦";
    position: absolute;
    top: 50%;
    transform: translateY(-55%);
    color: var(--gold);
    font-size: 22px;
    background: var(--paper);
    padding: 0 10px;
}
.ig-sheet .ig-divider::before { left: -22px; }
.ig-sheet .ig-divider::after  { right: -22px; }

.ig-sheet .ig-sub {
    font-family: 'Hind', sans-serif;
    font-size: 24px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 0;
    max-width: 820px;
}

/* Link CTA card — replaces the QR on the Instagram render. The
   audience views the post on their own phone, so a QR is useless;
   instead we point them at the link in our bio + the readable URL.
   Reuses the navy/gold palette so it sits on-brand where the QR card
   used to. (The A5 print poster keeps its scannable QR.) */
.ig-sheet .ig-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-lt) 100%);
    border: 2px solid var(--gold);
    border-radius: 18px;
    padding: 30px 40px 26px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(13, 27, 62, 0.18);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 860px;
    margin-top: 4px;
}
.ig-sheet .ig-cta .ig-cta-cap {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 800;
    color: var(--gold-lt);
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: 0.5px;
}
.ig-sheet .ig-cta .ig-cta-url {
    font-family: 'Hind', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 26px;
    letter-spacing: 0.4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid var(--gold);
    border-radius: 100px;
    padding: 10px 28px;
    word-break: break-word;
}
.ig-sheet .ig-cta .ig-cta-url .pre {
    color: var(--gold-lt);
    font-weight: 600;
    margin-right: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
}
.ig-sheet .ig-cta .ig-cta-foot {
    font-family: 'Hind', sans-serif;
    font-size: 17px;
    color: #c4d4ea;
    line-height: 1.4;
    max-width: 520px;
}

/* Member-benefit / T&C bullet list (free-print-service) */
.ig-sheet .ig-bullets {
    list-style: none;
    margin: 0;
    padding: 22px 32px;
    background: #fff;
    border: 1.5px dashed var(--gold);
    border-radius: 12px;
    text-align: left;
    max-width: 820px;
    width: 100%;
    display: grid;
    gap: 12px;
    box-sizing: border-box;
}
.ig-sheet .ig-bullets li {
    font-family: 'Hind', sans-serif;
    font-size: 19px;
    color: var(--ink);
    padding-left: 28px;
    position: relative;
    line-height: 1.4;
}
.ig-sheet .ig-bullets li::before {
    content: "✦";
    position: absolute;
    left: 4px;
    top: 0;
    color: var(--gold);
    font-size: 18px;
    font-weight: 800;
}
.ig-sheet .ig-bullets li strong { color: var(--navy); font-weight: 700; }

/* Callout box (e.g. fees-revising lock-in) */
.ig-sheet .ig-callout {
    margin: 0 auto;
    padding: 24px 36px;
    background: var(--gold-pale);
    border: 1.5px solid var(--gold);
    border-radius: 12px;
    max-width: 820px;
    text-align: center;
}
.ig-sheet .ig-callout .label {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--gold);
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.ig-sheet .ig-callout .text {
    font-family: 'Hind', sans-serif;
    font-weight: 600;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.45;
}

/* ── Footer ───────────────────────────────────────────────────── */
.ig-sheet .ig-footer {
    background: var(--navy);
    color: #c4d4ea;
    padding: 24px 64px;
    text-align: center;
    border-top: 3px solid var(--gold);
    flex: 0 0 auto;
    font-family: 'Hind', sans-serif;
}
.ig-sheet .ig-footer .row1 {
    color: var(--gold-lt);
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 4px;
}
.ig-sheet .ig-footer .row2 {
    color: #c4d4ea;
    font-size: 14px;
}
.ig-sheet .ig-footer a { color: var(--gold-lt); text-decoration: none; }

/* ── Action row + caption box (below the IG sheet) ────────────── */
.ig-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}
.ig-actions button {
    background: var(--navy);
    color: var(--gold-lt);
    border: 1px solid var(--gold);
    font-family: 'Hind', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.ig-actions button:hover { background: var(--navy-lt); color: #fff; }
.ig-actions button.is-ok { background: #1f6f43; border-color: #2a8f5b; color: #eaffe9; }

.ig-caption {
    width: 100%;
    max-width: 540px;
    margin: 4px auto 0;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 14px 14px 12px;
    box-sizing: border-box;
}
.ig-caption-label {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--navy);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ig-caption textarea {
    width: 100%;
    min-height: 110px;
    box-sizing: border-box;
    font-family: 'Hind', sans-serif;
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--ink);
    background: #fffdf6;
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 10px 12px;
    resize: vertical;
}
.ig-caption textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Hide the entire IG block on print — A5 sheet only. */
@media print {
    .ig-section { display: none !important; }
}
