:root {
  --cal-ink: #17221d;
  --cal-muted: #68736c;
  --cal-cream: #f4f0e5;
  --cal-paper: #fbf8f0;
  --cal-line: rgba(23, 34, 29, 0.17);
  --cal-gold: #c59038;
  --cal-gold-bright: #e3b65d;
  --cal-night: #1b2d2a;
}

.astro-calendar-page { background: var(--cal-cream); color: var(--cal-ink); }
.astro-calendar-page .container { width: min(1180px, calc(100% - 40px)); }
.calendar-header { border-bottom: 1px solid var(--cal-line); background: rgba(244, 240, 229, .92); backdrop-filter: blur(14px); }
.calendar-nav { display: flex; align-items: center; gap: 26px; }
.calendar-nav > a:not(.button-secondary) { color: var(--cal-muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.calendar-nav .button-secondary { border-color: var(--cal-ink); color: var(--cal-ink); }

.calendar-hero { position: relative; overflow: hidden; padding: 96px 0 82px; background: radial-gradient(circle at 8% 8%, rgba(229, 185, 95, .24), transparent 26%), linear-gradient(145deg, #f8f4e9 0%, #e9e1d0 100%); }
.calendar-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: -270px; border: 1px solid rgba(197, 144, 56, .32); border-radius: 50%; box-shadow: 0 0 0 55px rgba(197,144,56,.045), 0 0 0 112px rgba(197,144,56,.035); }
.calendar-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .82fr); gap: clamp(58px, 8vw, 110px); align-items: center; }
.calendar-kicker { display: block; color: var(--cal-gold); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.calendar-intro h1 { margin: 20px 0 26px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(4.5rem, 9vw, 8.6rem); font-weight: 400; letter-spacing: -.065em; line-height: .78; }
.reference-point-page .calendar-intro h1 { font-size: clamp(3.6rem, 6.3vw, 6.6rem); line-height: .86; }
.calendar-intro h1 em, .result-heading h2 em, .calendar-method h2 em { color: var(--cal-gold); font-weight: 400; }
.calendar-intro > p { max-width: 610px; margin: 0; color: var(--cal-muted); font-size: 18px; line-height: 1.7; }
.today-orbit { display: flex; align-items: center; gap: 18px; margin-top: 42px; }
.orbit-dome-mini { position: relative; display: block; flex: 0 0 68px; width: 68px; height: 54px; overflow: hidden; border: 1px solid rgba(197,144,56,.45); border-bottom: 0; border-radius: 50% 50% 0 0 / 82% 82% 0 0; background: linear-gradient(#1b2d2a 0 72%, #c7b680 73%); box-shadow: 0 0 0 8px rgba(197,144,56,.06); }
.orbit-dome-mini::before { content: ""; position: absolute; left: 12px; right: 12px; top: 23px; height: 13px; border: 1px dashed var(--cal-gold); border-radius: 50%; transform: rotate(-8deg); }
.orbit-dome-mini::after { content: ""; position: absolute; right: 14px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--cal-gold-bright); box-shadow: 0 0 9px rgba(227,182,93,.7); }
.orbit-dome-mini i { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 9px; border: 1px solid rgba(23,34,29,.5); border-radius: 50%; }
.today-orbit small, .today-orbit span { display: block; color: var(--cal-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.today-orbit strong { display: block; margin: 3px 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(22px, 3vw, 31px); font-weight: 400; }

.calendar-sky-card { position: relative; min-height: 185px; overflow: hidden; margin-top: 34px; border: 1px solid rgba(227,182,93,.32); border-radius: 28px; background: linear-gradient(90deg, rgba(5,13,27,.18), rgba(5,13,27,.04)), url("../images/solar-observatory-horizon.png") center 62% / cover no-repeat; box-shadow: inset 0 1px rgba(255,255,255,.18), inset 0 -32px 45px rgba(4,8,15,.32), 0 22px 45px rgba(28,35,30,.16); isolation: isolate; }
.calendar-sky-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(8,19,34,.48), transparent 55%), radial-gradient(circle at 74% 68%, rgba(255,190,72,.22), transparent 22%); pointer-events: none; }
.calendar-sky-card > span { position: absolute; top: 17px; left: 20px; z-index: 2; color: rgba(255,248,232,.78); font-size: 8px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.calendar-sky-orbit { position: absolute; left: 12%; right: 12%; top: 33%; z-index: 2; height: 54%; border-top: 1px dashed rgba(255,213,124,.68); border-radius: 50%; transform: rotate(-3deg); }
.calendar-sky-sun { position: absolute; right: 20%; top: 36%; z-index: 3; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,250,211,.78); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff9bd, #ffc54d 56%, #de7626); color: #fff8d1; font: 20px/1 Georgia, serif; box-shadow: 0 0 16px #ffd568, 0 0 48px rgba(255,177,61,.66); }
.calendar-sky-moon { position: absolute; left: 22%; bottom: 25%; z-index: 3; width: 24px; height: 24px; border: 1px solid rgba(226,230,227,.72); border-radius: 50%; background: #dfe7e5; box-shadow: inset -9px -2px #172724, 0 0 18px rgba(196,219,214,.32); }

.calendar-calculator { position: relative; overflow: hidden; padding: 30px; border: 1px solid rgba(23,34,29,.14); border-radius: 26px; background: linear-gradient(145deg, rgba(255,253,247,.94), rgba(244,238,222,.88)); box-shadow: inset 0 1px rgba(255,255,255,.86), inset 0 -18px 38px rgba(91,75,45,.035), 0 30px 75px rgba(40,46,37,.14); backdrop-filter: blur(16px); }
.calendar-calculator::before { content: ""; position: absolute; top: -110px; right: -105px; width: 245px; height: 245px; border: 1px solid rgba(197,144,56,.22); border-radius: 50%; box-shadow: 0 0 0 24px rgba(197,144,56,.035), 0 0 0 54px rgba(197,144,56,.025); pointer-events: none; }
.calculator-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--cal-line); }
.calculator-heading > div { display: flex; align-items: center; gap: 12px; }
.calculator-heading span { color: var(--cal-gold); font-family: Georgia, serif; font-size: 26px; }
.calculator-heading small { color: var(--cal-muted); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.location-button, .preset-row button { border: 1px solid var(--cal-line); background: transparent; color: var(--cal-ink); font: inherit; cursor: pointer; }
.location-button { padding: 10px 14px; border-radius: 30px; background: rgba(255,255,255,.46); font-size: 11px; font-weight: 800; box-shadow: inset 0 1px rgba(255,255,255,.75); }
.preset-row { display: flex; gap: 7px; margin-bottom: 18px; }
.preset-row button { flex: 1; min-height: 38px; padding: 8px; border-radius: 11px; background: rgba(255,255,255,.38); color: var(--cal-muted); font-size: 10px; font-weight: 800; box-shadow: inset 0 1px rgba(255,255,255,.68); }
.preset-row button:hover, .location-button:hover { border-color: var(--cal-gold); color: var(--cal-gold); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 7px; color: var(--cal-muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.field input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--cal-line); border-radius: 11px; outline: none; background: rgba(255,255,255,.58); color: var(--cal-ink); font: 600 14px/1.2 inherit; box-shadow: inset 0 1px 3px rgba(31,38,32,.04); }
.field input:focus { border-color: var(--cal-gold); box-shadow: 0 0 0 3px rgba(197,144,56,.1); }
.calculate-button { display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: space-between; margin-top: 5px; padding: 0 18px; border: 0; border-radius: 14px; background: linear-gradient(145deg, #29423c, #12231f); color: #fff8e8; font: 800 12px/1 inherit; letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 1px rgba(255,255,255,.14), 0 12px 24px rgba(23,34,29,.18); cursor: pointer; }
.calculate-button b { color: var(--cal-gold-bright); font-size: 21px; transition: transform .2s ease; }
.calculate-button:hover b { transform: translateX(4px); }
.calculator-status { min-height: 16px; margin: 10px 0 -10px; color: var(--cal-muted); font-size: 11px; }
.calculator-status.is-error { color: #a13b32; }

.calendar-results { padding: 90px 0 105px; background: var(--cal-paper); }
.result-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; padding-bottom: 34px; border-bottom: 1px solid var(--cal-line); }
.result-heading h2, .months-heading h2, .calendar-method h2 { margin: 11px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.4rem, 5vw, 4.7rem); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.result-heading > p { max-width: 340px; margin: 0; color: var(--cal-muted); line-height: 1.6; }
.event-sequence { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr) 80px minmax(0, 1fr); align-items: center; padding: 52px 0 70px; }
.event-sequence article { position: relative; min-height: 206px; overflow: hidden; padding: 24px; border: 1px solid var(--cal-line); border-radius: 22px; background: linear-gradient(145deg, #fffdf6, #eee6d4); box-shadow: inset 0 1px rgba(255,255,255,.8), 0 18px 38px rgba(35,43,37,.09); }
.event-sequence article::after { content: ""; position: absolute; right: -42px; bottom: -58px; width: 130px; height: 130px; border: 1px solid rgba(197,144,56,.23); border-radius: 50%; box-shadow: 0 0 0 18px rgba(197,144,56,.025); }
.event-sequence article.year-start-event { background: linear-gradient(145deg, #29423c, #11221e); color: #fff8e8; box-shadow: inset 0 1px rgba(255,255,255,.12), 0 22px 45px rgba(20,36,31,.18); }
.event-number { display: grid; width: 36px; height: 36px; place-items: center; margin-bottom: 28px; border-radius: 50%; background: var(--cal-gold); color: white; font: 800 10px/1 inherit; }
.moon-number { background: #2f403b; }
.event-sequence small { display: block; color: var(--cal-gold); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.event-sequence strong { display: block; margin: 7px 0 8px; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.event-sequence p { margin: 0; color: var(--cal-muted); font-size: 12px; line-height: 1.5; }
.year-start-event p { color: rgba(255,248,232,.62); }
.sequence-line { position: relative; height: 2px; background: linear-gradient(90deg, var(--cal-line), var(--cal-gold), var(--cal-line)); }
.sequence-line i { position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--cal-gold); border-right: 1px solid var(--cal-gold); transform: rotate(45deg); }

.months-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.months-legend { display: flex; gap: 18px; color: var(--cal-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.months-legend span { display: flex; align-items: center; gap: 7px; }
.months-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.legend-moon { background: var(--cal-night); }
.legend-sunset { background: var(--cal-gold); }
.month-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.month-card { position: relative; min-height: 188px; overflow: hidden; padding: 18px; border: 1px solid var(--cal-line); border-radius: 20px; background: linear-gradient(150deg, #fffdf6, #ece4d2); box-shadow: inset 0 1px rgba(255,255,255,.78), 0 14px 28px rgba(35,43,37,.07); }
.month-card.is-current { background: linear-gradient(150deg, #fff9df, #f0d69d); box-shadow: inset 0 0 0 2px var(--cal-gold), inset 0 1px rgba(255,255,255,.8), 0 20px 38px rgba(197,144,56,.18); }
.month-card::after { content: ""; position: absolute; width: 74px; height: 74px; right: -24px; bottom: -26px; border: 1px solid rgba(197,144,56,.25); border-radius: 50%; }
.month-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.month-card-head strong { font-family: Georgia, serif; font-size: 33px; font-weight: 400; }
.month-card-head small { color: var(--cal-muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.month-card > strong { display: block; margin-top: 25px; font-family: Georgia, serif; font-size: 18px; font-weight: 400; }
.month-card p { margin: 6px 0 0; color: var(--cal-muted); font-size: 10px; line-height: 1.45; }
.current-chip { display: inline-block; margin-top: 10px; padding: 4px 7px; border-radius: 20px; background: var(--cal-gold); color: #fff; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }

.festivals-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 76px 0 28px; padding-top: 58px; border-top: 1px solid var(--cal-line); }
.festivals-heading h2 { margin: 11px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.4rem, 5vw, 4.7rem); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.festival-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.festival-card { position: relative; min-height: 176px; overflow: hidden; padding: 20px; border: 1px solid var(--cal-line); border-radius: 20px; background: linear-gradient(150deg, #fffdf6, #eee5d2); box-shadow: inset 0 1px rgba(255,255,255,.78), 0 14px 28px rgba(35,43,37,.07); }
.festival-card::after { content: ""; position: absolute; right: -31px; bottom: -35px; width: 92px; height: 92px; border: 1px solid rgba(197,144,56,.25); border-radius: 50%; }
.festival-card.festival-autumn { background: linear-gradient(150deg, #f4eee0, #dfd1b2); }
.festival-card small { display: block; color: var(--cal-gold); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.festival-card strong, .festival-card time { display: block; }
.festival-card strong { margin-top: 16px; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.festival-card time { margin-top: 5px; color: var(--cal-ink); font-size: 12px; font-weight: 850; }
.festival-card p { max-width: 210px; margin: 12px 0 0; color: var(--cal-muted); font-size: 10px; line-height: 1.45; }

.calendar-method { padding: 100px 0; background: var(--cal-night); color: #fff8e8; }
.method-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.calendar-method h2 { font-size: clamp(2.7rem, 5vw, 5.2rem); line-height: .92; }
.method-steps article { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 21px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.method-steps b { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(227,182,93,.5); border-radius: 50%; color: var(--cal-gold-bright); font-size: 11px; }
.method-steps p { margin: 4px 0 0; color: rgba(255,248,232,.68); line-height: 1.65; }
.method-steps p strong { color: #fff8e8; font-weight: 800; }
.example-note { grid-column: 2; padding: 26px; border-left: 2px solid var(--cal-gold); background: rgba(255,255,255,.045); }
.example-note strong { font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.example-note p { margin: 9px 0 0; color: rgba(255,248,232,.65); line-height: 1.6; }
.example-note a { display: inline-block; margin-top: 16px; color: var(--cal-gold-bright); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.calendar-source-library { background: #eee8da; }

@media (max-width: 900px) {
  .calendar-hero-grid { grid-template-columns: 1fr; }
  .calendar-intro h1 { font-size: clamp(4.2rem, 17vw, 7rem); }
  .event-sequence { grid-template-columns: 1fr; gap: 10px; }
  .sequence-line { width: 1px; height: 25px; margin-left: 50%; }
  .sequence-line i { right: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
  .month-track { grid-template-columns: repeat(3, 1fr); }
  .festival-track { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr; gap: 45px; }
  .example-note { grid-column: 1; }
}

@media (max-width: 620px) {
  .astro-calendar-page .container { width: min(100% - 24px, 1180px); }
  .calendar-header .brand > span:last-child, .calendar-nav > a:first-child { display: none; }
  .calendar-hero { padding: 62px 0 60px; }
  .calendar-hero-grid { gap: 45px; }
  .calendar-header .header-inner { gap: 8px; }
  .calendar-nav { gap: 8px; }
  .calendar-nav .button-secondary { padding: 10px 12px; font-size: 10px; }
  .calendar-calculator { padding: 20px; border-radius: 22px; }
  .calendar-sky-card { min-height: 155px; border-radius: 22px; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .result-heading, .months-heading, .festivals-heading { align-items: flex-start; flex-direction: column; }
  .calendar-results { padding: 68px 0 75px; }
  .month-track { grid-template-columns: repeat(2, 1fr); }
  .festival-track { grid-template-columns: 1fr; }
  .month-card { min-height: 176px; padding: 14px; border-radius: 17px; }
  .months-legend { flex-direction: column; gap: 7px; }
  .calendar-method { padding: 75px 0; }
  .astro-calendar-page:not(.calendar-method-page) .calendar-nav > a:not(.button-secondary) { display: none; }
}

/* Explanation page: Sun and Moon paths above the Gleason map */
.method-hero { padding: 90px 0 100px; background: linear-gradient(155deg, #f7f3e9, #ece5d5); overflow: hidden; }
.method-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.method-hero h1 { margin: 20px 0 28px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(4rem, 8vw, 8rem); font-weight: 400; letter-spacing: -.06em; line-height: .82; }
.calendar-method-page .method-hero h1 { font-size: clamp(3.5rem, 6.4vw, 6.8rem); line-height: .88; }
.method-hero h1 em { color: var(--cal-gold); font-weight: 400; }
.method-hero p { max-width: 560px; margin: 0; color: var(--cal-muted); font-size: 18px; line-height: 1.7; }
.gleason-motion-figure { margin: 0; overflow: hidden; border: 1px solid rgba(197,144,56,.42); border-radius: 28px; background: #13231f; box-shadow: inset 0 1px rgba(255,255,255,.18), 0 30px 70px rgba(33,43,35,.16); }
.gleason-motion-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.logic-section { padding: 95px 0; background: var(--cal-paper); }
.logic-heading { display: flex; justify-content: space-between; gap: 36px; align-items: end; margin-bottom: 38px; }
.logic-heading h2, .sunset-example h2 { margin: 10px 0 0; font-family: Georgia, serif; font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.logic-heading > p { max-width: 430px; margin: 0; color: var(--cal-muted); line-height: 1.6; }
.logic-cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--cal-line); border-left: 1px solid var(--cal-line); }
.logic-cards article { min-height: 310px; padding: 27px; border-right: 1px solid var(--cal-line); border-bottom: 1px solid var(--cal-line); }
.logic-cards b { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 50px; border-radius: 50%; background: var(--cal-night); color: var(--cal-gold-bright); font-size: 10px; }
.logic-cards small { color: var(--cal-gold); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.logic-cards h3 { margin: 8px 0 12px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.logic-cards p { margin: 0; color: var(--cal-muted); line-height: 1.6; }

.sunset-example { padding: 100px 0; background: var(--cal-night); color: #fff8e8; }
.sunset-example-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.sunset-example-grid > div:first-child > p { color: rgba(255,248,232,.65); font-size: 17px; line-height: 1.7; }
.sunset-timeline { padding: 28px; border: 1px solid rgba(227,182,93,.35); background: rgba(255,255,255,.04); }
.timeline-sky { display: grid; grid-template-columns: 28% 43% 29%; height: 72px; overflow: hidden; border-radius: 3px; }
.timeline-sky span { display: grid; place-items: center; color: rgba(255,248,232,.66); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.timeline-sky span:first-child, .timeline-sky span:last-child { background: #a97836; }
.timeline-sky span:nth-child(2) { background: #0e1c1a; }
.timeline-rule { position: relative; height: 1px; margin: 25px 0 17px; background: rgba(255,255,255,.27); }
.timeline-rule .point { position: absolute; top: -6px; width: 13px; height: 13px; border: 3px solid var(--cal-night); border-radius: 50%; background: var(--cal-gold-bright); }
.sunset-point { left: 28%; }
.moon-point { left: 48%; background: #fff8e8 !important; }
.next-sunset-point { left: 71%; }
.timeline-labels { display: grid; grid-template-columns: 28% 43% 29%; text-align: center; }
.timeline-labels b, .timeline-labels span { display: block; }
.timeline-labels b { font-family: Georgia, serif; font-size: 16px; font-weight: 400; }
.timeline-labels span { margin-top: 4px; color: rgba(255,248,232,.55); font-size: 9px; }
.timeline-result { display: block; margin-top: 27px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: var(--cal-gold-bright); font-family: Georgia, serif; font-size: 21px; font-weight: 400; text-align: center; }

.source-library { padding: 95px 0; background: var(--cal-paper); }
.source-link-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--cal-line); border-left: 1px solid var(--cal-line); }
.source-link-grid a { min-height: 190px; padding: 22px; border-right: 1px solid var(--cal-line); border-bottom: 1px solid var(--cal-line); color: var(--cal-ink); transition: background .2s ease, color .2s ease; }
.source-link-grid a:hover { background: var(--cal-night); color: #fff8e8; }
.source-link-grid small, .source-link-grid strong, .source-link-grid span { display: block; }
.source-link-grid small { color: var(--cal-gold); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.source-link-grid strong { margin-top: 38px; font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.source-link-grid span { margin-top: 8px; color: var(--cal-muted); font-size: 11px; line-height: 1.5; }
.source-link-grid a:hover span { color: rgba(255,248,232,.62); }
.source-file-note { margin: 22px 0 0; color: var(--cal-muted); font-size: 12px; }
.source-file-note a { color: var(--cal-gold); font-weight: 800; }

@media (max-width: 900px) {
  .method-hero-grid, .sunset-example-grid { grid-template-columns: 1fr; }
  .gleason-motion-figure { max-width: 720px; }
  .logic-cards { grid-template-columns: 1fr; }
  .logic-cards article { min-height: 0; }
  .logic-cards b { margin-bottom: 28px; }
  .source-link-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .method-hero { padding: 65px 0 72px; }
  .method-hero h1, .calendar-method-page .method-hero h1 { font-size: clamp(3.15rem, 15vw, 5.2rem); }
  .gleason-motion-figure { border-radius: 18px; }
  .logic-section, .sunset-example, .source-library { padding: 70px 0; }
  .logic-heading { align-items: flex-start; flex-direction: column; }
  .source-link-grid { grid-template-columns: 1fr; }
  .calendar-method-page .calendar-nav a:not(.button-secondary) { display: none; }
  .calendar-method-page .calendar-nav .button-secondary { padding-inline: 11px; font-size: 10px; }
}
