#aaravliu {
    box-sizing: border-box;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 32px;
    padding: 24px;
    border-left: 4px solid blue;
    background: linear-gradient(135deg, #fff 0%, #eaf5ed 100%);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(25, 35, 45, 0.06);
}
#aaravliu h2 {
    margin: 0 0 10px;
}
#aaravliu .about-help-label {
    display: block;
    margin-bottom: 8px;
    color: #007aff;
    font-size: 0.75rem;
    font-weight: 700;
}
#aaravliu h2 {
    color: #202b36;
}
#aaravliu p {
    margin: 0;
    max-width: 58ch;
    color: #73777d;
    line-height: 1.6;
}
@font-face {
  font-family: 'Ortica'; 
  src: url('www/fonts/OrticaLinear-Regular.otf') format('truetype'); 
}

html {
    min-height: 100%;
    background-color: #eef3f7;
    color-scheme: light;
}

body{
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", sans-serif;

    background-color: #eef3f7;
    color: #1d1d1f;
    margin: 0;
    padding: env(safe-area-inset-top) 20px calc(70px + env(safe-area-inset-bottom));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
    max-height: 60px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #d2d2d7;
    box-shadow: 0 -3px 12px rgba(25,35,45,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-item {
    color: #6e6e73;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.nav-item.active {
    color: #007aff
}



h1{font-size: 1.75rem; font-weight: 625;}
h2{font-size: 1.5rem; font-weight: 625;}
h3{font-size: 1.25rem;}
p{font-size: 1rem;}
.firstLine {
    background-color: white;
    padding: 16px 24px;
    
}
.firstLine p{
    margin: 0;
    line-height: 1.6;
    color: #73777d;
}

.hidden{
    display: none !important;

}


#back-button {
    padding: 10px 18px;
    border: 1px solid #e2e5e8;
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
}

.type-button {
    padding: 10px 18px;
    border: 1px solid #e2e5e8;
    border-radius: 999px;
    background: #fff;
    font-size: 15px;

}

.type-button.active {
    color: #16834a;
    background: #e8f6ed;
    border-color: #bfe6cc;
}

.firstLine h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

body.about-page .firstLine {
    box-sizing: border-box;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 24px;
    border-left: 4px solid blue;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(25, 35, 45, 0.06);
}

body.about-page > h2 {
    width: 100%;
    max-width: 640px;
    margin: 28px auto 0;
}
body.about-page .firstLine {
    background: linear-gradient(135deg, #fff 0%, #eaf5ed 100%);
}



body.about-page #detail-information {
    box-sizing: border-box;
    width: 100%;
    max-width: 640px;
    margin: 16px auto 32px;
    box-shadow: none;
}

body.about-page #detail-information dt {
    color: blue;
}

.firstLine a {
    color: #0071e3
}

h2 {
    margin-top: 32px;
}

#recall-search {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e2e5e8;
    border-radius: 16px;
}
#recall-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}
#drug-search {
    display: block;
    width: 300px;
    padding: 12px;
    border: 1px solid #858589;
    border-radius: 10px;
    font-size: 16px;
}

#recall-search:focus{
    outline: 3px solid #a8d8fd;
    border-color: maroon;
}

#drug-search:focus{
    outline: 3px solid #a8d8fd;
    border-color: maroon;
}

.card {
    min-height: 190px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 1px solid #e2e5e8;
    border-radius: 26px;
    box-shadow: 0 4px 12px rgba(25, 35, 45, 0.08);

    background-color: #fff;
    margin-bottom: 0;
    overflow-wrap: break-word; /* stops long food names from overflowing outside the card */
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 650;
}

.card .product-name {
    display: -webkit-box;
    overflow: hidden;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
}

.card p {
    margin: 4px 0;
    color: #73777d;
    line-height: 1.4;
}

.card{
    position: relative;
}

.card .classification{

    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.card .classification-text {
    margin: 0 0 4px;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
}

.classification-copy {
    min-width: 0;
}

.card .classification-badge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 14px;
    color: #fff;
    text-align: left;
}

#search-status {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid #c8d8e8;
    border-radius: 16px;
    background: #f7fbff;
    line-height: 1.5;
    white-space: pre-wrap;
}

#search-status p {
    margin: 0;
}

#detail-information {
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
    gap: 8px 14px;
    margin: 22px 0;
    padding: 18px;
    border: 1px solid #e2e5e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(25, 35, 45, 0.08);
    line-height: 1.5;
    
}

#detail-information dt {
    color: #646b73;
    font-weight: 600;
}

