.pj-grocery-recipe {
    display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px;
    margin-block: .45rem .7rem; font: 600 16px/1.35 Assistant,system-ui,sans-serif;
}
.pj-grocery-recipe .pj-grocery-add, .pj-grocery-page .pj-gl-button {
    box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    max-width: 100%; margin: 0; padding: 8px 16px; border: 1px solid #8c9b87; border-radius: 5px;
    color: #304638; background: #fff; box-shadow: none; font: 650 16px/1.35 Assistant,system-ui,sans-serif;
    text-transform: none; letter-spacing: normal; text-align: center; cursor: pointer;
}
.pj-grocery-recipe .pj-grocery-add, .pj-grocery-page .pj-gl-primary {
    border-color: #354e3b; background: #354e3b; color: white;
}
.pj-grocery-recipe .pj-grocery-add[aria-disabled="true"] { border-color: #b9c3b2; background: #edf1e8; color: #304638; }
.pj-grocery-recipe a.pj-grocery-view {
    display: inline-flex; min-height: 44px; align-items: center; font: inherit;
    color: #354e3b; text-decoration: underline; text-underline-offset: 3px;
}
.pj-grocery-recipe .pj-grocery-added:not(:empty) { flex-basis: 100%; color: #475a49; font-weight: 400; }
.pj-grocery-recipe .pj-grocery-added:empty, .pj-grocery-recipe [hidden], .pj-grocery-page [hidden],
.pj-ingredient-hint[hidden] { display: none !important; }
.pj-grocery-page {
    --gl-ink: #29392e; --gl-muted: #52624f; --gl-line: #cbd0c3; --gl-paper: #f5f4ed;
    box-sizing: border-box; width: min(100% - clamp(32px, 8vw, 96px), 1090px); margin: 0 auto;
    padding-block: clamp(30px, 6vw, 82px) clamp(40px, 6vw, 80px); color: var(--gl-ink);
    font: 400 clamp(17px, 1.4vw, 19px)/1.5 Assistant,system-ui,sans-serif; overflow-wrap: anywhere;
}
.pj-grocery-page *, .pj-grocery-page *::before { box-sizing: border-box; }
.pj-grocery-page .pj-gl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pj-grocery-page :is(h1,h2,h3,p,ol,ul,li,label) { margin: 0; padding: 0; }
.pj-grocery-page .pj-gl-head { padding-bottom: clamp(16px, 2vw, 26px); border-bottom: 1px solid #82947f; }
.pj-grocery-page .pj-gl-title {
    margin: 0; color: #273c2c; font: 400 clamp(39px, 5.5vw, 70px)/1.05 Georgia,"Times New Roman",serif;
    letter-spacing: -.038em; text-wrap: balance;
}
.pj-grocery-page .pj-gl-summary { margin-top: .65rem; font: 500 clamp(17px, 1.5vw, 20px)/1.4 Assistant,system-ui,sans-serif; color: var(--gl-muted); }
.pj-grocery-page .pj-gl-summary a { display: inline-flex; min-height: 44px; align-items: center; }
.pj-grocery-page h2:not(.pj-gl-title) {
    font: 400 clamp(24px, 2.3vw, 31px)/1.2 Georgia,"Times New Roman",serif;
    letter-spacing: -.02em; color: var(--gl-ink);
}
.pj-grocery-page :is(.pj-gl-status,.pj-gl-storage):not(:empty), .pj-grocery-page .pj-gl-import:not(:empty),
.pj-grocery-page .pj-gl-copy-fallback:not(:empty), .pj-grocery-page .pj-gl-confirm {
    margin: 14px 0 0; padding: 10px 14px; background: #eff2e9; border-inline-start: 3px solid #748766;
    font: 500 16px/1.5 Assistant,system-ui,sans-serif;
}
.pj-grocery-page .pj-gl-status:empty, .pj-grocery-page .pj-gl-copy-fallback:empty,
.pj-grocery-page .pj-gl-import:empty, .pj-grocery-page .pj-gl-suggestions:empty { display: none; }
.pj-grocery-page :is(.pj-gl-import,.pj-gl-confirm) .pj-gl-button { margin: 8px 7px 0 0; }
.pj-grocery-page .pj-gl-tools {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0;
}
.pj-grocery-page .pj-gl-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 30%); gap: clamp(28px, 5vw, 72px);
    align-items: start; margin-top: clamp(24px, 3.4vw, 44px);
}
.pj-grocery-page .pj-gl-main { min-width: 0; }
.pj-grocery-page .pj-gl-form { margin: 0; }
.pj-grocery-page .pj-gl-label { display: block; margin: 0 0 5px; color: var(--gl-ink); font: 650 17px/1.45 Assistant,system-ui,sans-serif; }
.pj-grocery-page .pj-gl-field { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.pj-grocery-page :is(.pj-gl-field input,.pj-gl-copy-fallback textarea) {
    min-width: 0; width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #899785;
    border-radius: 5px; background: #fff; color: var(--gl-ink); font: 400 17px/1.4 Assistant,system-ui,sans-serif;
    box-shadow: none;
}
.pj-grocery-page .pj-gl-field input::placeholder { color: #687264; opacity: 1; }
.pj-grocery-page .pj-gl-suggestions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.pj-grocery-page .pj-gl-suggestion {
    min-height: 44px; max-width: 100%; border: 1px solid #d5dacc; border-radius: 4px; padding: 6px 10px;
    background: #f6f7f1; color: var(--gl-ink); font: 500 15px/1.35 Assistant,system-ui,sans-serif; cursor: pointer;
}
.pj-grocery-page .pj-gl-empty { margin-top: 28px; border-top: 1px solid var(--gl-line); padding-top: 22px; }
.pj-grocery-page .pj-gl-empty p { margin-top: 8px; color: var(--gl-muted); }
.pj-grocery-page .pj-gl-link, .pj-grocery-page .pj-gl-textbutton {
    color: #304d37; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .19em;
}
.pj-grocery-page .pj-gl-empty > a, .pj-grocery-page .pj-gl-aside > a {
    display: inline-flex; align-items: center; min-height: 44px; margin-top: 5px; font-weight: 600;
}
.pj-grocery-page .pj-gl-department { margin-top: clamp(26px, 3vw, 38px); }
.pj-grocery-page .pj-gl-department h2 { padding-bottom: 8px; border-bottom: 1px solid #869981; }
.pj-grocery-page :is(.pj-gl-list,.pj-gl-sources), .pj-grocery-page :is(.pj-gl-list,.pj-gl-sources) > li {
    padding: 0; margin: 0; list-style: none;
}
.pj-grocery-page .pj-gl-row, .pj-grocery-page .pj-gl-sources > li {
    display: grid; grid-template-columns: minmax(0,1fr) 44px; align-items: center; border-bottom: 1px solid #dee1d7;
}
.pj-grocery-page .pj-gl-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-height: 52px; cursor: pointer; }
.pj-grocery-page .pj-gl-item input {
    appearance: auto; align-self: flex-start; flex: 0 0 21px; width: 21px; height: 21px;
    margin: 3px 0 0; accent-color: #38563d; cursor: pointer;
}
.pj-grocery-page .pj-gl-item-words {
    display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 1px 12px;
    flex: 1; min-width: 0; line-height: 1.43;
}
.pj-grocery-page .pj-gl-name { font-weight: 560; }
.pj-grocery-page .pj-gl-amount { color: #374c3a; font: 650 16px/1.4 Assistant,system-ui,sans-serif; max-width: 14ch; text-align: end; }
.pj-grocery-page .pj-gl-note, .pj-grocery-page .pj-gl-serving, .pj-grocery-page .pj-gl-muted {
    display: block; grid-column: 1/-1; color: var(--gl-muted); font: 400 15px/1.45 Assistant,system-ui,sans-serif;
}
.pj-grocery-page .is-purchased .pj-gl-name { color: #606c60; text-decoration: line-through; }
.pj-grocery-page .pj-gl-remove {
    display: grid; place-items: center; align-self: start; width: 44px; min-height: 48px; border: 0;
    color: #606d60; background: transparent; border-radius: 4px; padding: 0; font: 400 25px/1 Assistant,system-ui,sans-serif;
    cursor: pointer;
}
.pj-grocery-page .pj-gl-list-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.pj-grocery-page .pj-gl-textbutton {
    min-height: 44px; border: 0; background: none; padding: 4px 1px; cursor: pointer;
    font: 600 16px/1.4 Assistant,system-ui,sans-serif;
}
.pj-grocery-page button:disabled { opacity: .53; cursor: default; }
.pj-grocery-page .pj-gl-danger { background: #763c2e; border-color: #763c2e; color: white; }
.pj-grocery-page .pj-gl-aside {
    background: var(--gl-paper); border-top: 2px solid #997848; padding: 18px clamp(14px, 2vw, 24px);
}
.pj-grocery-page .pj-gl-aside h2 { font-size: clamp(23px, 2.2vw, 29px); margin-bottom: 8px; }
.pj-grocery-page .pj-gl-sources > li { grid-template-columns: minmax(0,1fr) 44px; padding-block: 5px; }
.pj-grocery-page .pj-gl-sources a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.pj-grocery-page .pj-gl-serving { margin: -1px 0 6px; }
.pj-grocery-page .pj-gl-copy-fallback textarea { display: block; resize: vertical; margin-bottom: 7px; }
.pj-grocery-page :is(button,a,input,textarea):focus-visible, .pj-grocery-recipe :is(a,button):focus-visible {
    outline: 3px solid #82641e; outline-offset: 2px;
}
@media (hover: hover) {
    .pj-grocery-page :is(.pj-gl-button,.pj-gl-suggestion):hover { background: #eaf0e4; color: #283e2d; }
    .pj-grocery-recipe .pj-grocery-add:not([aria-disabled="true"]):hover, .pj-grocery-page .pj-gl-primary:hover { background: #253c2c; color: white; }
    .pj-grocery-page .pj-gl-remove:hover { background: #f1eee6; color: #713d2b; }
}
@media (max-width: 760px) {
    .pj-grocery-page .pj-gl-layout { grid-template-columns: minmax(0,1fr); }
    .pj-grocery-page .pj-gl-tools { gap: 6px; }
    .pj-grocery-page .pj-gl-tools .pj-gl-button { padding-inline: 10px; }
}
@media (max-width: 480px) {
    .pj-grocery-page .pj-gl-tools .pj-gl-button { padding-inline: 8px; font-size: 15px; }
    .pj-grocery-page .pj-gl-item-words { display: flex; flex-wrap: wrap; column-gap: .5em; }
    .pj-grocery-page .pj-gl-note { flex-basis: 100%; }
    .pj-grocery-page .pj-gl-amount { text-align: start; }
    .pj-grocery-page .pj-gl-field input { font-size: 16px; }
}
#pj-grocery-print { display: none; }
@media print {
    .pj-grocery-recipe { display: none !important; }
    body:has(> #pj-grocery-print) > :not(#pj-grocery-print) { display: none !important; }
    body > #pj-grocery-print { display: block; background: white; color: black; font: 11pt/1.4 Georgia,serif; }
    #pj-grocery-print h1 { margin: 2mm 0 4mm; font: bold 22pt/1.1 Georgia,serif; }
    #pj-grocery-print h2 { margin: 5mm 0 1mm; border-bottom: .5pt solid #777; font: bold 14pt/1.2 Georgia,serif; break-after: avoid; }
    #pj-grocery-print ul { list-style: none; margin: 0; padding: 0; }
    #pj-grocery-print li { margin: 0; padding: 1mm 0; break-inside: avoid; }
    #pj-grocery-print p { margin: 1mm 0; }
    #pj-grocery-print small { display: block; margin-inline-start: 1.5em; font: italic 9pt/1.3 Georgia,serif; }
    #pj-grocery-print .pj-gl-print-mark { display: inline-block; width: 1em; height: 1em; line-height: .9; text-align: center; margin-right: .4em; border: .7pt solid #555; vertical-align: -.07em; }
}
