/* Navigation stays light while selected state and tap targets remain clear. */
@media screen and (max-width:759px) {
 body[data-edition="thanksgiving"] .site-header .main-nav { box-shadow:0 -4px 16px -12px #29435855; padding-top:5px; padding-bottom:max(5px, env(safe-area-inset-bottom)); }
 body[data-edition="thanksgiving"] .site-header .main-nav a { border-radius:10px; box-shadow:none; min-height:54px; }
 body[data-edition="thanksgiving"] .site-header .main-nav a[aria-current="page"] { box-shadow:none !important; }
 body[data-edition="thanksgiving"] .site-header .main-nav svg { width:21px; height:21px; }
}
/* Public prep is an untimed sample; no indentation for nonexistent checkboxes. */
.prep-page .prep-timetable > .prep-column .prep-item > p { margin-left:0; }
.prep-page .prep-timetable > .prep-column .prep-item > h3 { font:650 1rem/1.4 Figtree,sans-serif; }

@media screen and (max-width:759px) {
 body[data-edition="thanksgiving"] .site-header .main-nav {
   background: #fff !important;
   border-top: 1px solid #d7e2eb;
 }
 body[data-edition="thanksgiving"] .site-header .main-nav a:not([aria-current="page"]) {
   color: #425a70 !important;
 }
 body[data-edition="thanksgiving"] .site-header .main-nav a[aria-current="page"] {
   background: #254d75 !important;
   color: #fff !important;
 }
 body[data-edition="thanksgiving"] .site-header .main-nav a[aria-current="page"] .nav-count {
   background: #fff;
   color: #254d75;
 }
}

/* Keep the public recipe preview in the storefront's blue palette. */
@media screen {
 body[data-edition="thanksgiving"] #main .recipe-sneak-peek [data-action="menu-toggle"][aria-pressed="false"] {
   background: var(--reader-brand-wash);
   border-color: var(--reader-brand-line);
   color: #245582;
 }
 body[data-edition="thanksgiving"] #main .recipe-sneak-peek [data-action="menu-toggle"][aria-pressed="false"]:hover {
   background: #e0eefb;
   border-color: #a4c2df;
 }
 body[data-edition="thanksgiving"] #main .recipe-sneak-peek .recipe-image {
   box-shadow: 0 5px 15px rgb(36 73 103 / .12);
 }
 body[data-edition="thanksgiving"] #main :is(.recipe-card .menu-button, .welcome-actions .button.primary, .recipe-page .button.primary) {
   background-image: none;
   box-shadow: 0 3px 7px -5px #21395266;
 }
 body[data-edition="thanksgiving"] #main .recipe-card {
   border: 1px solid var(--reader-brand-line);
   box-shadow: 0 2px 6px -2px rgb(37 59 85 / .14);
 }
 body[data-edition="thanksgiving"] #main .recipe-card .menu-button {
   justify-content: center;
   gap: 6px;
   padding-inline: clamp(5px, 1.6vw, 10px);
   text-align: center;
 }
 body[data-edition="thanksgiving"] #main .recipe-card .menu-button svg {
   flex: 0 0 15px;
   width: 15px;
   height: 15px;
 }
 .recipe-card-link:hover .card-photo img { transform: none; }

 /* Span the complete text row independently of the length of either column. */
 body[data-edition="thanksgiving"] #main .shopping-group {
   --shopping-inset: clamp(12px, 2vw, 20px);
   padding-inline: 0;
   overflow: hidden;
 }
 body[data-edition="thanksgiving"] #main .shopping-group h2 {
   margin-inline: 0;
   padding-inline: var(--shopping-inset);
 }
 body[data-edition="thanksgiving"] #main .shopping-check {
   padding-inline: var(--shopping-inset);
 }
 body[data-edition="thanksgiving"] #main .shopping-check:has(input:checked) {
   background: #eff5fb;
 }
 body[data-edition="thanksgiving"] #main .shopping-check:has(input:focus-visible) {
   outline: 2px solid #2868a9;
   outline-offset: -3px;
 }
 body[data-edition="thanksgiving"] #main .shopping-copy :is(strong, .amount) {
   font-size: clamp(.875rem, 1.5vw, 1rem);
   line-height: 1.5;
   overflow-wrap: anywhere;
 }
 body[data-edition="thanksgiving"] #main .shopping-check input:checked ~ .shopping-copy::after {
   position: absolute;
   inset: .75em 0 auto;
   grid-area: auto;
   margin: 0;
   border: 0;
   border-top: 1px solid #6a839a;
   font-size: clamp(.875rem, 1.5vw, 1rem);
 }
 @media (forced-colors: active) {
   body[data-edition="thanksgiving"] #main .shopping-check input:checked ~ .shopping-copy::after {
     border-color: CanvasText;
   }
 }
}
@media screen and (prefers-reduced-motion: no-preference) {
 .shopping-page .shopping-check, .recipe-card .menu-button {
   transition: background-color 140ms ease, border-color 140ms ease;
 }
}