#detail-information dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.card[role="button"]:focus-visible {
    outline: 3px solid #a8d8fd;
    outline-offset: 3px;
}

.card .classification-definition {
    margin: 0;
    color: inherit;
    font-size: 12px;
    line-height: 1.4;
}

.card .classification-badge.class-i {
    background: rgba(180, 35, 44, 0.4);
    color: #fff;
}

.card .classification-badge.class-unclassified {
    background: rgba(108, 117, 125, 0.14);
    color: #343a40;
}

.card .classification-badge.class-ii {
    background: rgba(242, 140, 40, 0.4);
    color: #1d1d1f;
}

#detail-screen > h2 {
    margin: 20px 0 8px;
    overflow-wrap: anywhere;
}

#detail-screen > #detail-company {
    color: #646b73;
    margin: 0 0 18px;
}

.classification-explainer {
    margin: 0 0 16px;
    padding: 16px 18px;
    border: 1px solid #c8d8e8;
    border-left: 5px solid #315bd2;
    border-radius: 12px;
    background: #f7fbff;
}

.classification-explainer[hidden] {
    display: none;
}

.classification-explainer h3 {
    margin: 0 0 6px;
    color: #30343a;
    font-size: 16px;
}

.classification-explainer p {
    margin: 0;
    color: #535d68;
    font-size: 14px;
    line-height: 1.5;
}

.detail-card {
    margin: 14px 0;
    padding: 20px;
    border: 1px solid #e2e5e8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(25, 35, 45, 0.05);
}

#fsis-section {
    background: linear-gradient(135deg, #fff 0%, #eaf2ff 100%);
}

.detail-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.detail-heading-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: #a0a4aa;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.detail-card p {
    margin: 8px 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.fsis-result {
    margin: 12px 0;
    padding: 16px;
    border: 1px solid #e2e5e8;
    border-radius: 14px;
    background: #f8f9fb;
}

.fsis-result h4 {
    margin: 0 0 10px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.fsis-result p {
    margin: 7px 0;
}

.fsis-contact-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e5e8;
}

.fsis-contact-section summary {
    cursor: pointer;
    font-weight: 600;
    line-height: 1.5;
}

.fsis-contact-section summary:focus-visible {
    outline: 2px solid #a8d8fd;
    outline-offset: 3px;
    border-radius: 3px;
}

#fsis-contact-list {
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #a0a4aa #f1f2f4;
    scrollbar-width: thin;
}

.fsis-contact-entry h5 {
    margin: 0 0 8px;
}

.fsis-contact-entry {
    margin: 10px 0;
    padding: 12px;
    border: 1px solid #e2e5e8;
    border-radius: 12px;
    background: #f8f9fb;
}

.fsis-contact-entry p {
    margin: 6px 0;
    overflow-wrap: anywhere;
}

.fsis-contact-entry .contact-row {
    margin: 8px 0;
    color: inherit;
}

.fsis-product-image {
    display: block;
    width: auto;
    max-width: min(100%, 320px);
    max-height: 240px;
    margin: 12px 0;
    border-radius: 10px;
    object-fit: contain;
}

.detail-card a,
.detail-source a {
    display: inline-block;
    margin: 6px 12px 4px 0;
    color: #5145e5;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    color: #5145e5;
}

.contact-row img {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.7;
}

.detail-source {
    color: #646b73;
    font-size: 0.9rem;
    line-height: 1.5;
}

#detail-information:empty {
    display: none;
}

@media (max-width: 420px) {
    .detail-card {
        padding: 16px;
    }

    #detail-information {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    #detail-information dd:not(:last-child) {
        margin-bottom: 8px;
    }
}

.card .classification-badge.class-iii {
    background: rgba(255, 213, 74, 0.4);
    color: #1d1d1f;
}

.card h3 {
    margin-top: 28px;
}

#detail-product {
    max-width: 100%;
    margin: 18px 0 10px;
    font-size: clamp(1.35rem, 5vw, 2rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: normal;
}

header, 
.recall-section, 
#detail-screen {
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

header{
    display: flex;
    align-items: center;
    justify-content: center;    
    gap:12px;
    width: 100%;
    margin: 18px auto 34px;
}
.first{
    display: flex;
    align-items: center;
    gap: 10px;
}
.first img{
    height: 64px;
    width: 64px;

}
nav{
    gap: 20px;
    text-decoration: none;
    margin-right: 20px;
}
nav a{
    text-decoration: none;
}


