/* FarPoint - PD catalog pages (professional-development.html and data-to-decisions.html only).
   Page-scoped styles layered over styles.css; no global rules are changed here.
   A compact dark hero band, a soft lavender-gray course layer, white cards with
   accent bars and a gentle hover lift, and alternating section backgrounds so each
   section reads as its own layer. No animation beyond the hover lift.
   All classes are prefixed pdc- to avoid collisions. */

/* Page-local tokens */
.pdc-page {
    --pdc-tint: #f4f3fa;          /* light lavender-gray course layer */
    --pdc-tile: #faf9fd;          /* tinted tiles inside white cards */
    --pdc-hair: #e4e2ef;
    --pdc-teal: #0f766e;
    --pdc-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(30, 27, 75, 0.08), 0 20px 48px -24px rgba(30, 27, 75, 0.18);
    --pdc-card-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.08), 0 14px 32px rgba(30, 27, 75, 0.12), 0 28px 56px -24px rgba(30, 27, 75, 0.26);
    background: var(--pdc-tint);
}

/* ---- Hero: a compact dark band, short enough that the cards show on a 1366x768 laptop ---- */
.pdc-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 62%, #312e81 100%);
    color: var(--white);
    padding: 3.25rem 0 3rem;
    overflow: hidden;
}
.pdc-hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-texture) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-texture) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 85% 120% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 85% 120% at 50% 0%, #000 30%, transparent 75%);
}
.pdc-hero-inner {
    position: relative;
    max-width: 760px;
    text-align: center;
}
.pdc-crumbs {
    position: relative;
    font-size: 0.85rem;
    color: #a5b4fc;
    margin-bottom: 0.9rem;
}
.pdc-crumbs a { color: #c7d2fe; text-decoration: none; }
.pdc-crumbs a:hover { color: #ffffff; text-decoration: underline; }
.pdc-hero h1 {
    font-size: clamp(2rem, 4.2vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(139, 92, 246, 0.3);
    margin-bottom: 0.7rem;
}
.pdc-hero-lede {
    font-size: 1.08rem;
    color: var(--text-on-dark);
    max-width: 56ch;
    margin: 0 auto;
}

/* ---- Section layers ---- */
.pdc-section { padding: 4rem 0; }
.pdc-section-tint { background: var(--pdc-tint); }
.pdc-section-white { background: var(--white); }
.pdc-section-h {
    font-size: 1.8rem;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    color: var(--primary-navy);
}

/* ---- Chips and tags ---- */
.pdc-chip {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.9rem;
}
.pdc-chip-pending {
    color: #92600a;
    border: 1px solid rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.1);
}
.pdc-chip-soon {
    color: var(--pdc-teal);
    border: 1px solid rgba(15, 118, 110, 0.4);
    background: rgba(15, 118, 110, 0.07);
}
.pdc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}
.pdc-tags li {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--secondary-slate);
    background: var(--pdc-tile);
    border: 1px solid var(--pdc-hair);
    border-radius: var(--radius-pill);
    padding: 0.22rem 0.7rem;
    white-space: nowrap;
}

/* ---- Course chooser cards ---- */
.pdc-chooser {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
    align-items: stretch;
}
.pdc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--pdc-hair);
    border-radius: 20px;
    box-shadow: var(--pdc-card-shadow);
    padding: 2.25rem 2.25rem 2rem;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pdc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
}
.pdc-card-violet::before { background: linear-gradient(90deg, var(--violet-primary), var(--indigo-primary)); }
.pdc-card-teal::before { background: linear-gradient(90deg, var(--pdc-teal), #14b8a6); }
.pdc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pdc-card-shadow-hover);
}
@media (prefers-reduced-motion: reduce) {
    .pdc-card, .pdc-card:hover { transform: none; transition: none; }
}
.pdc-card h2 {
    font-size: 1.55rem;
    letter-spacing: -0.015em;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}
.pdc-tagline {
    font-weight: 600;
    color: var(--violet-primary);
    margin: 0 0 0.8rem;
    font-size: 1rem;
}
.pdc-card-teal .pdc-tagline { color: var(--pdc-teal); }
.pdc-card-body {
    color: var(--secondary-slate);
    font-size: 0.96rem;
    margin: 0;
}
.pdc-card-list {
    list-style: none;
    margin: 1.3rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--pdc-hair);
}
.pdc-card-list li {
    position: relative;
    padding: 0.32rem 0 0.32rem 1.5rem;
    color: var(--secondary-slate);
    font-size: 0.93rem;
}
.pdc-card-list li::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.85rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--violet-mid);
}
.pdc-card-teal .pdc-card-list li::before { background: var(--pdc-teal); }
.pdc-price {
    margin: 1.2rem 0 0;
    background: var(--pdc-tile);
    border: 1px solid var(--pdc-hair);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
}
.pdc-price strong {
    display: block;
    font-size: 1.25rem;
    color: var(--primary-navy);
    letter-spacing: -0.01em;
}
.pdc-price span { font-size: 0.85rem; color: var(--text-muted); }
.pdc-card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}
.pdc-card-foot {
    margin: auto 0 0;
    padding-top: 1.2rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Details page: featured course card ---- */
.pdc-featured {
    position: relative;
    background: var(--white);
    border: 1px solid var(--pdc-hair);
    border-radius: 20px;
    box-shadow: var(--pdc-card-shadow);
    padding: 2.75rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
    overflow: hidden;
}
.pdc-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--violet-primary), var(--indigo-primary));
}
.pdc-featured-head h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    letter-spacing: -0.015em;
    color: var(--primary-navy);
    margin-bottom: 0.3rem;
}
.pdc-course-subtitle {
    color: var(--secondary-slate);
    font-size: 1.02rem;
    margin-bottom: 0;
}
.pdc-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
    gap: 0.9rem;
    margin: 2rem 0;
}
.pdc-facts div {
    min-width: 0;
    background: var(--pdc-tile);
    border: 1px solid var(--pdc-hair);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    box-shadow: 0 1px 2px rgba(30, 27, 75, 0.05);
}
.pdc-facts dt {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--violet-primary);
}
.pdc-facts dd {
    margin: 0.25rem 0 0;
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.95rem;
    line-height: 1.4;
}
.pdc-featured-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.5rem 3.5rem;
}
.pdc-featured-cols h3 {
    font-size: 1.05rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}