@media screen {
 body[data-edition="thanksgiving"] #main .shopping-copy > span:first-child {
   display: grid;
   gap: 2px;
   min-width: 0;
 }
 body[data-edition="thanksgiving"] #main .shopping-copy > span:first-child > :is(strong, .shopping-sub) {
   grid-column: 1;
 }
 body[data-edition="thanksgiving"] #main .shopping-check input:checked ~ .shopping-copy .amount {
   text-decoration: line-through;
   text-decoration-color: #6a839a;
 }
}

/* A clear hierarchy for the recipe actions. */
@media screen {
 body[data-edition="thanksgiving"] #main .welcome-actions {
   gap: 10px 16px;
 }
 body[data-edition="thanksgiving"] #main .welcome-actions .button.primary {
   min-height: 44px;
   padding: 8px 14px;
   border-radius: 8px;
   font-size: .875rem;
   font-weight: 650;
 }
 body[data-edition="thanksgiving"] #main .welcome-host strong { color: #42586b; }
 body[data-edition="thanksgiving"] #main .recipe-primary-actions {
   align-items: center;
   gap: 7px;
   margin-block-start: 14px;
 }
 body[data-edition="thanksgiving"] #main .recipe-primary-actions :is(.button, .icon-button) {
   min-height: 44px;
   border-radius: 8px;
   font-size: .875rem;
   font-weight: 650;
 }
 body[data-edition="thanksgiving"] #main .recipe-primary-actions .button {
   padding: 8px 13px;
 }
 body[data-edition="thanksgiving"] #main .recipe-primary-actions [data-action="print"] {
   width: 44px;
   height: 44px;
   padding: 0;
   color: #536a7c;
   border-color: #d2dee8;
   background: #fff;
 }
 body[data-edition="thanksgiving"] #main .recipe-primary-actions [data-action="print"]:hover {
   background: #edf5fd;
 }
}
@media screen and (max-width: 480px) {
 body[data-edition="thanksgiving"] #main .recipe-primary-actions:has([data-action="print"]) {
   display: grid;
   grid-template-columns: minmax(0,1fr) minmax(0,1fr) 44px;
 }
 body[data-edition="thanksgiving"] #main .recipe-primary-actions .button {
   padding-inline: 6px;
   text-align: center;
   white-space: normal;
   line-height: 1.25;
 }
 body[data-edition="thanksgiving"] #main .recipe-primary-actions .button svg { flex: 0 0 16px; }
}
@media screen and (min-width: 980px) {
 body[data-edition="thanksgiving"] #main .edition-welcome .welcome-copy {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: flex-start;
 }

}
@media screen {
 body[data-edition="thanksgiving"] #main .recipe-sneak-peek .recipe-next-panel > .button.primary {
   background: #fff;
   color: #245582;
   border-color: var(--reader-brand-line);
   box-shadow: none;
 }
 body[data-edition="thanksgiving"] #main .recipe-sneak-peek .recipe-next-panel > .button.primary:hover {
   background: var(--reader-brand-wash);
   border-color: #a4c2df;
 }
}
@media screen and (max-width: 480px) {
 body[data-edition="thanksgiving"] #main .recipe-primary-actions:has([data-action="print"]) { align-items: stretch; }
 body[data-edition="thanksgiving"] #main .recipe-primary-actions:has([data-action="print"]) .button {
   min-width: 0;
   gap: 5px;
   padding-inline: 5px !important;
 }
 body[data-edition="thanksgiving"] #main .recipe-primary-actions [data-action="print"] { height: auto; }
}
@media screen and (min-width: 365px) and (max-width: 480px) {
 body[data-edition="thanksgiving"] #main .recipe-primary-actions [data-action="menu-toggle"] > span { white-space: nowrap; }
}

/* Give the mobile recipe preview a consistent inset and room around its one action. */
@media screen and (max-width: 700px) {
 body[data-edition="thanksgiving"] #main .recipe-sneak-peek .recipe-title-sheet {
   display: flex;
   flex-direction: column;
   gap: 12px;
   padding: 16px 14px 14px;
 }
 body[data-edition="thanksgiving"] #main .recipe-sneak-peek .recipe-chapter {
   margin: 6px 0 0;
   padding-bottom: 10px;
 }
 body[data-edition="thanksgiving"] #main .recipe-sneak-peek :is(.recipe-description, .yield, .recipe-primary-actions) {
   margin: 0;
 }
 body[data-edition="thanksgiving"] #main .recipe-sneak-peek .recipe-title-sheet .yield {
   display: flex;
   align-items: center;
   gap: 8px;
   line-height: 1.4;
 }
 body[data-edition="thanksgiving"] #main .recipe-sneak-peek .recipe-title-sheet .yield svg {
   flex: 0 0 16px;
   width: 16px;
   height: 16px;
 }
 body[data-edition="thanksgiving"] #main .recipe-sneak-peek .recipe-primary-actions [data-action="menu-toggle"] {
   justify-content: center;
   gap: 8px;
   min-inline-size: min(100%, 154px);
   max-inline-size: 100%;
   min-height: 48px;
   padding: 9px 14px;
   line-height: 1.3;
 }
 body[data-edition="thanksgiving"] #main .recipe-sneak-peek .recipe-primary-actions [data-action="menu-toggle"] > span {
   white-space: normal;
 }
}