.arrow-button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background-color: #e5e5ea;

  justify-content: center;
  align-items: center;
}

.arrow-button img {
  width: 18px;
  height: 18px;
}

.arrow-button:disabled {
  opacity: 0.4;
}

@media (max-width: 600px) {
    
    #recall-list {
        gap: 12px;
    }

    .card {
        min-height: 170px;
        padding: 18px 12px;
        border-radius: 22px;
    }

    .card h3 {
        font-size: 1.05rem;
    }

    .card p {
        font-size: 0.9rem;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}


.bottom-nav {
    position: fixed;
    left: 50vw;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateX(-50%);

    width: min(360px, calc(100vw - 48px));
    max-width: none;
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 6px;

    padding: 6px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e2e5e8;
    border-radius: 999px;
    box-shadow: 0 3px 12px rgba(25, 35, 45, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 6px;
    border-radius: 999px;
    color: #6e6e73;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.nav-item.active {
    color: #1d1d1f;
    background: #eceef0;
}




.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    margin-top: 8px;
    padding: 0 16px;
    background: #f5f7fb;
    border: 1px solid #d5dce5;
    border-radius: 18px;
}

.product-check-prompt {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0 0 10px;
    padding: 16px 18px;
    border: 1px solid #e2e5e8;
    border-radius: 16px;
    background: #fff;
    color: #303943;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.product-check-prompt:active {
    transform: scale(0.99);
}

.product-check-prompt:focus-visible {
    outline: 3px solid #a8d8fd;
    outline-offset: 3px;
}

.product-check-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #626b76;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 1.7;
}

.product-check-copy {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 4px;
}

.product-check-copy strong {
    font-size: 16px;
    font-weight: 650;
}

.product-check-copy > span {
    color: #73777d;
    font-size: 14px;
}

.product-check-arrow {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #73777d;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.package-check-page {
    background: #f4f5f6;
}

.package-check-header {
    box-sizing: border-box;
    justify-content: space-between;
    max-width: 720px;
    margin: 18px auto 40px;
    padding: 8px 6px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.package-check-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #414a56;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -1.2px;
    text-decoration: none;
}

.package-check-brand svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #4166d5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.package-check-brand-dot {
    color: #4166d5;
}

.recalls-header {
    box-sizing: border-box;
    justify-content: space-between;
    max-width: 720px;
    margin: 18px auto 34px;
    padding: 8px 6px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.recalls-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #414a56;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -1.2px;
}

.recalls-brand-mark {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    overflow: visible;
}

.recalls-mark-arrow {
    fill: none;
    stroke: #1d1d1f;
    stroke-width: 5;
    stroke-linecap: round;
}

.recalls-mark-arrowhead {
    fill: #1d1d1f;
}

.recalls-mark-alert {
    fill: #d70015;
}

.recalls-brand-dot {
    color: #4166d5;
}

.recalls-settings-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #626b76;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.package-check-settings {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #626b76;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.package-check-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.package-check-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #73777d;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.package-check-content > h1 {
    margin: 0 0 14px;
    color: #30343a;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(2.4rem, 7vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.package-check-description {
    margin: 0 0 36px;
    color: #73777d;
    font-size: 18px;
    line-height: 1.5;
}

.page-intro {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto 30px;
}

.page-intro-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #73777d;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.page-intro h1 {
    margin: 0 0 14px;
    color: #30343a;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(2.4rem, 7vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.page-intro > p {
    margin: 0;
    color: #73777d;
    font-size: 18px;
    line-height: 1.5;
}

.barcode-lookup {
    margin: 0 0 34px;
    padding: 20px;
    border: 1px solid #dce2ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(25, 35, 45, 0.04);
}

.barcode-lookup > h2 {
    margin: 0 0 8px;
    color: #30343a;
    font-size: 20px;
}

.barcode-lookup > p:not(.barcode-status) {
    margin: 0 0 16px;
    color: #73777d;
    font-size: 14px;
    line-height: 1.5;
}

.barcode-scan-button,
.barcode-manual-entry button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: #315bd2;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 650;
    cursor: pointer;
}

.barcode-scan-button {
    width: 100%;
    margin-bottom: 18px;
}

.barcode-scan-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 1.8;
}

.barcode-lookup > label {
    display: block;
    margin: 0 0 8px;
    color: #464d56;
    font-size: 14px;
    font-weight: 600;
}

.barcode-manual-entry {
    display: flex;
    gap: 8px;
}

.barcode-manual-entry input {
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 12px;
    border: 1px solid #d9dde2;
    border-radius: 8px;
    background: #fff;
    color: #444b54;
    font: inherit;
    font-size: 16px;
}

