/**
 * Long-form "learn" guide pages — the shared component styles every learn/*
 * block renders against, kept in one stylesheet instead of duplicated across
 * the blocks that share them (callout notes, checklists, two-column splits).
 *
 * Values here are transcribed from the approved design for these pages, so
 * they intentionally use literal px/rem numbers where that design differs
 * from the site-wide tokens (label tracking, card radius) rather than reusing
 * a token that would drift the page away from the design.
 *
 * Requires base.css first (.container, .sec-label, .btn, .glow, .stat-chip).
 * Loaded on the front end only for posts using learn/* blocks (see
 * settings/enqueue.php) and inlined into the editor canvas via
 * add_editor_style().
 */

/* ---------------------------------------------------------------------- */
/* Shared section chrome                                                   */
/* ---------------------------------------------------------------------- */
.learn-sec {
    position: relative;
}

.learn-sec > .container {
    position: relative;
    z-index: 1;
}

/* This design tracks eyebrow labels tighter than the site-wide default. */
.learn-sec .sec-label {
    font-size: 11px;
    letter-spacing: .16em;
}

.learn-sec-intro {
    max-width: 46rem;
}

.learn-sec-intro h2 {
    margin-top: 14px;
}

.learn-sec-intro .learn-lede {
    margin-top: 16px;
}

.learn-lede {
    color: var(--mut);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 44rem;
}

.learn-grad {
    background: linear-gradient(115deg, #F6EDE7 0%, #FF824A 60%, #FF5E1A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------------------------------------------------------------------- */
/* Panel card — the bordered aside used in the hero and the RUO section    */
/* ---------------------------------------------------------------------- */
.learn-panel {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    padding: 26px;
}

.learn-panel__h {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: 1.05rem;
    margin-bottom: 14px;
}

.learn-panel p {
    color: var(--mut);
    font-size: .95rem;
    line-height: 1.7;
}

.learn-panel p + p {
    margin-top: 14px;
}

.learn-panel .btn {
    margin-top: 20px;
}

/* Numbered decision rows inside a panel card */
.learn-dec {
    display: flex;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.learn-dec:last-child {
    border-bottom: none;
}

.learn-dec__k {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-soft);
    flex: none;
    padding-top: 3px;
}

.learn-dec__t {
    font-size: .93rem;
    line-height: 1.5;
    color: var(--mut);
}

.learn-dec__t b {
    color: var(--ink);
    font-weight: var(--fw-semibold);
    display: block;
    font-size: .95rem;
    margin-bottom: 2px;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.learn-hero {
    overflow: hidden;
    background: var(--bg);
}

.learn-hero > .container {
    padding-top: clamp(54px, 6.5vw, 82px);
    padding-bottom: clamp(44px, 5.5vw, 70px);
}

.learn-hero .sec-label {
    margin-bottom: 20px;
}

.learn-hero__grid {
    display: grid;
    grid-template-columns: 1.35fr .95fr;
    gap: 52px;
    align-items: end;
}

.learn-hero__grid--full {
    grid-template-columns: 1fr;
}

h1.learn-hero__h1 {
    margin-top: 0;
    font-size: clamp(2.3rem, 5.2vw, 4.2rem);
}

.learn-hero__lede {
    margin-top: 24px;
}

.learn-hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 26px;
}

.learn-hero__chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 440px;
    margin-top: 26px;
}

/* Stat chips. The site-wide copy of these lives in pm/hero's own
   stylesheet, which WordPress only enqueues on pages that actually use that
   block — so a learn page (which doesn't) needs its own copy rather than a
   silent dependency on another block being present. */
.learn-sec .stat-chip {
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 14px 16px;
    background: var(--panel);
    transition: transform .3s var(--ease-standard), border-color .3s ease;
}

.learn-sec .stat-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 138, 92, .4);
}

.learn-sec .stat-chip .n {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: 1.9rem;
    color: var(--accent-soft);
    line-height: 1;
}

.learn-sec .stat-chip .l {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--mut);
    margin-top: 6px;
}

/* Glow blobs — base.css styles .glow itself; the size/position of each one
   is per-section, the same way the other hero blocks set theirs. */