/* One chapter picker across screen sizes, with independent Saved filtering. */
@media screen {
 body[data-edition="thanksgiving"] #main .library:not(.public-preview-library) .results-toolbar {
   display: grid;
   grid-template-columns: minmax(0, 1fr) auto;
   grid-template-areas: "chapter saved" "count clear";
   align-items: center;
   gap: 4px 12px;
   margin: 0 0 15px;
 }
 body[data-edition="thanksgiving"] #main .library:not(.public-preview-library) .category-picker {
   display: block !important;
   grid-area: chapter;
   position: relative;
 }
 body[data-edition="thanksgiving"] #main .library:not(.public-preview-library) .category-picker select {
   appearance: none !important;
   width: 100%;
   padding-inline-end: 38px;
   border-color: #c4d7e7 !important;
   border-radius: 8px;
   background: #fff !important;
 }
 body[data-edition="thanksgiving"] #main .library:not(.public-preview-library) .category-picker > svg {
   display: block !important;
   position: absolute;
   inset: 50% 12px auto auto;
   transform: translateY(-50%);
   width: 16px;
   height: 16px;
   color: #285477 !important;
   pointer-events: none;
 }
 body[data-edition="thanksgiving"] #main .library:not(.public-preview-library) .results-count {
   grid-area: count;
   display: block;
   position: static;
   width: auto;
   height: auto;
   overflow: visible;
   clip: auto;
   margin: 0;
   color: #546b80;
   font-size: .83rem;
 }
 body[data-edition="thanksgiving"] #main .library:not(.public-preview-library) .favorite-filter {
   grid-area: saved;
   justify-self: end;
   padding-inline: 12px;
   border: 1px solid #d0dfec;
   border-radius: 8px;
   background: #fff;
   color: #285477;
 }
 body[data-edition="thanksgiving"] #main .library:not(.public-preview-library) .favorite-filter[aria-pressed="true"] {
   background: #e8f2fb;
   border-color: #7298ba;
 }
 body[data-edition="thanksgiving"] #main .library:not(.public-preview-library) #clear-filters {
   grid-area: clear;
   justify-self: end;
   min-height: 36px;
 }
}
@media screen and (min-width: 760px) {
 body[data-edition="thanksgiving"] #main .library:not(.public-preview-library) .results-toolbar {
   grid-template-columns: minmax(180px, 236px) minmax(0,1fr) auto auto;
   grid-template-areas: "chapter count saved clear";
   gap: 12px 16px;
 }
}
@media screen {
 body[data-edition="thanksgiving"] #main .library:not(.public-preview-library) .category-picker > svg {
   fill: none;
   stroke: currentColor;
   stroke-linecap: round;
   stroke-linejoin: round;
   stroke-width: 1.8;
 }
}

@media screen and (max-width: 700px) {
 body[data-edition="thanksgiving"] #main .edition-welcome h1 {
   font-size: clamp(1.55rem, 1.05rem + 3.1vw, 2.35rem);
   line-height: 1.08;
 }
}
@media screen and (min-width: 701px) {
 body[data-edition="thanksgiving"] #main .edition-welcome-inner {
   display: grid;
   grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
   gap: 0;
   align-items: stretch;
   overflow: hidden;
   border-radius: 14px;
   background: #fffdfa;
   box-shadow: 0 10px 24px -16px #65412588;
 }
 body[data-edition="thanksgiving"] #main .edition-welcome .welcome-copy {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: flex-start;
   padding: clamp(24px, 3.25vw, 46px) !important;
   border-radius: 0;
   background: #fffdfa;
   box-shadow: none;
 }
 body[data-edition="thanksgiving"] #main .edition-welcome h1 {
   font-size: clamp(1.65rem, 3.1vw, 2.65rem);
   line-height: 1.1;
   white-space: normal;
   text-wrap: balance;
 }
 body[data-edition="thanksgiving"] #main .welcome-dish {
   position: relative;
   min-height: clamp(300px, 31vw, 430px);
   border-radius: 0;
   box-shadow: none;
 }
 body[data-edition="thanksgiving"] #main .welcome-dish > img {
   position: absolute;
   inset: 0;
   display: block;
   width: 100%;
   height: 100%;
   min-height: 0;
   object-fit: cover;
   object-position: 52% 53%;
 }
}