.barcode-manual-entry button {
    min-height: 48px;
    padding: 10px 16px;
    font-size: 14px;
}

.barcode-scan-button:disabled,
.barcode-manual-entry button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.barcode-status {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid #d9dde2;
    border-radius: 10px;
    background: #f6f8fa;
    color: #535d68;
    font-size: 14px;
    line-height: 1.45;
}

.barcode-status.error {
    border-color: #e8b9b9;
    background: #fff4f3;
    color: #8e2424;
}

.barcode-status.success {
    border-color: #b9ddc6;
    background: #f0faf3;
    color: #24673c;
}

.product-result {
    display: block;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e2e5e8;
    border-radius: 12px;
    background: #fff;
}

.product-result[hidden] {
    display: none;
}

.product-result-details {
    min-width: 0;
}

.product-result-details h3 {
    margin: 0 0 8px;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.product-result-details p {
    margin: 5px 0;
    color: #646b73;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.product-result-details a {
    display: inline-block;
    margin-top: 6px;
    color: #315bd2;
    font-size: 14px;
}

.barcode-disclaimer {
    margin: 14px 0 0 !important;
    color: #73777d;
    font-size: 13px !important;
}

.barcode-manual-entry input:focus-visible,
.barcode-scan-button:focus-visible,
.barcode-manual-entry button:focus-visible,
.recall-match-card input:focus-visible,
.package-code-check:focus-visible {
    outline: 3px solid #a8d8fd;
    outline-offset: 2px;
}

.recall-check-results {
    margin: 0 0 32px;
}

.recall-check-results[hidden] {
    display: none;
}

.recall-check-results > h2 {
    margin: 0 0 12px;
    color: #30343a;
    font-size: 22px;
}

.recall-check-status,
.package-code-result {
    margin: 14px 0;
    padding: 14px 16px;
    border: 1px solid #d9dde2;
    border-radius: 10px;
    background: #f6f8fa;
    color: #535d68;
    font-size: 14px;
    line-height: 1.5;
}

.recall-check-status.possible-match,
.package-code-result.possible-match,
.package-code-result.inconclusive,
.recall-check-status.inconclusive {
    border-color: #e9c989;
    background: #fff8e8;
    color: #714d00;
}

.recall-check-status.error,
.package-code-result.error {
    border-color: #e8b9b9;
    background: #fff4f3;
    color: #8e2424;
}

.recall-match-card {
    margin: 14px 0;
    padding: 18px;
    border: 1px solid #dce2ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(25, 35, 45, 0.04);
}

.recall-match-card h3 {
    margin: 0 0 8px;
    color: #30343a;
    font-size: 18px;
}

.recall-match-card p {
    margin: 8px 0;
    color: #535d68;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.recall-match-card .recall-match-evidence {
    color: #714d00;
    font-weight: 650;
}

.recall-match-card .recall-match-codes {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f6f8fa;
}

.recall-match-card label {
    display: block;
    margin-top: 14px;
    color: #464d56;
    font-size: 14px;
    font-weight: 600;
}

.recall-match-card input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #d9dde2;
    border-radius: 8px;
    background: #fff;
    color: #444b54;
    font: inherit;
    font-size: 16px;
}

.package-code-check {
    min-height: 44px;
    margin-top: 10px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #315bd2;
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.package-code-result[hidden] {
    display: none;
}

.recall-match-source {
    display: inline-block;
    margin-top: 10px;
    color: #315bd2;
    font-weight: 650;
}

.recall-check-sources {
    margin: 14px 0;
    color: #73777d;
    font-size: 13px;
    line-height: 1.5;
}

.search-box img {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    opacity: 0.7;
}

#recall-search {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #1d1d1f;
    font: inherit;
    font-size: 17px;
    appearance: none;
    -webkit-appearance: none;
}

.search-box:focus-within {
    border-color: #aeb8c5;
    box-shadow: 0 0 0 3px rgba(120, 140, 165, 0.12);
}

#recall-search:focus {
    border: 0;
    outline: 0;
}