.learn-hero .glow-a {
    width: 880px;
    height: 880px;
    background: radial-gradient(circle, rgba(255, 82, 14, .30), transparent 66%);
    top: -360px;
    right: -160px;
}

.learn-hero .glow-b {
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(255, 120, 60, .13), transparent 70%);
    bottom: -380px;
    left: -220px;
}

.learn-models-sec .glow-c {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(255, 82, 14, .16), transparent 70%);
    top: -150px;
    right: -110px;
}

.learn-models-sec {
    overflow: hidden;
    background: var(--bg);
}

/* ---------------------------------------------------------------------- */
/* Direct answer + jump list                                               */
/* ---------------------------------------------------------------------- */
.learn-answer-sec > .container {
    padding-top: clamp(70px, 8vw, 110px);
    padding-bottom: clamp(70px, 8vw, 110px);
}

.learn-answer {
    border: 1px solid var(--line);
    border-left: 2px solid var(--accent-soft);
    background: var(--panel);
    padding: clamp(24px, 3.4vw, 38px);
    border-radius: 4px;
}

.learn-answer h2 {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    letter-spacing: -.01em;
    max-width: 34rem;
}

.learn-answer p {
    color: var(--mut);
    font-size: 1rem;
    line-height: 1.65;
    margin-top: 14px;
    max-width: 44rem;
}

.learn-answer p.learn-answer__note {
    font-size: .94rem;
}

.learn-jump-wrap {
    margin-top: 52px;
}

.learn-jump-wrap h2 {
    margin-top: 12px;
}

.learn-jump {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    margin-top: 18px;
}

.learn-jump__item {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    font-size: .94rem;
    color: var(--mut);
    transition: background .18s, color .18s;
}

.learn-jump__item:nth-child(2n) {
    border-right: none;
}

.learn-jump__item:hover {
    background: var(--panel);
    color: var(--accent-soft);
}

.learn-jump__n {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mut-2);
    flex: none;
}

/* ---------------------------------------------------------------------- */
/* Roadmap — 3 x 3 sequence grid                                           */
/* ---------------------------------------------------------------------- */
.learn-roadmap > .container {
    padding-bottom: clamp(70px, 8vw, 110px);
}

.learn-road {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    margin-top: 34px;
}

.learn-road > div {
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.learn-road > div:nth-child(3n) {
    border-right: none;
}

.learn-road > div:nth-child(n+7) {
    border-bottom: none;
}

.learn-road h3 {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: 1.12rem;
    margin: 10px 0 8px;
}

.learn-road p {
    color: var(--mut);
    font-size: .9rem;
    line-height: 1.6;
}

/* ---------------------------------------------------------------------- */
/* Note callout — sits directly under the grid/table above it              */
/* ---------------------------------------------------------------------- */
.learn-note {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 20px 22px;
    margin-top: 0;
    border-top: none;
}

.learn-note--ruled {
    border-top: 1px solid var(--line);
}

.learn-note--gap {
    margin-top: 18px;
}

.learn-note b {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
}

.learn-note p {
    color: var(--mut);
    font-size: .93rem;
    line-height: 1.6;
    margin-top: 6px;
    max-width: 52rem;
}

.learn-note p a {
    color: var(--accent-soft);
}

/* ---------------------------------------------------------------------- */
/* Business model cards                                                    */
/* ---------------------------------------------------------------------- */
.learn-models-sec > .container {
    padding-top: clamp(80px, 9vw, 130px);
    padding-bottom: clamp(80px, 9vw, 130px);
}

.learn-models {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.learn-model {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.learn-model__tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.learn-model h3 {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: 1.3rem;
    margin: 14px 0 10px;
}

.learn-model > p {
    color: var(--mut);
    font-size: .93rem;
    line-height: 1.6;
}

.learn-model ul {
    list-style: none;
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
}

.learn-model li {
    display: flex;
    gap: 10px;
    font-size: .9rem;
    color: var(--mut);
    line-height: 1.5;
    padding: 5px 0;
}

.learn-model li::before {
    content: '—';
    color: var(--mut-2);
    flex: none;
}

.learn-model__foot {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mut-2);
    margin-top: auto;
    padding-top: 18px;
    line-height: 1.7;
}

.learn-model__foot span {
    color: var(--ink);
}

/* ---------------------------------------------------------------------- */
/* Supplier vetting table                                                  */
/* ---------------------------------------------------------------------- */
.learn-suppliers > .container {
    padding-top: clamp(80px, 9vw, 126px);
    padding-bottom: clamp(80px, 9vw, 126px);
}

.learn-tbl {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    border: 1px solid var(--line);
}

.learn-tbl th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mut-2);
    font-weight: 400;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.learn-tbl td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
    line-height: 1.55;
    color: var(--mut);
    vertical-align: top;
}

