/* tastemaker · 3A Dimension Pro reference · page: Australian Marketing Calendar
 * macrostructure: centred hook -> full-bleed calendar workbench -> editorial context -> close
 * typography: inherited from the active DomainFX/Avada theme; no plugin font declaration */
/* tastemaker · critique: ShowTell 4 · Phil 5 · Hier 5 · Spec 5 · Restr 4 · Var 5 */

.dfx-marketing-calendar {
    --dfxmc-bg: #11141d;
    --dfxmc-bg-deep: #0d1017;
    --dfxmc-surface: #1a1e28;
    --dfxmc-surface-high: #222633;
    --dfxmc-panel: #171a23;
    --dfxmc-cell: #20242e;
    --dfxmc-cell-low: #191c24;
    --dfxmc-text: #f2f4f8;
    --dfxmc-muted: #969dae;
    --dfxmc-muted-low: #747b8d;
    --dfxmc-red: #d41414;
    --dfxmc-red-light: #d8232a;
    --dfxmc-red-dark: #a60c0c;
    --dfxmc-line: rgba(255, 255, 255, 0.12);
    --dfxmc-line-soft: rgba(255, 255, 255, 0.075);
    --dfxmc-amber: #e8b84e;
    --dfxmc-blue: #4c83eb;
    --dfxmc-green: #54c579;
    --dfxmc-category: #ff6b70;
    --dfxmc-radius: 18px;
    --dfxmc-radius-large: 28px;
    --dfxmc-control-radius: 11px;
    --dfxmc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    background:
        radial-gradient(1100px 520px at 50% -220px, #282e42 0%, transparent 68%),
        var(--dfxmc-bg);
    color: var(--dfxmc-text);
    container-type: inline-size;
    line-height: 1.5;
    margin-inline: calc(50% - 50vw);
    max-width: 100vw;
    overflow: clip;
    width: 100vw;
}

body:has(.dfx-marketing-calendar) #main { padding-top: 0; }

.dfxmc-category--major-dates { --dfxmc-category: #ff6b70; }
.dfxmc-category--school-education { --dfxmc-category: #68d98b; }
.dfxmc-category--family-community { --dfxmc-category: #ff8da1; }
.dfxmc-category--health-awareness { --dfxmc-category: #bd9cff; }
.dfxmc-category--major-sport { --dfxmc-category: #75a7ff; }
.dfxmc-category--business-financial { --dfxmc-category: #f3c75e; }
.dfxmc-category--cultural-social { --dfxmc-category: #55d3c0; }
.dfxmc-category--local-events { --dfxmc-category: #f4a36a; }
.dfxmc-category--quirky-marketing { --dfxmc-category: #c7d06f; }

.dfx-marketing-calendar *,
.dfx-marketing-calendar *::before,
.dfx-marketing-calendar *::after { box-sizing: border-box; }

.dfx-marketing-calendar :where(h1, h2, h3, p, ol, ul, fieldset) { margin-top: 0; }
.dfx-marketing-calendar :where(h1, h2, h3) { color: var(--dfxmc-text); text-wrap: balance; }
.dfx-marketing-calendar :where(p, li) { text-wrap: pretty; }
.dfx-marketing-calendar :where(button, input, select) { font: inherit; }

.dfx-marketing-calendar .dfxmc-hero__title,
.dfx-marketing-calendar .dfxmc-calendar-head h3,
.dfx-marketing-calendar .dfxmc-planning-card h3,
.dfx-marketing-calendar .dfxmc-steps strong,
.dfx-marketing-calendar .dfxmc-close h2,
.dfx-marketing-calendar .dfxmc-dialog__panel h2,
.dfx-marketing-calendar .dfxmc-detail-section h3 {
    color: var(--dfxmc-text);
}

.dfx-marketing-calendar :where(button, a, input, select) {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(237, 28, 36, 0.16);
}

.dfx-marketing-calendar :where(button, a, input, select):focus-visible {
    outline: 3px solid rgba(255, 77, 85, 0.56);
    outline-offset: 3px;
}

.dfx-marketing-calendar [hidden] { display: none !important; }

.dfxmc-visually-hidden,
.dfxmc-tool__header h2,
.dfxmc-status {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.dfxmc-hero {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-inline: auto;
    width: 100%;
    min-height: 520px;
    padding: 88px 24px 76px;
    text-align: center;
}

.dfxmc-hero__copy { max-width: 780px; }

.dfxmc-hero__title {
    font-size: clamp(3rem, 6.4vw, 5.25rem);
    font-weight: 700;
    letter-spacing: -0.048em;
    line-height: 0.98;
    margin-bottom: 28px;
}

.dfxmc-hero__lead {
    color: var(--dfxmc-muted);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.5;
    margin: 0 auto 34px;
    max-width: 720px;
}

.dfxmc-button {
    align-items: center;
    background: var(--dfxmc-surface-high);
    border: 1px solid var(--dfxmc-line);
    border-radius: var(--dfxmc-control-radius);
    color: var(--dfxmc-text);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    justify-content: center;
    min-height: 48px;
    padding: 10px 22px;
    text-decoration: none;
    transition: background-color 180ms var(--dfxmc-ease-out), border-color 180ms var(--dfxmc-ease-out), color 180ms var(--dfxmc-ease-out), transform 120ms var(--dfxmc-ease-out);
}

.dfxmc-button--primary {
    background: linear-gradient(180deg, var(--dfxmc-red-light), var(--dfxmc-red));
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 28px rgba(237, 28, 36, 0.38), 0 0 34px rgba(237, 28, 36, 0.2);
    color: #ffffff;
    min-width: 240px;
}

.dfxmc-button--light {
    background: #f4f5f8;
    border-color: #f4f5f8;
    color: #151821;
    min-width: 190px;
}

.dfxmc-button--small { min-height: 42px; padding-inline: 16px; }

.dfxmc-button:active,
.dfxmc-filter-trigger:active,
.dfxmc-tabs button:active,
.dfxmc-event:active,
.dfxmc-planning-rail__item:active { transform: scale(0.985); }

@media (hover: hover) and (pointer: fine) {
    .dfxmc-button:hover { border-color: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }
    .dfxmc-button--primary:hover { background: linear-gradient(180deg, #cf2027, var(--dfxmc-red-dark)); color: #ffffff; }
    .dfxmc-button--light:hover { background: #ffffff; border-color: #ffffff; color: #151821; }
}

.dfxmc-tool {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: var(--dfxmc-radius-large);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    margin-inline: clamp(16px, 3vw, 48px);
    max-width: none;
    padding: 28px;
    scroll-margin-top: 160px;
}

.dfxmc-tool__header { display: flex; justify-content: flex-end; }
.dfxmc-data-summary { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; }
.dfxmc-data-note { color: var(--dfxmc-muted-low); font-size: 0.75rem; margin: 0 0 14px; }
.dfxmc-date-key { align-items: center; color: #f1d58c; display: inline-flex; font-size: 0.72rem; font-weight: 700; gap: 7px; margin: 0 0 14px; }
.dfxmc-date-key span {
    background: repeating-linear-gradient(135deg, rgba(232, 184, 78, 0.78) 0 3px, rgba(232, 184, 78, 0.18) 3px 6px);
    border: 1px dashed rgba(241, 213, 140, 0.8);
    border-radius: 3px;
    height: 12px;
    width: 24px;
}

.dfxmc-toolbar {
    align-items: end;
    background: rgba(9, 11, 17, 0.44);
    border: 1px solid var(--dfxmc-line-soft);
    border-radius: var(--dfxmc-radius);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(240px, 1.5fr) minmax(155px, 0.72fr) minmax(170px, 0.82fr) minmax(180px, 0.72fr);
    padding: 16px;
}

.dfxmc-search label,
.dfxmc-select-field label,
.dfxmc-control-label,
.dfxmc-range-control span {
    color: var(--dfxmc-muted-low);
    display: block;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.dfxmc-search input,
.dfxmc-select-field select,
.dfxmc-range-control select {
    background: var(--dfxmc-surface);
    border: 1px solid var(--dfxmc-line);
    border-radius: var(--dfxmc-control-radius);
    color: var(--dfxmc-text);
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
    width: 100%;
}

.dfxmc-search,
.dfxmc-select-field,
.dfxmc-filter-field { min-width: 0; }

.dfxmc-search input::placeholder { color: var(--dfxmc-muted-low); }
.dfxmc-search input:focus,
.dfxmc-select-field select:focus,
.dfxmc-range-control select:focus { border-color: rgba(255, 77, 85, 0.72); }
.dfxmc-select-field select:disabled { cursor: not-allowed; opacity: 0.45; }

.dfxmc-filter-trigger {
    align-items: center;
    background: var(--dfxmc-surface-high);
    border: 1px solid var(--dfxmc-line);
    border-radius: var(--dfxmc-control-radius);
    color: var(--dfxmc-text);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
    white-space: nowrap;
    width: 100%;
}

.dfxmc-filter-trigger span {
    align-items: center;
    background: var(--dfxmc-red);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.7rem;
    justify-content: center;
    min-height: 20px;
    min-width: 26px;
    padding-inline: 7px;
}

.dfxmc-category-panel {
    background: var(--dfxmc-surface-high);
    border: 1px solid var(--dfxmc-line);
    border-radius: var(--dfxmc-radius);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
    margin-top: 12px;
    padding: 20px;
}

.dfxmc-category-panel fieldset { border: 0; margin: 0; padding: 0; }
.dfxmc-category-panel legend { color: var(--dfxmc-text); font-weight: 700; margin-bottom: 14px; }

.dfxmc-category-grid {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dfxmc-category-option {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--dfxmc-line-soft);
    border-radius: 9px;
    color: var(--dfxmc-muted);
    cursor: pointer;
    display: flex;
    font-size: 0.84rem;
    gap: 9px;
    min-height: 40px;
    padding: 8px 10px;
}

.dfxmc-category-option input { accent-color: var(--dfxmc-red); height: 16px; width: 16px; }
.dfxmc-category-swatch {
    background: var(--dfxmc-category);
    border-radius: 50%;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dfxmc-category) 16%, transparent);
    flex: 0 0 8px;
    height: 8px;
    width: 8px;
}

.dfxmc-category-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
}

.dfxmc-text-button {
    background: transparent;
    border: 0;
    color: var(--dfxmc-muted);
    cursor: pointer;
    font-size: 0.84rem;
    padding: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dfxmc-view-row {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 14px 0 16px;
}

.dfxmc-view-options { align-items: end; display: flex; gap: 12px; }
.dfxmc-year-control select { min-width: 104px; }

.dfxmc-tabs {
    background: rgba(9, 11, 17, 0.52);
    border: 1px solid var(--dfxmc-line-soft);
    border-radius: 999px;
    display: inline-flex;
    padding: 4px;
}

.dfxmc-tabs button {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--dfxmc-muted);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    min-height: 34px;
    padding: 6px 16px;
}

.dfxmc-tabs button[aria-selected="true"] {
    background: linear-gradient(180deg, var(--dfxmc-red-light), var(--dfxmc-red));
    box-shadow: 0 5px 16px rgba(237, 28, 36, 0.32);
    color: #ffffff;
}

.dfxmc-range-control { min-width: 170px; }
.dfxmc-results { min-height: 280px; }

.dfxmc-calendar-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 23vw, 390px);
}

.dfxmc-calendar-shell,
.dfxmc-planning-rail {
    background: rgba(9, 11, 17, 0.46);
    border: 1px solid var(--dfxmc-line-soft);
    border-radius: var(--dfxmc-radius);
}

.dfxmc-calendar-shell { overflow: hidden; padding: 20px; }

.dfxmc-calendar-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dfxmc-calendar-head h3 { font-size: 1.25rem; line-height: 1.2; margin: 0; }
.dfxmc-calendar-nav { display: flex; gap: 8px; }

.dfxmc-icon-button {
    align-items: center;
    background: var(--dfxmc-surface-high);
    border: 1px solid var(--dfxmc-line-soft);
    border-radius: 50%;
    color: var(--dfxmc-muted);
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    width: 38px;
}

.dfxmc-calendar-grid {
    display: block;
}

.dfxmc-calendar-weekdays,
.dfxmc-calendar-week {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.dfxmc-calendar-weekdays { margin-bottom: 9px; }
.dfxmc-calendar-weeks { display: grid; gap: 9px; }

.dfxmc-calendar-week {
    isolation: isolate;
    position: relative;
}

.dfxmc-calendar-weekday { color: var(--dfxmc-muted-low); font-size: 0.7rem; padding: 0 6px 4px; }

.dfxmc-calendar-day {
    background: linear-gradient(145deg, var(--dfxmc-cell), var(--dfxmc-cell-low));
    border: 1px solid var(--dfxmc-line-soft);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    grid-row: 1;
    min-height: calc(100px + (var(--dfxmc-range-lanes, 0) * 26px));
    overflow: hidden;
    padding: calc(39px + (var(--dfxmc-range-lanes, 0) * 26px)) 9px 9px;
    position: relative;
}

.dfxmc-calendar-day--weekend { background: linear-gradient(145deg, #222630, #1b1e27); }

.dfxmc-calendar-day--outside {
    background: rgba(5, 7, 11, 0.2);
    border-style: dashed;
    opacity: 0.36;
}

.dfxmc-calendar-day__number {
    left: 9px;
    position: absolute;
    top: 9px;
}

.dfxmc-calendar-range {
    align-self: start;
    background: color-mix(in srgb, var(--dfxmc-category) 78%, #11141d);
    border: 1px solid color-mix(in srgb, var(--dfxmc-category) 84%, white 16%);
    border-radius: 5px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3), inset 3px 0 0 var(--dfxmc-category);
    color: #fff;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 800;
    grid-row: 1;
    height: 22px;
    line-height: 20px;
    margin: calc(37px + (var(--dfxmc-range-lane) * 26px)) 3px 0;
    min-width: 0;
    overflow: hidden;
    padding: 0 7px;
    position: relative;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 3;
}

.dfxmc-calendar-range.dfxmc-date--estimated {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 3px, transparent 3px 7px),
        color-mix(in srgb, var(--dfxmc-category) 68%, #11141d);
    border-style: dashed;
}

.dfxmc-calendar-range--continues-before {
    border-bottom-left-radius: 0;
    border-left-color: transparent;
    border-top-left-radius: 0;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
}

.dfxmc-calendar-range--continues-after {
    border-bottom-right-radius: 0;
    border-right-color: transparent;
    border-top-right-radius: 0;
}

.dfxmc-calendar-day__number {
    color: var(--dfxmc-text);
    display: block;
    font-size: 0.79rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    margin-bottom: 8px;
}

.dfxmc-calendar-event {
    background: color-mix(in srgb, var(--dfxmc-category) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--dfxmc-category) 38%, transparent);
    border-radius: 6px;
    color: var(--dfxmc-text);
    cursor: pointer;
    display: block;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 5px;
    overflow: hidden;
    padding: 5px 6px;
    text-align: left;
    text-overflow: ellipsis;
    width: 100%;
}

.dfxmc-calendar-event--high {
    background: color-mix(in srgb, var(--dfxmc-category) 23%, transparent);
    border-color: color-mix(in srgb, var(--dfxmc-category) 65%, transparent);
    box-shadow: inset 3px 0 0 var(--dfxmc-category);
}

.dfxmc-calendar-event.dfxmc-date--estimated {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 3px, transparent 3px 7px),
        color-mix(in srgb, var(--dfxmc-category) 16%, #171a22);
    border-style: dashed;
}

.dfxmc-calendar-mobile { display: none; }

.dfxmc-planning-rail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.dfxmc-planning-rail header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 2px; }
.dfxmc-planning-rail header strong,
.dfxmc-planning-rail header small { display: block; }
.dfxmc-planning-rail header strong { color: var(--dfxmc-text); font-size: 1rem; }
.dfxmc-planning-rail header small { color: var(--dfxmc-muted-low); font-size: 0.7rem; margin-top: 1px; }

.dfxmc-planning-rail__item {
    background: linear-gradient(145deg, var(--dfxmc-surface-high), var(--dfxmc-surface));
    border: 1px solid color-mix(in srgb, var(--dfxmc-category) 28%, var(--dfxmc-line));
    border-radius: 12px;
    color: var(--dfxmc-text);
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 100px;
    padding: 14px;
    text-align: left;
    transition: border-color 180ms var(--dfxmc-ease-out), transform 120ms var(--dfxmc-ease-out);
}

.dfxmc-planning-rail__bar {
    background: var(--dfxmc-category);
    border-radius: 999px;
    grid-column: 1 / -1;
    height: 4px;
    margin-bottom: 11px;
}
.dfxmc-planning-rail__item strong { font-size: 0.86rem; grid-column: 1 / -1; line-height: 1.25; }
.dfxmc-planning-rail__item small { color: var(--dfxmc-muted); font-size: 0.68rem; grid-column: 1 / -1; margin: 1px 0 9px; }
.dfxmc-planning-rail__date,
.dfxmc-planning-rail__lead { color: var(--dfxmc-muted-low); font-size: 0.68rem; }
.dfxmc-planning-rail__lead { color: #ff858a; font-weight: 700; text-align: right; }
.dfxmc-planning-rail__empty { color: var(--dfxmc-muted); font-size: 0.82rem; margin: 12px 0; }

.dfxmc-planning-rail__all {
    background: transparent;
    border: 1px solid var(--dfxmc-line-soft);
    border-radius: 10px;
    color: var(--dfxmc-muted);
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
    margin-top: auto;
    min-height: 40px;
    padding: 8px 12px;
}

@media (hover: hover) and (pointer: fine) {
    .dfxmc-planning-rail__item:hover,
    .dfxmc-event:hover { border-color: rgba(255, 255, 255, 0.26); transform: translateY(-1px); }
}

.dfxmc-group {
    border-bottom: 1px solid var(--dfxmc-line-soft);
    display: grid;
    gap: 18px;
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 8px 0 18px;
}

.dfxmc-group + .dfxmc-group { padding-top: 18px; }
.dfxmc-group__date { color: var(--dfxmc-muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; font-weight: 700; padding-top: 15px; text-transform: uppercase; }
.dfxmc-group__events { display: grid; gap: 9px; }

.dfxmc-event {
    align-items: center;
    background: linear-gradient(145deg, var(--dfxmc-surface-high), var(--dfxmc-surface));
    border: 1px solid color-mix(in srgb, var(--dfxmc-category) 24%, var(--dfxmc-line));
    box-shadow: inset 3px 0 0 var(--dfxmc-category);
    border-radius: 12px;
    color: var(--dfxmc-text);
    cursor: pointer;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 76px;
    padding: 15px 18px;
    text-align: left;
    transition: border-color 180ms var(--dfxmc-ease-out), transform 120ms var(--dfxmc-ease-out);
    width: 100%;
}

.dfxmc-event.dfxmc-date--estimated,
.dfxmc-planning-card.dfxmc-date--estimated,
.dfxmc-planning-rail__item.dfxmc-date--estimated {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 5px, transparent 5px 11px),
        linear-gradient(145deg, var(--dfxmc-surface-high), var(--dfxmc-surface));
    border-style: dashed;
}

.dfxmc-event__title { color: var(--dfxmc-text); display: block; font-size: 0.98rem; }

.dfxmc-event__meta {
    align-items: center;
    color: var(--dfxmc-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.74rem;
    gap: 7px;
    margin-top: 5px;
}

.dfxmc-event__dates {
    color: var(--dfxmc-text);
    font-variant-numeric: tabular-nums;
    font-weight: 750;
}

.dfxmc-badge {
    background: rgba(237, 28, 36, 0.14);
    border: 1px solid rgba(255, 77, 85, 0.22);
    border-radius: 999px;
    color: #ff9ba0;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 2px 7px;
}

.dfxmc-badge[class*="dfxmc-category--"] {
    background: color-mix(in srgb, var(--dfxmc-category) 13%, transparent);
    border-color: color-mix(in srgb, var(--dfxmc-category) 34%, transparent);
    color: var(--dfxmc-category);
}

.dfxmc-badge--preview,
.dfxmc-badge--estimated { background: rgba(232, 184, 78, 0.12); border-color: rgba(232, 184, 78, 0.42); color: #f1d58c; }
.dfxmc-event__planning { color: var(--dfxmc-muted); font-size: 0.74rem; font-weight: 700; text-align: right; }

.dfxmc-planning-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dfxmc-planning-card {
    background: linear-gradient(145deg, var(--dfxmc-surface-high), var(--dfxmc-surface));
    border: 1px solid color-mix(in srgb, var(--dfxmc-category) 28%, var(--dfxmc-line));
    box-shadow: inset 0 3px 0 var(--dfxmc-category);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 22px;
}

.dfxmc-planning-card__window { color: var(--dfxmc-category); font-size: 0.72rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; }
.dfxmc-planning-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.dfxmc-planning-card p:not(.dfxmc-planning-card__window) { color: var(--dfxmc-muted); font-size: 0.84rem; }
.dfxmc-planning-card .dfxmc-button { margin-top: auto; }

.dfxmc-empty,
.dfxmc-error {
    background: rgba(9, 11, 17, 0.46);
    border: 1px solid var(--dfxmc-line-soft);
    border-radius: var(--dfxmc-radius);
    color: var(--dfxmc-muted);
    padding: 40px;
    text-align: center;
}

.dfxmc-empty h3,
.dfxmc-error h3 { font-size: 1.3rem; margin-bottom: 8px; }
.dfxmc-empty p,
.dfxmc-error p { margin-bottom: 18px; }

.dfxmc-tagline,
.dfxmc-explainer,
.dfxmc-method,
.dfxmc-faq,
.dfxmc-close {
    margin-inline: auto;
    max-width: 1440px;
    padding-inline: clamp(24px, 5vw, 80px);
}

.dfxmc-tagline {
    border-bottom: 1px solid var(--dfxmc-line-soft);
    border-top: 1px solid var(--dfxmc-line-soft);
    margin-top: 88px;
    padding-bottom: 96px;
    padding-top: 96px;
}

.dfxmc-tagline p {
    color: var(--dfxmc-text);
    font-size: clamp(2.25rem, 5vw, 4.7rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.02;
    margin: 0;
    max-width: 1050px;
}

.dfxmc-explainer { padding-bottom: 88px; padding-top: 104px; }

.dfxmc-section-heading { margin-bottom: 40px; max-width: 720px; }
.dfxmc-kicker {
    color: #ff858a;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.dfxmc-section-heading h2,
.dfxmc-method h2,
.dfxmc-faq > h2 {
    color: var(--dfxmc-text);
    font-size: clamp(1.85rem, 3vw, 2.8rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-bottom: 0;
}

.dfxmc-steps {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.dfxmc-steps li {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    min-height: 190px;
    padding: 28px;
}

.dfxmc-steps li > span {
    align-items: center;
    background: linear-gradient(180deg, var(--dfxmc-red-light), var(--dfxmc-red));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(237, 28, 36, 0.32);
    color: #ffffff;
    display: flex;
    font-size: 0.86rem;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    margin-bottom: 21px;
    width: 42px;
}

.dfxmc-steps strong { color: var(--dfxmc-text); display: block; font-size: 1.02rem; margin-bottom: 8px; }
.dfxmc-steps p { color: var(--dfxmc-muted); font-size: 0.84rem; margin-bottom: 0; }

.dfxmc-method {
    align-items: start;
    border-bottom: 1px solid var(--dfxmc-line-soft);
    border-top: 1px solid var(--dfxmc-line-soft);
    display: grid;
    gap: clamp(40px, 8vw, 120px);
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    padding-bottom: 88px;
    padding-top: 88px;
}

.dfxmc-method > p {
    color: var(--dfxmc-muted);
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    line-height: 1.65;
    margin: 4px 0 0;
    max-width: 720px;
}

.dfxmc-faq { padding-bottom: 88px; padding-top: 104px; }
.dfxmc-faq > h2 { margin-bottom: 38px; }
.dfxmc-faq details {
    border-top: 1px solid var(--dfxmc-line);
    max-width: 1120px;
}
.dfxmc-faq details:last-child { border-bottom: 1px solid var(--dfxmc-line); }
.dfxmc-faq summary {
    color: var(--dfxmc-text);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    min-height: 58px;
    padding: 18px 38px 18px 0;
}
.dfxmc-faq details[open] summary { color: #ff9ba0; }
.dfxmc-faq details p {
    color: var(--dfxmc-muted);
    margin: -2px 0 22px;
    max-width: 850px;
    padding-right: 24px;
}

.dfxmc-close { padding-bottom: 112px; padding-top: 56px; text-align: center; }

.dfxmc-close h2 {
    font-size: clamp(2rem, 4vw, 3.15rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin: 0 auto 28px;
    max-width: 920px;
}

.dfxmc-dialog { inset: 0; position: fixed; z-index: 100000; }

.dfxmc-dialog__backdrop {
    background: rgba(4, 5, 9, 0.78);
    border: 0;
    cursor: default;
    inset: 0;
    padding: 0;
    position: absolute;
    width: 100%;
}

.dfxmc-dialog__panel {
    background: linear-gradient(145deg, rgba(38, 43, 58, 0.99), rgba(23, 26, 35, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 18px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
    color: var(--dfxmc-text);
    inset: 50% auto auto 50%;
    max-height: min(84vh, 820px);
    max-width: 650px;
    overflow-y: auto;
    padding: 42px;
    position: absolute;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
}

.dfxmc-dialog__close {
    align-items: center;
    background: var(--dfxmc-surface-high);
    border: 1px solid var(--dfxmc-line);
    border-radius: 50%;
    color: var(--dfxmc-muted);
    cursor: pointer;
    display: flex;
    font-size: 1.35rem;
    height: 38px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 38px;
}

.dfxmc-detail-date { color: #ff858a; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; margin-bottom: 8px; text-transform: uppercase; }
.dfxmc-date-warning {
    background: linear-gradient(145deg, rgba(232, 184, 78, 0.2), rgba(232, 184, 78, 0.09));
    border: 2px solid rgba(241, 213, 140, 0.72);
    border-radius: 12px;
    box-shadow: inset 5px 0 0 #e8b84e;
    color: #fff4d2;
    margin: 0 42px 28px 0;
    padding: 20px 22px 20px 26px;
}
.dfxmc-date-warning strong { display: block; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.18; margin-bottom: 8px; }
.dfxmc-date-warning p { color: #f4dfaa !important; font-size: 0.9rem !important; margin: 0; }
.dfxmc-dialog__panel h2 { font-size: 2rem; margin: 0 42px 10px 0; }
.dfxmc-detail-section { border-top: 1px solid var(--dfxmc-line-soft); margin-top: 22px; padding-top: 22px; }
.dfxmc-detail-section h3 { font-size: 0.96rem; margin-bottom: 8px; }
.dfxmc-detail-section p,
.dfxmc-detail-section li,
.dfxmc-dialog__panel > div > p { color: var(--dfxmc-muted); font-size: 0.88rem; }
.dfxmc-detail-section ul { margin-bottom: 0; padding-left: 20px; }
.dfxmc-source-link { color: #ff9ba0; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.dfxmc-dialog-open { overflow: hidden; }

@container (max-width: 980px) {
    .dfxmc-tool { margin-inline: 20px; }
    .dfxmc-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dfxmc-search { grid-column: 1 / -1; }
    .dfxmc-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dfxmc-calendar-layout { grid-template-columns: 1fr; }
    .dfxmc-planning-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dfxmc-planning-rail header,
    .dfxmc-planning-rail__all { grid-column: 1 / -1; }
    .dfxmc-explainer { padding-inline: 20px; }
    .dfxmc-method { gap: 44px; }
    .dfxmc-planning-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 680px) {
    .dfxmc-hero { min-height: 430px; padding: 66px 20px 56px; }
    .dfxmc-hero__title { font-size: clamp(2.65rem, 13vw, 4rem); letter-spacing: -0.055em; }
    .dfxmc-hero__lead { font-size: 1rem; }
    .dfxmc-tool { border-radius: 20px; margin-inline: 12px; padding: 14px; }
    .dfxmc-data-note { text-align: right; }
    .dfxmc-toolbar,
    .dfxmc-category-grid { grid-template-columns: 1fr; }
    .dfxmc-search { grid-column: auto; }
    .dfxmc-view-row { align-items: stretch; flex-direction: column; }
    .dfxmc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dfxmc-tabs button { padding-inline: 7px; }
    .dfxmc-range-control { width: 100%; }
    .dfxmc-calendar-shell { background: transparent; border: 0; padding: 0; }
    .dfxmc-calendar-grid { display: none; }
    .dfxmc-calendar-mobile { display: grid; gap: 8px; }
    .dfxmc-calendar-mobile--empty { color: var(--dfxmc-muted); padding: 24px 0; }
    .dfxmc-calendar-head { background: rgba(9, 11, 17, 0.46); border: 1px solid var(--dfxmc-line-soft); border-radius: 12px; padding: 14px; }
    .dfxmc-planning-rail { display: flex; }
    .dfxmc-group { gap: 7px; grid-template-columns: 1fr; }
    .dfxmc-group__date { padding-top: 8px; }
    .dfxmc-event { align-items: start; grid-template-columns: 1fr; }
    .dfxmc-view-row { align-items: stretch; flex-direction: column; }
    .dfxmc-view-options { justify-content: space-between; width: 100%; }
    .dfxmc-view-options > label { flex: 1 1 0; }
    .dfxmc-date-warning { margin-right: 30px; }
    .dfxmc-event__planning { text-align: left; }
    .dfxmc-planning-grid,
    .dfxmc-steps { grid-template-columns: 1fr; }
    .dfxmc-tagline { margin-top: 58px; padding: 70px 20px; }
    .dfxmc-explainer { padding: 68px 20px 42px; }
    .dfxmc-steps li { min-height: 0; padding: 24px; }
    .dfxmc-method { gap: 24px; grid-template-columns: 1fr; padding: 62px 20px; }
    .dfxmc-faq { padding: 68px 20px; }
    .dfxmc-close { padding: 48px 20px 84px; }
    .dfxmc-dialog__panel { border-radius: 18px 18px 0 0; bottom: 0; inset: auto 0 0; max-height: 88vh; max-width: none; padding: 46px 24px 30px; transform: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .dfx-marketing-calendar *,
    .dfx-marketing-calendar *::before,
    .dfx-marketing-calendar *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
