/* Illustrated daily edition, shared by the desk and phone Learn screen. */
body[data-view="learn"] .price-strip-wrap,
body[data-tab="learn"] .price-strip-wrap { display: none; }
.learn-week-panel > .ui-app-loader { min-height: 100%; box-sizing: border-box; }
.week-brief { --week-accent: #3b82f6; --week-paper: var(--ui-surface); color: var(--text, #17243c); }
.week-brief [hidden] { display: none !important; }
.week-brief.is-full { padding: 0; overflow: clip; font-size: calc(16px / var(--ui-scale, 1)); line-height: 1.65; border-radius: 18px; background: var(--week-paper); }
.week-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 44px; color: #f8faff; background: radial-gradient(ellipse at 90% 10%, #464ab0 0, transparent 55%), #202352; }
.week-hero-copy { max-width: 70ch; }
.week-brief .week-eyebrow { margin: 0 0 8px; font-size: .66em; font-weight: 800; letter-spacing: .15em; line-height: 1.5; }
.week-hero .week-eyebrow { color: #c7d2fe; }
.week-hero .week-card-title { margin: 0; color: #fff; font-size: 2.25em; line-height: 1.12; letter-spacing: -.045em; }
.week-hero .week-card-title span { display: block; color: #b8c3ff; }
.week-date-range { margin: 16px 0 0; font-size: .78em; }
.week-overview { max-width: 66ch; margin: 14px 0 18px; color: #e0e7ff; font-size: .95em; line-height: 1.7; }
.week-hero .week-jump { display: inline-flex; gap: 22px; align-items: center; padding: 9px 16px; border: 1px solid #a5b4fc80; border-radius: 9px; background: #ffffff12; color: #fff; font-size: .8em; font-weight: 700; text-decoration: none; }
.week-jump:hover { background: #ffffff25; }
.week-illustration { display: block; width: 100%; height: 160px; color: var(--week-accent); }
.week-illustration-hero { flex: 0 0 28%; max-width: 370px; height: auto; color: #c7d2fe; }
.week-brief-body { max-width: 1700px; margin: 0 auto; padding: 0 32px 24px; }
.week-edition { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 16px 0 22px; border-bottom: 1px solid var(--ui-border); }
.week-freshness, .week-refresh-label { margin: 0; font-size: .7em; color: var(--text-2, #475569); }
.week-refresh-label { flex-shrink: 0; }
.week-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 28px 0 16px; }
.week-section-heading .week-eyebrow { color: var(--text-2, #475569); }
.week-section-heading h3 { margin: 0; font-size: 1.45em; line-height: 1.2; letter-spacing: -.03em; }
.week-section-heading > p { margin: 0; font-size: .7em; color: var(--text-2, #475569); }
.week-priorities { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.week-priority { min-width: 0; border: 1px solid var(--ui-border); border-radius: 14px; overflow: clip; background: color-mix(in srgb, var(--week-accent) 3%, var(--week-paper)); }
.week-story > summary { cursor: pointer; list-style: none; }
.week-story > summary::-webkit-details-marker { display: none; }
.week-story-art { position: relative; background: color-mix(in srgb, var(--week-accent) 10%, var(--week-paper)); border-bottom: 1px solid color-mix(in srgb, var(--week-accent) 20%, transparent); }
.week-priority-number { position: absolute; top: 14px; left: 18px; font-size: .85em; font-weight: 800; color: var(--text-2, #475569); }
.week-company-initials { position: absolute; right: 16px; bottom: 14px; display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 5px; border: 1px solid var(--ui-border); border-radius: 50%; background: var(--week-paper); color: var(--text, #17243c); font-size: .7em; font-weight: 800; }
.week-story-heading { position: relative; padding: 18px 20px 0; }
.week-story-heading::after { content: '+'; position: absolute; right: 12px; top: 12px; font-size: .85em; color: var(--text-2, #475569); }
.week-story[open] .week-story-heading::after { content: '−'; }
.week-story-meta, .week-event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .68em; color: var(--text-2, #475569); }
.week-story-meta time { font-size: 1em; }
.week-category { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; background: color-mix(in srgb, var(--week-accent) 12%, var(--week-paper)); color: var(--text, #17243c); font-weight: 650; }
.week-category::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--week-accent); }
.week-story-heading h4 { margin: 12px 0; font-size: 1.08em; line-height: 1.4; letter-spacing: -.02em; overflow-wrap: anywhere; }
.week-priority:first-child h4 { font-size: 1.3em; }
.week-story-disclosure { display: block; padding-bottom: 16px; color: var(--text-2, #475569); font-size: .7em; }
.week-story[open] .week-story-disclosure { display: none; }
.week-story-body { padding: 0 20px 18px; }
.week-story-body p { margin: 16px 0; font-size: 1em; line-height: 1.65; }
.week-story-body p > strong { display: block; margin-bottom: 3px; font-size: .8em; }
.week-story-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--ui-border); }
.week-brief button, .week-brief select { font: inherit; }
.week-brief .week-event-title { display: block; appearance: none; background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 650; line-height: 1.5; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.week-story-actions .week-event-title { font-size: .75em; }
.week-event-title:hover { text-decoration: underline; }
.week-brief :is(button, a, summary, select):focus-visible { outline: 3px solid var(--accent, #4263eb); outline-offset: 3px; }
.week-story > summary:focus-visible, .week-day-nav button:focus-visible { outline-offset: -3px; }
.week-hero a:focus-visible { outline-color: #fff; }
.week-planner-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin: 22px 0 16px; }
.week-scope { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--ui-border); border-radius: 10px; background: var(--bg, #f6f8fc); }
.week-scope button { padding: 8px 16px; border: 0; border-radius: 7px; color: inherit; background: transparent; font-size: .8em; font-weight: 650; cursor: pointer; }
.week-scope button[aria-pressed="true"] { color: #fff; background: #4549a5; }
.week-category-filter { display: flex; gap: 10px; align-items: center; font-size: .75em; }
.week-category-filter select { min-height: 42px; max-width: 100%; padding: 7px 30px 7px 12px; border: 1px solid var(--ui-border); border-radius: 8px; color: inherit; background: var(--week-paper); }
.week-day-nav { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; padding: 3px; margin: 0 -3px; }
.week-day-nav button { min-width: 0; padding: 14px 8px 12px; border: 1px solid var(--ui-border); border-radius: 10px; background: var(--week-paper); color: inherit; cursor: pointer; text-align: center; }
.week-day-nav button[aria-selected="true"] { border-color: #6366c5; background: color-mix(in srgb, #6366f1 12%, var(--week-paper)); box-shadow: inset 0 -3px #6366c5; }
.week-day-nav button > span:first-child { display: block; font-size: .72em; font-weight: 750; }
.week-day-nav time { display: block; margin: 1px 0 6px; font-size: .92em; font-weight: 700; }
.week-day-dots { display: flex; justify-content: center; gap: 4px; min-height: 6px; }
.week-day-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--week-accent); }
.week-day-count { display: block; margin-top: 6px; color: var(--text-2, #475569); font-size: .65em; }
.week-planner-note { margin: 10px 0 18px; color: var(--text-2, #475569); font-size: .68em; }
.week-day { min-width: 0; padding: 22px; border: 1px solid var(--ui-border); border-radius: 12px; }
.week-day + .week-day { margin-top: 14px; }
.week-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--ui-border); }
.week-day-head h4 { margin: 0; font-size: 1.05em; }
.week-day-head time { margin-left: 8px; font-size: .8em; font-weight: 400; }
.week-agenda-count { font-size: .75em; color: var(--text-2, #475569); }
.week-agenda-event { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--ui-border); overflow-wrap: anywhere; }
.week-event-copy { min-width: 0; flex: 1; }
.week-event-meta { margin-top: 8px; }
.week-agenda-event .week-event-title { font-size: .94em; }
.week-agenda-event:last-child { border-bottom: 0; }
.week-brief .week-save { display: inline-flex; justify-content: center; flex: none; align-items: center; min-height: 40px; min-width: 70px; padding: 7px 12px; margin: 0; border: 1px solid var(--ui-border); border-radius: 8px; background: var(--week-paper); color: var(--text, #17243c); opacity: 1; font-size: .72em; font-weight: 650; cursor: pointer; }
.week-save[aria-pressed="true"] { background: color-mix(in srgb, #6366f1 12%, var(--week-paper)); }
.week-event-outcome { padding: 10px 12px; border-left: 3px solid #0d9488; background: color-mix(in srgb, #0d9488 7%, var(--week-paper)); font-size: .8em; line-height: 1.65; }
.week-event-outcome strong { margin-right: 5px; }
.week-quiet, .week-personal-message { font-size: .85em; color: var(--text-2, #475569); }
.week-personal-message { padding: 16px; margin: 14px 0; border: 1px solid var(--ui-border); border-radius: 10px; background: var(--bg, #f6f8fc); }
.week-personal-message p { margin: 0 0 8px; }
.week-personal-message button, .week-more { min-height: 42px; padding: 9px 16px; border: 1px solid var(--ui-border); border-radius: 8px; background: var(--week-paper); color: inherit; font-size: .8em; font-weight: 650; cursor: pointer; }
.week-more { display: block; margin: 16px auto 0; }
.week-changes { padding-top: 4px; }
.week-change-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.week-change-groups details { padding: 14px 16px; border: 1px solid var(--ui-border); border-radius: 10px; }
.week-change-groups summary { cursor: pointer; font-size: .85em; font-weight: 650; }
.week-change-groups summary span { float: right; margin-left: 8px; font-size: .85em; }
.week-change-groups p { font-size: .8em; overflow-wrap: anywhere; }
.week-brief .week-card-fine { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--ui-border); font-size: .68em; color: var(--text-2, #475569); }
@media (max-width: 1000px) {
    .week-hero { padding: 28px; }
    .week-hero .week-card-title { font-size: 2em; }
    .week-priorities { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .week-story-heading, .week-story-body { padding-left: 14px; padding-right: 14px; }
    .week-priority:first-child h4 { font-size: 1.08em; }
    .week-brief-body { padding-inline: 20px; }
}
@media (max-width: 640px) {
    .week-brief.is-full { border-radius: 14px; }
    .week-hero { position: relative; padding: 20px; gap: 0; }
    .week-hero-copy { position: relative; z-index: 1; }
    .week-hero .week-eyebrow { max-width: 75%; font-size: .58em; }
    .week-hero .week-card-title { max-width: 100%; font-size: 1.65em; }
    .week-illustration-hero { position: absolute; top: 10px; right: -14px; width: 130px; opacity: .45; }
    .week-date-range { max-width: 90%; font-size: .7em; }
    .week-overview { font-size: .92em; margin-top: 14px; }
    .week-jump { font-size: .8em; }
    .week-brief-body { padding: 0 16px 20px; }
    .week-edition { display: block; padding-bottom: 16px; }
    .week-refresh-label { display: block; margin-top: 4px; font-size: .65em; }
    .week-section-heading { align-items: start; flex-direction: column; gap: 5px; margin-top: 24px; }
    .week-section-heading h3 { font-size: 1.3em; }
    .week-section-heading .week-eyebrow { font-size: .6em; }
    .week-priorities { grid-template-columns: minmax(0, 1fr); }
    .week-story-art .week-illustration { height: 112px; }
    .week-story:not([open]) > summary { display: grid; grid-template-columns: 82px minmax(0, 1fr); }
    .week-story:not([open]) .week-story-art { border-bottom: 0; }
    .week-story:not([open]) .week-illustration { height: 100%; min-height: 112px; }
    .week-story:not([open]) .week-priority-number, .week-story:not([open]) .week-company-initials { display: none; }
    .week-story-heading { padding-top: 14px; }
    .week-story-heading h4 { margin: 8px 0; }
    .week-story-body p { font-size: 1em; }
    .week-story-meta { font-size: .65em; gap: 6px; }
    .week-category { padding: 3px 6px; }
    .week-planner-tools { align-items: stretch; gap: 12px; }
    .week-category-filter { width: 100%; justify-content: space-between; }
    .week-category-filter select { min-width: 0; flex: 1; }
    .week-day-nav { display: flex; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
    .week-day-nav button { flex: 0 0 83px; scroll-snap-align: start; }
    .week-day { padding: 16px; }
    .week-agenda-event { gap: 10px; }
    .week-agenda-event .week-event-title { font-size: 1em; }
    .week-brief .week-save { min-width: 55px; padding-inline: 9px; min-height: 44px; }
    .week-change-groups { grid-template-columns: minmax(0, 1fr); }
}

/* The phone shell already supplies the outer reading gutter. */
body[data-tab="learn"] .learn-week-panel > .week-brief.is-full { margin-inline: 0; }