.learn-tbl tr:last-child td {
    border-bottom: none;
}

.learn-tbl td:first-child {
    color: var(--ink);
    font-weight: var(--fw-semibold);
    width: 26%;
}

.learn-tbl td.flag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-soft);
    width: 22%;
}

/* ---------------------------------------------------------------------- */
/* Checklists                                                              */
/* ---------------------------------------------------------------------- */
.learn-checks {
    list-style: none;
    margin-top: 22px;
    padding: 0;
}

.learn-checks li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: .96rem;
    line-height: 1.6;
    color: var(--mut);
}

.learn-checks li:last-child {
    border-bottom: none;
}

.learn-checks li::before {
    content: '✓';
    color: var(--accent-soft);
    font-size: .9rem;
    flex: none;
    padding-top: 2px;
}

.learn-checks li b {
    color: var(--ink);
    font-weight: var(--fw-semibold);
}

/* ---------------------------------------------------------------------- */
/* Opening catalog brief — mono key/value panel                            */
/* ---------------------------------------------------------------------- */
.learn-catalog > .container {
    padding-bottom: clamp(80px, 9vw, 126px);
}

.learn-brief {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel-2);
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 2.1;
    color: var(--mut);
}

.learn-brief__h {
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mut-2);
    margin-bottom: 12px;
}

.learn-brief span {
    color: var(--ink);
}

/* ---------------------------------------------------------------------- */
/* Generic two-column split                                                */
/* ---------------------------------------------------------------------- */
.learn-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    margin-top: 34px;
    align-items: start;
}

.learn-split--flush {
    margin-top: 0;
}

.learn-split--wide-left {
    grid-template-columns: 1.3fr .9fr;
}

.learn-split h3 {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: 1.15rem;
    margin-bottom: 4px;
}

/* ---------------------------------------------------------------------- */
/* Research-use-only positioning                                           */
/* ---------------------------------------------------------------------- */
.learn-ruo > .container {
    padding-top: clamp(80px, 9vw, 130px);
    padding-bottom: clamp(80px, 9vw, 130px);
}

/* ---------------------------------------------------------------------- */
/* Storefront requirement cards                                            */
/* ---------------------------------------------------------------------- */
.learn-storefront > .container {
    padding-top: clamp(80px, 9vw, 126px);
    padding-bottom: clamp(80px, 9vw, 126px);
}

.learn-reqs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    margin-top: 34px;
}

.learn-reqs > div {
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.learn-reqs > div:nth-child(3n) {
    border-right: none;
}

.learn-reqs > div:nth-child(n+4) {
    border-bottom: none;
}

.learn-reqs h3 {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.learn-reqs p {
    color: var(--mut);
    font-size: .9rem;
    line-height: 1.6;
}

/* ---------------------------------------------------------------------- */
/* Two-list sections (first traffic, pre-launch checklist)                 */
/* ---------------------------------------------------------------------- */
.learn-two-lists > .container {
    padding-bottom: clamp(80px, 9vw, 126px);
}

.learn-two-lists--padded > .container {
    padding-top: clamp(80px, 9vw, 126px);
}

/* ---------------------------------------------------------------------- */
/* First 90 days                                                           */
/* ---------------------------------------------------------------------- */
.learn-ninety > .container {
    padding-top: clamp(80px, 9vw, 130px);
    padding-bottom: clamp(80px, 9vw, 130px);
}

.learn-phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    margin-top: 34px;
}

.learn-phases > div {
    padding: 30px;
    border-right: 1px solid var(--line);
}

.learn-phases > div:last-child {
    border-right: none;
}

.learn-phases .d {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-soft);
}