/* Give the page room below the fixed navigation */
body {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

/* Add consistent space between the header, category buttons, and search */
header {
    justify-content: center;
    margin: 8px auto 24px;
}

header h1 {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 4.5rem;
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -1px;
}

.recall-type-picker {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

header img {
    width: 100px;
    height: 100px;
    flex: 0 0 auto;
}

/* Use one readable card column on phones and narrow iOS windows */
@media (max-width: 700px) {
    #recall-list {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 16px;
    }

    .card {
        min-height: 0;
        padding: 28px 20px;
        border-radius: 22px;
    }

    .card h3 {
        line-height: 1.3;
    }

    .card p {
        line-height: 1.45;
    }
}

@media (min-width: 701px) {
    #recall-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

header {
    box-sizing: border-box;
    justify-content: center;
    gap: 12capx;
    margin: 14px auto 34px;
    padding: 14px 22px;
    background: #626b76;
    border: 1px solid #737d88;
    border-radius: 22px;
}

header h1 {
    font-family: "Ortica";
    font-weight: 600;
    letter-spacing: 0.03em;
    
}

header img {
    flex: 0 0 auto;
}

.card {
    justify-content: flex-start;
    overflow: hidden;
}

.card .classification-badge {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: -24px -16px 18px;
    padding: 12px 16px;
    border-radius: 0;
    color: #1d1d1f;
    text-align: left;
}



.card .classification {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.card .classification-text {
    margin: 0;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
}

.card h3 {
    margin: 0 0 8px;
}

@media (max-width: 700px) {
    .card .classification-badge {
        margin: -28px -20px 18px;
        padding: 12px 20px;
    }

}

/* used AI for animation modeling */
.card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(25, 35, 45, 0.14);
}

@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }
}
 