.pdc-modules {
    list-style: none;
    counter-reset: pdc-mod;
    margin: 0;
    padding: 0;
}
.pdc-modules li {
    counter-increment: pdc-mod;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--pdc-hair);
    font-size: 0.95rem;
    color: var(--secondary-slate);
}
.pdc-modules li::before {
    content: counter(pdc-mod);
    flex: 0 0 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.09);
    color: var(--violet-primary);
    font-weight: 600;
    font-size: 0.8rem;
    align-self: center;
}
.pdc-modules li span:first-of-type { flex: 1; }
.pdc-hrs {
    color: var(--text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}
.pdc-format {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}
.pdc-format li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.5rem;
    color: var(--secondary-slate);
    font-size: 0.95rem;
}
.pdc-format li::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.95rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--violet-mid);
}
.pdc-featured-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}
.pdc-finenote {
    margin-top: 2.2rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 78ch;
}

/* ---- Professional development credit note: a tinted panel with a teal rule ---- */
.pdc-pdcredit {
    margin-top: 2.2rem;
    padding: 1.1rem 1.4rem;
    background: var(--pdc-tile);
    border: 1px solid var(--pdc-hair);
    border-left: 4px solid var(--pdc-teal);
    border-radius: 10px;
    max-width: 78ch;
}
.pdc-pdcredit h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--primary-navy);
}
.pdc-pdcredit p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-main);
}

/* ---- Ghost button on dark bands ---- */
.pdc-btn-ghost {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    color: #f1f5f9;
    border: 1px solid rgba(203, 213, 225, 0.4);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.pdc-btn-ghost:hover {
    border-color: var(--violet-light);
    background: rgba(124, 58, 237, 0.15);
}

/* ---- District band (dark layer) ---- */
.pdc-district {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--indigo-hero) 100%);
    color: var(--white);
}
.pdc-district-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.pdc-district h2 { color: #ffffff; font-size: 1.6rem; margin-bottom: 0.4rem; }
.pdc-district p { color: var(--text-on-dark); max-width: 60ch; margin: 0; }

/* ---- Timeline (details page) ---- */
.pdc-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
    gap: 1.25rem;
}
.pdc-timeline li {
    position: relative;
    background: var(--white);
    border: 1px solid var(--pdc-hair);
    border-radius: 16px;
    padding: 1.4rem 1.5rem 1.5rem;
    box-shadow: var(--pdc-card-shadow);
    border-top: 4px solid var(--violet-primary);
}
.pdc-when {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--violet-primary);
    margin-bottom: 0.45rem;
}
.pdc-timeline p { margin: 0; color: var(--secondary-slate); font-size: 0.95rem; }

/* ---- How courses are built ---- */
.pdc-built {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1.5rem;
}
.pdc-built-card {
    background: var(--pdc-tile);
    border: 1px solid var(--pdc-hair);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(30, 27, 75, 0.05);
}
.pdc-built-card h3 {
    font-size: 1rem;
    color: var(--primary-navy);
    margin-bottom: 0.55rem;
}
.pdc-built-card p { color: var(--secondary-slate); font-size: 0.95rem; margin: 0; }

/* ---- Instructor strip ---- */
.pdc-instructor { padding: 3rem 0; background: var(--pdc-tint); border-top: 1px solid var(--pdc-hair); }
.pdc-instructor-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.pdc-instructor h2 { font-size: 1.35rem; color: var(--primary-navy); margin-bottom: 0.3rem; }
.pdc-instructor p { color: var(--secondary-slate); margin: 0; }

/* ---- Focus states on the tinted and dark layers ---- */
.pdc-page a:focus-visible,
.pdc-page button:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Narrow screens ---- */
@media (max-width: 899px) {
    .pdc-hero { padding: 2.5rem 0 2.25rem; }
    .pdc-section { padding: 3rem 0; }
    .pdc-chooser { grid-template-columns: 1fr; }
    .pdc-card { padding: 1.75rem 1.4rem 1.6rem; }
    .pdc-featured-cols { grid-template-columns: 1fr; }
}
