/* Recipe and journal spreads, the customer desk and search. */
.jr, .sarv-missing, .sarv-search {
	--j-ink: var(--sv-plum, var(--plum, #49344c));
	--j-plum: var(--j-ink);
	--j-dim: #5f575b;
	--j-rule: var(--sv-line, #d9d1c3);
	--j-paper: var(--sv-white, #fffcf5);
	--j-kraft: var(--sv-kraft, #e6d7bd);
	--j-brass: var(--sv-gold, #b38242);
	--j-lilac: var(--sv-lilac, #e7dfea);
	--j-display: "Fraunces", Georgia, serif;
	color: var(--sv-ink, #2f292c);
}
.jr .jr-crumb { padding-block: .4rem .2rem; }
.jr .jr-label, .jr .jr-meta { font-family: var(--sans); }
.jr .jr-label { font-size: .89rem; color: var(--j-ink); letter-spacing: .055em; }
.jr .jr-label::before, .jr .jr-meta span:first-child::before { content: none; }
.jr .jr-meta { gap: .35rem .8rem; color: var(--j-dim); }
.jr .jr-meta span:first-child { color: var(--j-ink); }
.jr .jr-section-heading {
	display: flex; align-items: flex-end; justify-content: space-between;
	padding: clamp(1rem,3vw,2.5rem) 0; margin: 0; border: 0; gap: 1rem 2rem;
}
.jr .jr-section-heading::after { content: none; }
.jr .jr-section-heading h1, .jr .jr-service-intro h1,
.sarv-recovery h1, .sarv-search-head h1 {
	color: var(--j-ink); font: 470 clamp(2.5rem,5.3vw,5.15rem)/1.04 var(--j-display);
	letter-spacing: -.062em; margin: 0; text-wrap: balance; overflow-wrap: anywhere;
}
.jr .jr-section-heading > div { min-width: 0; flex: 1 1 32rem; }
.jr .jr-section-heading p { max-width: 49ch; margin-top: .65rem; font-size: 1.08rem; }
.sarv-journal-tabs { display: flex; align-items: center; border: 1px solid var(--j-rule); padding: 3px; border-radius: 6px; gap: 2px; background: var(--j-paper); flex-wrap: wrap; }
.sarv-journal-tabs a { font-weight: 650; padding: .62rem 1.3rem; border-radius: 3px; line-height: 1.4; min-height: 44px; }
.sarv-journal-tabs a[aria-current] { background: var(--j-ink); color: var(--j-paper); }
.jr .jr-mag-grid { display: grid; align-items: stretch; grid-template-columns: minmax(0,1.52fr) minmax(0,.93fr); gap: clamp(1.5rem,3.5vw,3.75rem); border-top: 1px solid var(--j-rule); padding-top: clamp(1.3rem,2.5vw,2.4rem); }
.jr .jr-mag-grid:has(> :only-child) { grid-template-columns: minmax(0,1fr); }
.jr .jr-cover {
	background: var(--j-kraft) url("../img/papiervezel.svg"); color: var(--j-ink); display: flex; flex-direction: column;
	min-height: 0; border: 1px solid var(--j-rule); border-radius: 8px; overflow: hidden; box-shadow: none;
}
.jr .jr-cover-image { aspect-ratio: 1.9; }
.jr .jr-cover-image img, .jr .jr-detail-image img, .jr .jr-card-photo img { transition: none; }
.jr .jr-cover-copy { width: 100%; max-width: none; align-self: stretch; padding: clamp(1.2rem,2.2vw,2.1rem); }
.jr .jr-cover-copy h2 { color: var(--j-ink); font-size: clamp(2.15rem,3.6vw,3.75rem); margin: .55rem 0; max-width: 22ch; text-wrap: balance; }
.jr .jr-cover-copy > p { max-width: 58ch; }
.jr .jr-cover-link, .jr .jr-cover:hover .jr-cover-link { padding: 0; margin-top: .75rem; background: none; color: var(--j-ink); border: 0; border-bottom: 1px solid var(--j-brass); border-radius: 0; }
.jr .jr-cover:hover h2, .jr .jr-entry-card:hover :is(h2,h3) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.jr .jr-side-stories { grid-template-columns: 1fr; align-content: start; gap: 0; }
.jr .jr-side-stories .jr-entry-card {
	grid-template-columns: minmax(90px,.52fr) minmax(0,1fr); align-items: center; gap: clamp(.8rem,1.4vw,1.35rem);
	padding: 1.25rem 0; border-bottom: 1px solid var(--j-rule); border-radius: 0;
}
.jr .jr-side-stories .jr-entry-card:first-child { padding-top: 0; }
.jr .jr-side-stories .jr-entry-card.jr-no-photo { display: block; }
.jr .jr-side-stories .jr-card-photo { aspect-ratio: 1; grid-column: 1; border-radius: 7px; }
.jr .jr-side-stories .jr-card-copy { grid-column: 2; }
.jr .jr-card-copy :is(h2,h3) { margin: .4rem 0 0; font: 500 clamp(1.4rem,2.25vw,2.25rem)/1.12 var(--j-display); letter-spacing: -.045em; }
.jr .jr-side-stories .jr-entry-card > .jr-icon { display: none; }
.jr .jr-side-stories .jr-meta { font-size: .95rem; }
.sarv-journal-shelf { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: 1.25rem; margin-top: 2rem; }
.jr .jr-pagination { margin-top: 2rem; }

/* An editorial opener gives the title, reading details and photography their own lines. */
.jr .jr-detail-hero { display: flex; flex-direction: column; align-items: center; gap: 0; min-height: 0; padding: 0; border: 0; }
.jr .jr-detail-title { order: -1; width: min(100%,55rem); padding: clamp(.7rem,2vw,2rem) 0 clamp(1.3rem,2.5vw,2.5rem); text-align: center; }
.jr .jr-detail-title .jr-label { justify-content: center; }
.jr .jr-detail-title h1 { font: 480 clamp(2.35rem,5.1vw,5.2rem)/1.04 var(--j-display); margin: .5rem auto .8rem; letter-spacing: -.055em; text-wrap: balance; }
.jr .jr-detail-title > p:not(.jr-label) { margin-inline: auto; max-width: 61ch; font-size: 1.1rem; }
.jr .jr-facts { display: flex; justify-content: center; gap: .4rem 1.4rem; margin: 1.12rem 0 0 !important; }
.jr .jr-facts > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .25rem .45rem; background: transparent; border: 0; padding: 0; }
.jr .jr-facts dt, .jr .jr-facts dd { font-size: 1rem; }
.jr .jr-facts dt { color: var(--j-dim); }
.jr .jr-facts dd { color: var(--j-ink); }
.jr a.sarv-read-jump { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; color: var(--j-ink); text-decoration: underline; text-underline-offset: .2rem; }
.jr .jr-detail-image { width: 100%; height: clamp(13rem,25vw,23rem); border-radius: 7px; }
.jr .jr-detail-image img { object-position: 50% 50%; }
.jr .jr-kitchen { grid-template-columns: minmax(0,.85fr) minmax(0,1.35fr); max-width: 70rem; margin-inline: auto; gap: clamp(1.5rem,5vw,6rem); }
.jr .jr-listpanel { position: relative; padding: clamp(1.25rem,2.4vw,2.35rem); background: color-mix(in srgb,var(--j-kraft),var(--j-paper) 38%); border: 1px solid var(--j-rule); border-top: 3px double var(--j-ink); border-radius: 0 0 2px 2px; }
.jr .jr-listpanel h2, .jr .jr-method > h2, .jr .jr-faq-home > h2, .jr .jr-related-title h2 { font-size: clamp(1.9rem,3.1vw,3.15rem); }
.jr .jr-checklist label { padding: .7rem 0; font-size: 1.05rem; }
.jr .jr-method { scroll-margin-top: 1rem; }
.jr .sg-method-copy li::before { background: var(--j-lilac); color: var(--j-ink); font: 550 1.1rem/1 var(--j-display); }
.jr .sg-method-copy li strong:first-child { color: var(--j-ink); }
.jr .jr-tip { background: var(--j-lilac); border-inline-start: 2px solid var(--j-ink); border-radius: 0; }
.jr .jr-kit { border: 1px solid var(--j-rule); border-radius: 7px; max-width: 70rem; margin-inline: auto; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); }
.jr .jr-kit > header { background: var(--j-lilac); color: var(--j-ink); }
.jr .jr-kit > header :is(h2,.jr-label) { color: var(--j-ink); }
.jr .jr-kit > header > p:not(.jr-label) { color: var(--j-dim); }
.jr .jr-solid { border-radius: 3px; }
.jr .jr-story-body { grid-template-columns: minmax(12rem,.56fr) minmax(0,1.44fr); max-width: 62rem; gap: clamp(1.5rem,4vw,4.5rem); }
.jr .jr-story-body.sg-one-col { max-width: 46rem; }
.jr .jr-story-body > aside, .jr .jr-help-layout > aside { padding: 1rem 0; border: 0; border-top: 2px solid var(--j-ink); background: transparent; border-radius: 0; box-shadow: none; }
.jr .jr-story-body > aside nav a, .jr .jr-help-layout > aside nav a { font-weight: 580; text-underline-offset: .2rem; }
.jr .sg-story-copy h2, .jr .jr-service-article h2 { color: var(--j-ink); font: 520 clamp(1.65rem,2.4vw,2.5rem)/1.15 var(--j-display); }
.jr .jr-related { padding-top: 1.3rem; border-top: 1px solid var(--j-rule); }
.jr .jr-related-title { border: 0; }

/* Service index uses simple rows, with the most common subjects first. */
.jr .jr-service-intro { display: flex; flex-wrap: wrap; align-items: flex-end; padding: clamp(1.3rem,3vw,2.8rem) 0; border: 0; border-radius: 0; gap: 1rem 2rem; background: transparent; }
.jr .jr-service-intro > div { flex: 1 1 28rem; }
.jr .jr-service-intro p { max-width: 54ch; }
.sarv-service-contact { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; color: var(--j-paper) !important; background: var(--j-ink); padding: .7rem 1.15rem; min-height: 46px; border-radius: 3px; font-weight: 650; }
.jr .jr-service-gate { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 clamp(1.2rem,3vw,3rem); margin: 0; }
.jr .jr-service-gate > a { display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 1rem; min-width: 0; padding: 1.45rem .4rem; background: none; border: 0; border-top: 1px solid var(--j-rule); border-radius: 0; }
.jr .jr-service-gate > a > .jr-icon:first-child { grid-column: auto; background: var(--j-lilac); padding: 8px; width: 38px; height: 38px; border-radius: 6px; }
.jr .jr-service-gate > a:hover { background: var(--j-paper); }
.jr .jr-service-gate h2 { font: 530 clamp(1.35rem,2.1vw,1.85rem)/1.15 var(--j-display); }
.jr .jr-faq-home { padding: clamp(1rem,3vw,2.7rem); max-width: 55rem; margin-top: clamp(2rem,4vw,4rem); border: 1px solid var(--j-rule); background: var(--j-paper); }
.jr .jr-search { border: 1px solid #8f828b; border-radius: 3px; background: white; }
.jr .jr-faq details { border-color: var(--j-rule); }
.jr .jr-faq summary { gap: .8rem; }
.jr .jr-faq details[open] summary { color: var(--j-ink); }
.jr .jr-help-layout { margin-top: 1.7rem; }
.jr .jr-help-layout nav a[aria-current] { background: var(--j-lilac); box-shadow: inset 2px 0 var(--j-ink); }
.jr .jr-form > div { min-width: 0; }

/* A photographic index card identifies the missing page. */
.sarv-missing, .sarv-search { padding-bottom: clamp(3rem,7vw,6.5rem); }
.sarv-recovery { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); margin: clamp(.7rem,1.8vw,2rem) 0; background: var(--j-paper); border: 1px solid var(--j-rule); border-radius: 9px; overflow: hidden; }
.sarv-error-art { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(15px,2.1vw,35px); min-height: 16rem; background: var(--j-kraft); }
.sarv-error-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sarv-error-art span { position: relative; color: var(--j-ink); background: var(--j-paper); padding: .05em .22em .12em; border-radius: 4px; font: 500 clamp(3rem,7.5vw,8rem)/1 var(--j-display); letter-spacing: -.075em; }
.sarv-recovery-copy { padding: clamp(1.45rem,4.3vw,4.5rem); }
.sarv-recovery-copy p, .sarv-no-results p { color: var(--j-dim); font-size: 1.1rem; line-height: 1.55; max-width: 46ch; margin: 1rem 0; }
.sarv-recovery-copy nav { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: .8rem; }
.sarv-recovery-copy .jr-link, .sarv-no-results .jr-link { color: var(--j-ink); }
:is(.sarv-missing,.sarv-search) .sg-searchform { max-width: 33rem; display: flex; gap: 0; border: 1px solid #8f828b; background: var(--j-paper); padding: 3px; border-radius: 3px; }
:is(.sarv-missing,.sarv-search) .sg-searchform label { flex: 1 1 9em; min-width: 0; }
:is(.sarv-missing,.sarv-search) .sg-searchform input[type=search] { width: 100%; min-height: 45px; padding: .55rem .75rem; border: 0; background: transparent; font: inherit; color: var(--j-ink); }
:is(.sarv-missing,.sarv-search) .sg-searchform button { min-height: 45px; padding: .6rem 1.15rem; border: 0; border-radius: 7px; color: var(--j-paper); background: var(--j-ink); font: 680 1rem/1.3 var(--sans); cursor: pointer; }
.sarv-search-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; padding: 1.7rem 0 1.35rem; border-bottom: 1px solid var(--j-rule); }
.sarv-search-head .sg-searchform { flex: 0 1 30rem; }
.sarv-result-count { margin: 1rem 0; color: var(--j-dim); }
.sarv-result-list { max-width: 62rem; padding: 0; margin: 0; list-style: none; }
.sarv-result-list li { border-top: 1px solid var(--j-rule); }
.sarv-result-list a { padding: 1rem 0; display: flex; align-items: center; gap: clamp(.75rem,2vw,1.75rem); color: var(--j-ink); text-decoration: none; }
.sarv-result-list a img { width: clamp(4rem,8vw,7rem); aspect-ratio: 1.2; border-radius: 7px; object-fit: cover; }
.sarv-result-list a > div { min-width: 0; flex: 1; }
.sarv-result-list h2, .sarv-no-results h2 { margin: .18rem 0; font: 500 clamp(1.5rem,2.7vw,2.7rem)/1.15 var(--j-display); letter-spacing: -.04em; overflow-wrap: anywhere; }
.sarv-result-list a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.sarv-result-list p { line-height: 1.5; margin: .4rem 0 0; color: var(--j-dim); }
.sarv-result-type { font-size: .93rem; color: var(--j-dim); }
.sarv-no-results { max-width: 44rem; padding: clamp(1.1rem,3vw,2.4rem); margin-top: 1.6rem; background: var(--j-lilac); }
.sarv-search .nav-links { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: 1.2rem; }
.sarv-search .nav-links .page-numbers { min-width: 44px; min-height: 44px; padding: .5em; display: inline-grid; place-items: center; background: var(--j-paper); color: var(--j-ink); border: 1px solid var(--j-rule); }
.sarv-search .nav-links .current { background: var(--j-ink); color: var(--j-paper); }

@media (min-width: 60rem) {
	.jr .jr-detail-hero:has(.jr-detail-image) { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); align-items: stretch; background: var(--j-kraft) url("../img/papiervezel.svg"); border: 1px solid var(--j-rule); border-radius: 8px; overflow: hidden; }
	.jr .jr-detail-hero:has(.jr-detail-image) .jr-detail-title { grid-area: 1 / 1; align-self: center; text-align: start; padding: clamp(1.5rem,3.1vw,3rem); width: 100%; min-width: 0; }
	.jr .jr-detail-hero:has(.jr-detail-image) .jr-detail-title h1 { font-size: clamp(2.8rem,4vw,4.65rem); margin-inline: 0; }
	.jr .jr-detail-hero:has(.jr-detail-image) .jr-detail-title > p { margin-inline: 0; }
	.jr .jr-detail-hero:has(.jr-detail-image) :is(.jr-label,.jr-facts,.jr-facts > div) { justify-content: flex-start; }
	.jr .jr-detail-hero .jr-detail-image { grid-area: 1 / 2; height: 100%; min-height: clamp(16rem,26vw,23rem); border-radius: 0; }
}
@media (max-width: 52rem) {
	.jr .jr-mag-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 1.2rem; }
	.jr .jr-side-stories .jr-entry-card { grid-template-columns: minmax(60px,.43fr) minmax(0,1fr); gap: .75rem; }
}
@media (max-width: 44rem) {
	.jr .jr-section-heading { align-items: flex-start; flex-direction: column; }
	.jr .jr-section-heading > div { flex: none; }
	.jr .jr-mag-grid, .jr .jr-kitchen, .jr .jr-story-body, .jr .jr-kit { grid-template-columns: minmax(0,1fr); }
	.jr .jr-side-stories .jr-entry-card { grid-template-columns: clamp(4.1rem,22vw,8.5rem) minmax(0,1fr); }
	.jr .jr-side-stories .jr-card-photo { aspect-ratio: 1.24; }
	.jr .jr-detail-title { text-align: start; padding-block: .8rem 1rem; }
	.jr .jr-detail-title .jr-label, .jr .jr-facts, .jr .jr-facts > div { justify-content: flex-start; }
	.jr .jr-detail-title h1, .jr .jr-detail-title > p:not(.jr-label) { margin-inline: 0; }
	.jr .jr-detail-image { height: clamp(11rem,42vw,16rem); }
	.jr .jr-service-intro { align-items: flex-start; flex-direction: column; }
	.jr .jr-service-intro > div { flex: none; }
	.jr .jr-service-gate { grid-template-columns: minmax(0,1fr); }
	.sarv-recovery { grid-template-columns: minmax(0,1fr); }
	.sarv-error-art { min-height: 9.5rem; font-size: clamp(4.5rem,17vw,6.5rem); }
}
@media (max-width: 25rem) {
	.sarv-result-list a { flex-wrap: wrap; }
	.sarv-result-list a > .jr-icon { display: none; }
	.sarv-result-list img { max-width: 24%; }
	.jr .jr-service-gate > a { grid-template-columns: 32px minmax(0,1fr) 16px; gap: .55rem; }
	.jr .jr-service-gate > a > .jr-icon:first-child { width: 32px; height: 32px; padding: 6px; }
}
@media print {
	.jr .jr-detail-image, .jr .sarv-read-jump, .jr .sarv-journal-tabs { display: none; }
	.jr .jr-detail-title { width: 100%; text-align: start; }
	.jr .jr-detail-hero, .jr .jr-kitchen, .jr .jr-story-body { display: block; }
}
