body:has(.weeks-year) { background: #f7f5ee; color: #17392f; }
.page-weeks-in-year { display: block; min-width: 0; padding: 28px clamp(14px, 3vw, 34px) 75px; }
.weeks-year { --wy-ink: #17392f; --wy-muted: #49635b; --wy-line: #d8e1d8; width: min(1000px, 100%); margin: auto; font-family: Arial, sans-serif; }
.weeks-year * { box-sizing: border-box; }
.weeks-year-header { max-width: 780px; padding: 14px 0 27px; }
.weeks-year-overline, .weeks-year-section-heading > span { color: #9b4b2d; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.weeks-year-header h1 { max-width: 760px; margin: 0 0 12px; color: var(--wy-ink); font-family: Georgia, serif; font-size: clamp(35px, 5.4vw, 64px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; }
.weeks-year-header p { max-width: 640px; margin: 0; color: var(--wy-muted); font-size: clamp(15px, 1.8vw, 18px); line-height: 1.6; }
.weeks-year-dashboard { padding: clamp(19px, 3vw, 30px); border: 1px solid #17392f; border-radius: 22px; background: linear-gradient(150deg, #17392f, #225747); color: #fff; box-shadow: 0 18px 32px #17392f1f; }
.weeks-year-dashboard-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.weeks-year-overline { color: #f3c5a5; }
.weeks-year-dashboard h2 { margin: 7px 0 0; color: #fff; font-family: Georgia, serif; font-size: clamp(25px, 3.2vw, 36px); letter-spacing: -.035em; }
.weeks-year-form { display: block; }
.weeks-year-form label { display: block; margin-bottom: 7px; color: #e2f1e9; font-size: 12px; font-weight: 700; }
.weeks-year-form > div { display: flex; gap: 7px; }
.weeks-year-form input { width: 95px; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid #b7d4c6; border-radius: 9px; background: #fff; color: var(--wy-ink); font: 700 16px Arial, sans-serif; }
.weeks-year-form button { display: flex; align-items: center; gap: 5px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 9px; background: #e6b884; color: #193c30; font-weight: 800; cursor: pointer; }
.weeks-year-form button:hover { background: #f4c997; }
.weeks-year-form button svg { width: 16px; height: 16px; }
.weeks-year-error { margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff4df; color: #733e10; font-size: 13px; }
.weeks-year-answer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 27px; }
.weeks-year-answer { min-width: 0; min-height: 173px; padding: 17px; border: 1px solid #ffffff43; border-radius: 15px; background: #ffffff12; }
.weeks-year-answer-primary { background: #f6f0df; color: var(--wy-ink); }
.weeks-year-answer > span { display: block; min-height: 27px; font-size: 10px; font-weight: 800; letter-spacing: .11em; line-height: 1.35; }
.weeks-year-answer strong { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: clamp(45px, 7vw, 70px); letter-spacing: -.06em; line-height: 1; }
.weeks-year-answer p { margin: 10px 0 0; font-size: 12px; line-height: 1.45; }
.weeks-year-equation { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; color: #ecf5ed; font-size: 13px; font-weight: 700; }
.weeks-year-equation b { color: #efbd83; font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.weeks-year-pattern, .weeks-year-boundary, .weeks-year-comparison, .weeks-year-editorial { margin-top: 19px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--wy-line); border-radius: 20px; background: #fffefb; }
.weeks-year-section-heading h2 { margin: 8px 0 7px; color: var(--wy-ink); font-family: Georgia, serif; font-size: clamp(25px, 3vw, 35px); letter-spacing: -.035em; line-height: 1.12; }
.weeks-year-section-heading p { max-width: 720px; margin: 0; color: var(--wy-muted); font-size: 14px; line-height: 1.6; }
.weeks-year-pattern-board { display: flex; align-items: center; gap: 12px; margin-top: 23px; padding: 21px; border-radius: 14px; background: #eff3ec; }
.weeks-year-mosaic { display: grid; flex: 1; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 5px; }
.weeks-year-mosaic span { height: 17px; border-radius: 4px; background: #3f806a; box-shadow: inset 0 -2px #22564254; }
.weeks-year-tail { display: flex; gap: 4px; align-items: center; }
.weeks-year-tail span { display: block; width: 12px; height: 17px; border-radius: 4px; background: #c16b43; }
.weeks-year-legend { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 13px; color: var(--wy-muted); font-size: 12px; }
.weeks-year-legend span { display: flex; align-items: center; gap: 6px; }
.weeks-year-legend i { width: 10px; height: 10px; border-radius: 2px; background: #3f806a; }
.weeks-year-legend span:last-child i { background: #c16b43; }
.weeks-year-boundary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 23px; }
.weeks-year-boundary-grid > div { min-width: 0; padding: 19px; border: 1px solid #d8e4d8; border-radius: 14px; background: #f8fbf5; }
.weeks-year-boundary-grid span { color: #657b6d; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.weeks-year-boundary-grid strong { display: block; margin: 8px 0; color: #215643; font-family: Georgia, serif; font-size: 43px; line-height: 1; }
.weeks-year-boundary-grid p { margin: 0; color: var(--wy-ink); font-size: 13px; line-height: 1.6; }
.weeks-year-note { margin: 16px 0 0; padding-left: 12px; border-left: 3px solid #c16b43; color: var(--wy-muted); font-size: 13px; line-height: 1.6; }
.weeks-year-table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--wy-line); border-radius: 13px; }
.weeks-year-comparison table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.weeks-year-comparison th, .weeks-year-comparison td { padding: 13px 15px; border-bottom: 1px solid var(--wy-line); white-space: nowrap; }
.weeks-year-comparison tr:last-child th, .weeks-year-comparison tr:last-child td { border-bottom: 0; }
.weeks-year-comparison thead { background: #eaf0e8; color: #38574a; font-size: 11px; }
.weeks-year-comparison tbody tr:nth-child(even) { background: #f8faf5; }
.weeks-year-comparison tbody tr.is-selected { background: #f6e8cf; }
.weeks-year-comparison .weeks-year-table-form { display: inline; }
.weeks-year-comparison .weeks-year-table-form button { padding: 0; border: 0; color: #19513b; background: none; cursor: pointer; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.weeks-year-comparison .weeks-year-table-form button:focus-visible { outline: 2px solid #19513b; outline-offset: 3px; }
.weeks-year-comparison th span { display: inline-block; margin-left: 5px; padding: 3px 5px; border-radius: 4px; background: #265b46; color: #fff; font-size: 9px; }
.weeks-year-editorial { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; }
.weeks-year-editorial h2 { margin: 2px 0 7px; color: var(--wy-ink); font-family: Georgia, serif; font-size: 22px; line-height: 1.2; }
.weeks-year-editorial p { margin: 0 0 18px; color: var(--wy-muted); font-size: 13px; line-height: 1.7; }
.weeks-year-editorial > * { grid-column: 1 / -1; }
.weeks-year-extra { margin-top: 19px; padding: 20px; color: var(--wy-muted); font-size: 14px; line-height: 1.7; }
.weeks-year-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 19px; }
.weeks-year-related a { display: grid; grid-template-columns: 1fr auto; gap: 5px; align-items: center; padding: 19px; border: 1px solid var(--wy-line); border-radius: 14px; background: #fffefb; color: var(--wy-ink); text-decoration: none; }
.weeks-year-related a span { grid-column: 1; color: #955232; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.weeks-year-related a strong { grid-column: 1; font-family: Georgia, serif; font-size: 18px; }
.weeks-year-related a svg { grid-column: 2; grid-row: 1 / 3; }
.weeks-year > .share-panel { margin-top: 20px; }
.weeks-year a:focus-visible, .weeks-year button:focus-visible, .weeks-year input:focus-visible { outline: 3px solid #ba643d; outline-offset: 3px; }
@media (max-width: 700px) { .weeks-year-dashboard-top { align-items: stretch; flex-direction: column; } .weeks-year-answer-grid { gap: 7px; } .weeks-year-answer { min-height: 0; padding: 12px; } .weeks-year-answer > span { min-height: 42px; font-size: 9px; } .weeks-year-answer strong { font-size: 42px; } .weeks-year-answer p { font-size: 11px; } }
@media (max-width: 480px) { .page-weeks-in-year { padding-top: 15px; } .weeks-year-header { padding-top: 8px; } .weeks-year-answer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .weeks-year-answer-primary { grid-column: 1 / -1; } .weeks-year-answer-primary > span { min-height: 0; } .weeks-year-boundary-grid, .weeks-year-related { grid-template-columns: 1fr; } .weeks-year-pattern-board { padding: 13px; gap: 7px; } .weeks-year-mosaic { gap: 3px; } .weeks-year-mosaic span { height: 13px; border-radius: 2px; } .weeks-year-tail span { width: 7px; height: 13px; } .weeks-year-comparison th, .weeks-year-comparison td { padding: 10px 9px; font-size: 11px; } }