.learn-phases h3 {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: 1.2rem;
    margin: 10px 0 12px;
}

.learn-phases ul {
    list-style: none;
    padding: 0;
}

.learn-phases li {
    color: var(--mut);
    font-size: .9rem;
    line-height: 1.55;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}

.learn-phases li:last-child {
    border-bottom: none;
}

.learn-fails-wrap {
    margin-top: 56px;
    max-width: 52rem;
}

.learn-fails-wrap h2 {
    margin-top: 12px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.learn-fails {
    list-style: none;
    margin-top: 20px;
    padding: 0;
    counter-reset: learnfail;
}

.learn-fails li {
    counter-increment: learnfail;
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--mut);
    font-size: .95rem;
    line-height: 1.6;
}

.learn-fails li:last-child {
    border-bottom: none;
}

.learn-fails li::before {
    content: counter(learnfail, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mut-2);
    flex: none;
    padding-top: 4px;
}

/* ---------------------------------------------------------------------- */
/* FAQ                                                                     */
/* ---------------------------------------------------------------------- */
.learn-faq > .container {
    padding-bottom: clamp(80px, 9vw, 126px);
}

.learn-faq h2 {
    margin-top: 14px;
    margin-bottom: 24px;
}

.learn-faq__item {
    border-top: 1px solid var(--line);
}

.learn-faq__item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    gap: 18px;
    align-items: baseline;
    padding: 20px 0;
}

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

/* The editor canvas can't use <details>/<summary> (clicking would toggle it
   instead of selecting the block), so it renders the same row as a div. */
.learn-faq__row {
    display: flex;
    gap: 18px;
    align-items: baseline;
    padding: 20px 0;
}

.learn-faq__qn {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-soft);
    flex: none;
}

.learn-faq__item summary h3 {
    font-family: var(--font-heading);
    font-weight: var(--fw-medium);
    font-size: 1.15rem;
    flex: 1;
}

.learn-faq__plus {
    color: var(--accent-soft);
    font-size: 1.3rem;
    transition: transform .2s ease;
}

.learn-faq__item[open] .learn-faq__plus {
    transform: rotate(45deg);
}

.learn-faq__answer {
    color: var(--mut);
    font-size: .95rem;
    line-height: 1.65;
    padding: 0 0 20px 44px;
    max-width: 44rem;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 960px) {
    .learn-hero__grid { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 900px) {
    .learn-road,
    .learn-reqs,
    .learn-models,
    .learn-phases { grid-template-columns: 1fr 1fr; }

    .learn-road > div:nth-child(3n) { border-right: 1px solid var(--line); }
    .learn-road > div:nth-child(2n) { border-right: none; }
    .learn-road > div:nth-child(n+7) { border-bottom: 1px solid var(--line); }
    .learn-reqs > div:nth-child(3n) { border-right: 1px solid var(--line); }
    .learn-reqs > div:nth-child(2n) { border-right: none; }
    .learn-reqs > div:nth-child(n+4) { border-bottom: 1px solid var(--line); }
    .learn-phases > div { border-right: none; border-bottom: 1px solid var(--line); }
    .learn-phases > div:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
    .learn-road,
    .learn-reqs,
    .learn-jump,
    .learn-split,
    .learn-split--wide-left { grid-template-columns: 1fr; gap: 0; }

    .learn-models { gap: 16px; grid-template-columns: 1fr; }
    .learn-hero__chips { grid-template-columns: 1fr 1fr; }

    .learn-road > div,
    .learn-reqs > div { border-right: none !important; border-bottom: 1px solid var(--line) !important; }

    .learn-road > div:last-child,
    .learn-reqs > div:last-child { border-bottom: none !important; }

    .learn-jump__item { border-right: none !important; }

    .learn-split,
    .learn-split--wide-left { gap: 34px; }

    .learn-tbl td:first-child { width: auto; }
    .learn-tbl thead { display: none; }
    .learn-tbl td { display: block; border-bottom: none; padding: 6px 18px; }
    .learn-tbl td.flag { padding-bottom: 18px; }
    .learn-tbl tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; }
}