.type-button,
.search-box {
    -webkit-tap-highlight-color: transparent;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.type-button:active,
.search-box:active {
    transform: scale(0.97);
}

.search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(120, 140, 165, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .type-button,
    .search-box {
        transition: none;
    }
}

.type-button,
.search-box,
.arrow-button {
    -webkit-tap-highlight-color: transparent;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.type-button:active,
.search-box:active,
.arrow-button:active:not(:disabled) {
    transform: scale(0.97);
}

.bottom-nav {
    position: fixed;
    isolation: isolate;
    width: min(420px, calc(100vw - 40px));
    min-height: 64px;
    max-height: none;
    padding: 5px;
    gap: 5px;
    border: 1px solid #515b68;
    border-radius: 22px;
    background: #4b5562;
    box-shadow: 0 5px 18px rgba(25, 35, 45, 0.22);
}

.bottom-nav::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc((100% - 25px) / 4);
    border-radius: 17px;
    background: #626d7a;
    transition: transform 280ms ease;
}

.bottom-nav:has(.nav-item:nth-child(2).active)::before {
    transform: translateX(calc(100% + 5px));
}

.bottom-nav:has(.nav-item:nth-child(3).active)::before {
    transform: translateX(calc(200% + 10px));
}

.bottom-nav:has(.nav-item:nth-child(4).active)::before {
    transform: translateX(calc(300% + 15px));
}

.bottom-nav .nav-item {
    position: relative;
    z-index: 1;
    background: transparent;
    min-height: 52px;
    flex-direction: column;
    gap: 5px;
    padding: 5px 2px;
    color: #d3d8de;
    font-size: 11px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: color 180ms ease, transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bottom-nav .nav-item:active {
    transform: scale(0.9);
}

.bottom-nav .nav-item.active {
    background: transparent;
    color: #fff;
    font-weight: 650;
}

.nav-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.watchlist-page {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.food-safety-content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.safety-switch {
    display: flex;
    width: fit-content;
    max-width: 100%;
    gap: 4px;
    margin: 0 0 24px;
    padding: 4px;
    border: 1px solid #dce2ed;
    border-radius: 14px;
    background: #fff;
}

.safety-switch-button {
    min-height: 42px;
    padding: 9px 16px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #646b73;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.safety-switch-button.active {
    background: #e8edf7;
    color: #315bd2;
}

.safety-view[hidden] {
    display: none;
}

.food-safety-intro {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto 28px;
    padding: 24px;
    border-left: 4px solid #4166d5;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff 0%, #eaf5ed 100%);
    box-shadow: 0 4px 14px rgba(25, 35, 45, 0.06);
}

.food-safety-intro h1,
.food-safety-intro h2 {
    margin: 0 0 10px;
    color: #202b36;
}

.food-safety-intro p {
    margin: 0;
    max-width: 58ch;
    color: #73777d;
    line-height: 1.6;
}

.food-safety-intro .about-help-label {
    display: block;
    margin-bottom: 8px;
    color: #4166d5;
    font-size: 0.75rem;
    font-weight: 700;
}

.food-safety-content > h2 {
    margin: 28px 0 0;
}

.food-safety-guidelines {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
    gap: 8px 14px;
    width: 100%;
    margin: 16px auto 32px;
    padding: 18px;
    border: 1px solid #e2e5e8;
    border-radius: 18px;
    background: #fff;
    line-height: 1.5;
}

.food-safety-guidelines dt {
    color: #4166d5;
    font-weight: 600;
}

.food-safety-guidelines dd {
    margin: 0;
}

.watchlist-page > h2 {
    margin: 0 0 8px;
}

.watchlist-intro {
    margin: 0 0 20px;
    color: #646b73;
}

.watchlist-list {
    display: grid;
    gap: 14px;
}

.watchlist-card,
.watchlist-empty {
    margin: 0;
    padding: 20px;
    border: 1px solid #e2e5e8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(25, 35, 45, 0.05);
}

.watchlist-card h3 {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

.watchlist-card p {
    margin: 6px 0;
    color: #646b73;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.watchlist-toggle,
.watchlist-remove {
    margin: 10px 10px 10px 0;
    padding: 10px 16px;
    border: 1px solid #d3d9e0;
    border-radius: 999px;
    background: #fff;
    color: #38424f;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.watchlist-toggle[aria-pressed="true"] {
    border-color: #b8d9c4;
    background: #e8f6ed;
    color: #16834a;
}

button,
.card[role="button"],
.search-box,
.product-check-prompt,
.recall-step {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button {
    transition: transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

button:active:not(:disabled),
button.is-pressed:not(:disabled) {
    transform: scale(0.96);
}

.card[role="button"] {
    transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 180ms ease;
}

.card[role="button"]:active,
.card[role="button"].is-pressed {
    transform: scale(0.985);
}

.search-box {
    transition: transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.search-box:active,
.search-box.is-pressed {
    transform: scale(0.99);
}

.product-check-prompt,
.recall-step {
    transition: transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.product-check-prompt:active,
.product-check-prompt.is-pressed,
.recall-step:active,
.recall-step.is-pressed {
    transform: scale(0.985);
}

.bottom-nav .nav-item.is-pressed {
    transform: scale(0.9);
}

@media (prefers-reduced-motion: reduce) {
    .bottom-nav::before,
    .bottom-nav .nav-item,
    button,
    .card[role="button"],
    .search-box,
    .product-check-prompt,
    .recall-step {
        transition: none;
    }

    button:active:not(:disabled),
    button.is-pressed:not(:disabled),
    .card[role="button"]:active,
    .card[role="button"].is-pressed,
    .search-box:active,
    .search-box.is-pressed,
    .product-check-prompt:active,
    .product-check-prompt.is-pressed,
    .recall-step:active,
    .recall-step.is-pressed,
    .bottom-nav .nav-item.is-pressed {
        transform: none;
    }
}

.recall-action-plan {
    max-width: 720px;
    margin: 28px auto;
    padding: 24px;
    border: 1px solid #dce7f5;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, #eaf2ff 100%);
    box-shadow: 0 4px 14px rgba(25, 50, 85, 0.08);
}

.recall-plan-header h2 {
    margin: 8px 0;
}

.recall-plan-header p,
.recall-plan-footnote {
    color: #536273;
    line-height: 1.5;
}

.recall-plan-label {
    color: #315f9d;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.recall-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    padding: 14px;
    border: 1px solid #f0d59c;
    border-radius: 12px;
    background: #fff8e8;
}

.recall-alert p {
    margin: 0;
    line-height: 1.5;
}

.recall-alert-icon {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #f2c35e;
    color: #392700;
    font-weight: 800;
}

.recall-checklist {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.recall-checklist legend {
    margin-bottom: 10px;
    font-weight: 700;
}

.recall-step {
    display: grid;
    grid-template-columns: auto 32px 1fr;
    align-items: start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dce3ec;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.recall-step input {
    margin-top: 7px;
    accent-color: #426fae;
}

.recall-step-number {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: #e4efff;
    color: #315f9d;
    font-size: 0.78rem;
    font-weight: 700;
}

.recall-step-copy {
    display: grid;
    gap: 4px;
    line-height: 1.45;
}

.recall-step-copy > span {
    color: #536273;
}

.recall-step:has(input:checked) {
    border-color: #8eb3e4;
    background: #f4f8ff;
}

.recall-plan-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 20px;
}

.recall-plan-links > span {
    flex-basis: 100%;
    font-weight: 700;
}

.recall-plan-footnote {
    margin-bottom: 0;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .recall-action-plan {
        padding: 18px;
    }
}
