/* Encyclopedia hub only; individual guides retain their document layout. */
.nm-dates-hub { --dates-ink: #203a2e; --dates-muted: #52634f; --dates-line: #dce2d4; --dates-header-height: 85px; --dates-jump-height: 73px; background: #faf8f1; color: var(--dates-ink); }
body:has(.v9-header-compact) .nm-dates-hub { --dates-header-height: 65px; }
.nm-dates-hub *, .nm-dates-hub *::before, .nm-dates-hub *::after { box-sizing: border-box; }
.nm-dates-hub [hidden] { display: none !important; }
.nm-dates-hub .container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 32px; }
.nm-dates-hub .doc-crumbs { padding-block: 18px; }
.nm-dates-hub .nm-dates-hero { background: radial-gradient(ellipse at 90% 0, #e7ecdd 0, transparent 66%), #f1f2e8; border-bottom: 1px solid var(--dates-line); }
.nm-dates-hub .nm-dates-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: 64px; padding-block: 32px 40px; }
.nm-dates-hub .nm-dates-hero-copy { min-width: 0; }
.nm-dates-hub .nm-dates-eyebrow { display: flex; align-items: center; gap: 10px; color: #80633b; font-size: 14px; font-weight: 600; line-height: 1.9; }
.nm-dates-hub .nm-dates-hero h1 { margin: 18px 0; color: var(--dates-ink); font: 700 clamp(34px, 3.8vw, 50px)/1.5 'Vazirmatn', sans-serif; letter-spacing: 0; text-wrap: balance; }
.nm-dates-hub .nm-dates-hero-copy > p { max-width: 32em; margin: 0; color: #435749; font-size: 19px; line-height: 2; }
.nm-dates-hub .nm-dates-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.nm-dates-hub .doc-btn { min-height: 48px; padding: 10px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border-radius: 12px; font-size: 16px; line-height: 1.8; font-weight: 600; text-decoration: none; }
.nm-dates-hub .doc-btn-primary { background: #35583d; border: 1px solid #35583d; color: #fffdf6; }
.nm-dates-hub .doc-btn-primary:hover { background: #29462f; border-color: #29462f; color: #fffdf6; }
.nm-dates-hub .doc-btn-ghost { background: transparent; border: 1px solid #bbc9b4; color: #29462f; }
.nm-dates-hub .doc-btn-ghost:hover { background: #e3eadb; border-color: #839b7b; color: #203a2e; }
.nm-dates-hub .nm-dates-hero-photo { position: relative; min-width: 0; margin: 0; height: 360px; border-radius: 100px 22px 22px 22px; overflow: hidden; box-shadow: 0 16px 36px #22382a0d; }
.nm-dates-hub .nm-dates-hero-photo > :is(img, picture), .nm-dates-hub .nm-dates-hero-photo picture img { width: 100%; height: 100%; display: block; object-fit: cover; }
.nm-dates-hub .nm-dates-hero-photo figcaption { position: absolute; bottom: 20px; right: 20px; left: 20px; width: fit-content; max-width: calc(100% - 40px); padding: 9px 16px; border-radius: 12px; background: #fffdf4f2; color: #344e3a; font-size: 14px; font-weight: 600; line-height: 1.8; box-shadow: 0 3px 12px #142b2110; }
.nm-dates-hub .nm-dates-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 22px; margin-block: 0; border-top: 1px solid #d8dfcf; }
.nm-dates-hub .nm-dates-facts > div { padding-inline: 24px; border-inline-start: 1px solid #cfd8c5; }
.nm-dates-hub .nm-dates-facts > div:first-child { padding-inline-start: 0; border: 0; }
.nm-dates-hub .nm-dates-facts dt { margin-bottom: 5px; color: #5c695b; font-size: 13px; line-height: 1.8; }
.nm-dates-hub .nm-dates-facts dd { margin: 0; color: #304d36; font-size: 16px; font-weight: 600; line-height: 1.9; }
.nm-dates-hub .nm-dates-jump-wrap { position: sticky; top: var(--dates-header-height); z-index: 60; background: #fffdf7; border-bottom: 1px solid var(--dates-line); box-shadow: 0 5px 14px #203a2e08; }
.nm-dates-hub .nm-dates-jump { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-block: 14px; scrollbar-width: thin; }
.nm-dates-hub .nm-dates-jump > span { white-space: nowrap; color: #80633b; font-size: 13px; font-weight: 600; padding-inline-end: 18px; border-inline-end: 1px solid var(--dates-line); margin-inline-end: 8px; }
.nm-dates-hub .nm-dates-jump a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; padding: 8px 12px; border-radius: 10px; color: #3e5545; font-size: 14px; font-weight: 500; }
.nm-dates-hub .nm-dates-jump a:hover { background: #e8eddf; color: #203a2e; text-decoration: none; }
.nm-dates-hub .nm-dates-content { padding-block: 44px 20px; }
.nm-dates-hub .doc-main { width: 100%; min-width: 0; padding: 0; }
.nm-dates-hub .doc-section { margin-bottom: 64px; scroll-margin-top: 95px; }
.nm-dates-hub .doc-section[id] { scroll-margin-top: calc(var(--dates-header-height) + var(--dates-jump-height) + 20px); }
.nm-dates-hub :is(.doc-section > h2, .nm-dates-section-head h2) { margin: 0 0 16px; color: var(--dates-ink); font: 700 clamp(28px, 3vw, 36px)/1.6 'Vazirmatn', sans-serif; letter-spacing: 0; }
.nm-dates-hub .doc-prose { max-width: 80ch; margin-bottom: 26px; font-size: 17px; line-height: 2.1; }
.nm-dates-hub .doc-prose > p:first-child { border: 0; padding: 0; font-size: 17px; font-weight: 400; line-height: 2.1; color: #4d5e50; }
.nm-dates-hub #intro { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.65fr); gap: 48px; align-items: start; padding-bottom: 36px; margin-bottom: 42px; border-bottom: 1px solid var(--dates-line); }
.nm-dates-hub #intro .doc-prose { margin: 0; }
.nm-dates-hub .nm-dates-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.nm-dates-hub .nm-dates-section-head h2 { margin-bottom: 0; }
.nm-dates-hub .nm-dates-section-head .nm-dates-eyebrow { margin-bottom: 8px; }
.nm-dates-hub .nm-dates-text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; color: #35583d; font-size: 15px; font-weight: 600; }
.nm-dates-hub .nm-dates-text-link:hover { color: #80633b; }
.nm-dates-hub .nm-dates-search { display: grid; grid-template-columns: auto minmax(240px, 1fr) auto; align-items: center; gap: 20px; padding: 18px 22px; margin-bottom: 24px; background: #eff2e7; border: 1px solid var(--dates-line); border-radius: 18px; }
.nm-dates-hub .nm-dates-search > label { color: #304d36; font-size: 15px; font-weight: 600; }
.nm-dates-hub .nm-dates-search-field { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 50px; padding-inline: 14px 8px; border: 1px solid #becbb5; border-radius: 12px; background: #fffdf8; }
.nm-dates-hub .nm-dates-search-field:focus-within { outline: 3px solid #a3b89380; outline-offset: 2px; border-color: #42604b; }
.nm-dates-hub .nm-dates-search input { width: 100%; min-width: 0; border: 0; border-radius: 0; background: transparent; padding: 10px 0; outline: none; box-shadow: none; font: inherit; font-size: 16px; color: #203a2e; }
.nm-dates-hub .nm-dates-search input::placeholder { color: #657260; opacity: 1; }
.nm-dates-hub .nm-dates-search button { min-height: 44px; flex-shrink: 0; border: 0; border-radius: 8px; background: #e8eddf; color: #35583d; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.nm-dates-hub .nm-dates-search button:hover { background: #dce5d2; color: #203a2e; }
.nm-dates-hub .nm-dates-search > p { margin: 0; color: #52634f; font-size: 14px; line-height: 1.8; }
.nm-dates-hub .nm-dates-varieties { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.nm-dates-hub .nm-dates-variety { min-width: 0; display: flex; flex-direction: column; border: 1px solid #dce2d4; border-radius: 20px; background: #fffdf8; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.nm-dates-hub .nm-dates-variety:hover { border-color: #b59868; box-shadow: 0 8px 24px #263c2d0a; }
.nm-dates-hub .nm-dates-variety-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #ecebdf; overflow: hidden; }
.nm-dates-hub .nm-dates-variety-photo img { width: 100%; height: 100%; object-fit: cover; }
.nm-dates-hub .nm-dates-variety-photo > svg { width: 80px; height: 80px; }
.nm-dates-hub .nm-dates-variety-copy { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.nm-dates-hub .nm-dates-variety h3 { margin: 0; color: var(--dates-ink); font: 700 25px/1.5 'Vazirmatn', sans-serif; }
.nm-dates-hub .nm-dates-variety h3 a { color: inherit; text-decoration: none; }
.nm-dates-hub .nm-dates-variety h3 a:hover { color: #80633b; text-decoration: underline; text-underline-offset: 5px; }
.nm-dates-hub .nm-dates-variety dl { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.nm-dates-hub .nm-dates-variety dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-bottom: 7px; border-bottom: 1px solid #e8e9df; }
.nm-dates-hub .nm-dates-variety dt { color: #657260; font-size: 13px; line-height: 1.9; }
.nm-dates-hub .nm-dates-variety dd { margin: 0; font-size: 14px; line-height: 1.9; color: #354e3d; font-weight: 500; overflow-wrap: anywhere; }
.nm-dates-hub .nm-dates-variety p { margin: 0; color: #52634f; font-size: 15px; line-height: 1.95; }
.nm-dates-hub .nm-dates-variety-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; margin-top: auto; padding: 9px 14px; border: 1px solid #cad5c0; border-radius: 10px; background: #eff3e8; color: #304d36; font-size: 15px; font-weight: 600; }
.nm-dates-hub .nm-dates-variety-link:hover { border-color: #35583d; background: #35583d; color: #fffdf6; text-decoration: none; }
.nm-dates-hub .nm-dates-empty { padding: 36px 24px; text-align: center; border: 1px dashed #bdc9b2; border-radius: 20px; background: #f2f3e9; }
.nm-dates-hub .nm-dates-empty h3 { font-size: 20px; margin: 0 0 8px; color: #304d36; }
.nm-dates-hub .nm-dates-empty p { color: #52634f; line-height: 1.9; margin: 0 0 20px; }
.nm-dates-hub .nm-dates-comparison { padding-top: 30px; border-top: 1px solid var(--dates-line); }
.nm-dates-hub .nm-dates-scroll-hint { color: #61705d; font-size: 13px; line-height: 1.8; max-width: 220px; }
.nm-dates-hub .doc-tablewrap { border-color: #d4ddca; border-radius: 18px; margin-bottom: 0; }
.nm-dates-hub .doc-table { min-width: 680px; font-size: 15px; }
.nm-dates-hub #compare-full .doc-table { min-width: 1000px; }
.nm-dates-hub .doc-table caption { padding: 14px 20px; font-size: 13px; letter-spacing: 0; color: #61705d; }
.nm-dates-hub .doc-table :is(th, td) { padding: 14px 20px; border-color: #e0e5d7; }
.nm-dates-hub .doc-table thead th { background: #e8eddf; color: #304d36; font-size: 14px; }
.nm-dates-hub .doc-table tbody th { position: sticky; inset-inline-start: 0; background: #fffdf8; z-index: 1; min-width: 120px; border-inline-end: 1px solid #e0e5d7; }
.nm-dates-hub .doc-table tbody tr:nth-child(even) :is(th, td) { background: #f5f6ed; }
.nm-dates-hub .doc-table tbody tr:hover :is(th, td) { background: #eaf0e1; }
.nm-dates-hub .nm-dates-rating { display: inline-flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.nm-dates-hub .nm-dates-rating > span { display: flex; gap: 5px; }
.nm-dates-hub .nm-dates-rating i { width: 8px; height: 8px; border: 1px solid #acb99f; border-radius: 50%; background: transparent; }
.nm-dates-hub .nm-dates-rating .is-filled { background: #947442; border-color: #947442; }
.nm-dates-hub .nm-dates-rating small { color: #61705d; font-size: 11px; line-height: 1.7; }
.nm-dates-hub .nm-dates-notes .doc-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.nm-dates-hub #finder .doc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nm-dates-hub .nm-dates-notes .doc-card { padding: 24px; gap: 14px; border-color: #dce2d4; border-radius: 18px; }
.nm-dates-hub .nm-dates-note-title { display: flex; align-items: center; gap: 12px; }
.nm-dates-hub .nm-dates-note-title h3 { font-size: 18px; line-height: 1.8; color: #304d36; }
.nm-dates-hub .nm-dates-notes .doc-note-meta { padding: 9px 12px; border-radius: 10px; background: #eef1e6; font-size: 13px; color: #4d6349; line-height: 1.9; }
.nm-dates-hub .nm-dates-notes .doc-card p { font-size: 15px; line-height: 2; color: #52634f; }
.nm-dates-hub #stages .doc-card { border-top: 3px solid #b59868; }
.nm-dates-hub #finder { padding: 32px; background: #eff2e7; border: 1px solid #dce2d4; border-radius: 24px; }
.nm-dates-hub #finder .doc-card { background: #fffdf8; }
.nm-dates-hub .doc-faq { gap: 12px; max-width: 960px; }
.nm-dates-hub .doc-faq details { border-color: #dce2d4; border-radius: 14px; padding: 0; background: #fffdf8; }
.nm-dates-hub .doc-faq summary { min-height: 64px; padding: 18px 22px; color: #304d36; font-size: 17px; line-height: 1.9; border-radius: 14px; }
.nm-dates-hub .doc-faq summary:hover { background: #eff2e7; }
.nm-dates-hub .doc-faq details > div { padding: 0 22px 22px; margin: 0; font-size: 16px; color: #52634f; }
.nm-dates-hub .doc-cta { padding: 30px; border-radius: 22px; background: #304e38; border: 1px solid #304e38; }
.nm-dates-hub .doc-cta h2 { color: #fffdf6; font: 700 30px/1.6 'Vazirmatn', sans-serif; }
.nm-dates-hub .doc-cta .doc-btn-primary { background: #f5ecd9; color: #304d36; border-color: #f5ecd9; }
.nm-dates-hub .doc-cta .doc-btn-primary:hover { background: #e8d7b8; border-color: #e8d7b8; color: #203a2e; }
.nm-dates-hub .doc-cta .doc-btn-ghost { color: #fffdf6; border-color: #aab99e; }
.nm-dates-hub .doc-cta .doc-btn-ghost:hover { background: #436348; border-color: #d1dcc6; color: #fffdf6; }
.nm-dates-hub :is(a, button, summary, .doc-tablewrap):focus-visible { outline: 3px solid #9aaa7c; outline-offset: 4px; }
@media (max-width: 960px) { .nm-dates-hub { --dates-header-height: 73px; } }
@media (max-width: 1199px) {
    .nm-dates-hub .nm-dates-varieties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nm-dates-hub .nm-dates-notes .doc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nm-dates-hub .nm-dates-hero-grid { gap: 36px; }
}
@media (max-width: 800px) {
    .nm-dates-hub .container { padding-inline: 24px; }
    .nm-dates-hub .nm-dates-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 24px 30px; }
    .nm-dates-hub .nm-dates-hero-copy > p { max-width: 100%; font-size: 18px; }
    .nm-dates-hub .nm-dates-hero-photo { height: 300px; border-top-left-radius: 80px; }
    .nm-dates-hub .nm-dates-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
    .nm-dates-hub .nm-dates-facts > div:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
    .nm-dates-hub .nm-dates-facts > div { padding-inline: 20px; }
    .nm-dates-hub #intro { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .nm-dates-hub .nm-dates-search { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 18px; }
    .nm-dates-hub .nm-dates-search > label { grid-column: 1 / -1; }
    .nm-dates-hub #finder .doc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .nm-dates-hub { --dates-jump-height: 65px; }
    .nm-dates-hub .container { padding-inline: 20px; }
    .nm-dates-hub .nm-dates-hero h1 { font-size: 34px; margin-block: 12px; }
    .nm-dates-hub .nm-dates-hero-copy > p { font-size: 17px; }
    .nm-dates-hub .nm-dates-eyebrow { font-size: 13px; }
    .nm-dates-hub .nm-dates-hero-photo { height: 250px; border-top-left-radius: 66px; }
    .nm-dates-hub .nm-dates-hero-photo figcaption { bottom: 14px; right: 14px; left: 14px; max-width: calc(100% - 28px); font-size: 13px; padding: 8px 12px; }
    .nm-dates-hub .nm-dates-actions { gap: 10px; margin-top: 20px; }
    .nm-dates-hub .nm-dates-actions .doc-btn { flex: 1 1 auto; padding-inline: 12px; font-size: 15px; }
    .nm-dates-hub .nm-dates-facts { padding-block: 20px; gap: 20px 0; }
    .nm-dates-hub .nm-dates-facts dt { font-size: 12px; }
    .nm-dates-hub .nm-dates-facts dd { font-size: 14px; }
    .nm-dates-hub .nm-dates-jump { gap: 4px; padding-block: 10px; }
    .nm-dates-hub .nm-dates-jump > span { display: none; }
    .nm-dates-hub .nm-dates-content { padding-top: 30px; }
    .nm-dates-hub .doc-section { margin-bottom: 44px; }
    .nm-dates-hub .nm-dates-section-head { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 16px; }
    .nm-dates-hub .nm-dates-search { display: flex; flex-direction: column; align-items: stretch; padding: 16px; gap: 10px; }
    .nm-dates-hub .nm-dates-search > p { font-size: 13px; }
    .nm-dates-hub .nm-dates-search-field { gap: 8px; padding-inline-start: 10px; }
    .nm-dates-hub .nm-dates-search button { padding-inline: 8px; font-size: 12px; }
    .nm-dates-hub .nm-dates-varieties { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .nm-dates-hub .nm-dates-variety-photo { aspect-ratio: 16 / 10; }
    .nm-dates-hub .nm-dates-variety-copy { gap: 16px; }
    .nm-dates-hub .nm-dates-variety h3 { font-size: 28px; }
    .nm-dates-hub .nm-dates-variety dd { font-size: 15px; }
    .nm-dates-hub .nm-dates-variety p { font-size: 16px; }
    .nm-dates-hub .nm-dates-scroll-hint { max-width: none; font-size: 12px; }
    .nm-dates-hub .doc-table :is(th, td) { padding: 12px 16px; }
    .nm-dates-hub .doc-table tbody th { min-width: 108px; }
    .nm-dates-hub .nm-dates-notes .doc-cards, .nm-dates-hub #finder .doc-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .nm-dates-hub .nm-dates-notes .doc-card { padding: 20px; }
    .nm-dates-hub #finder { padding: 24px 18px; border-radius: 20px; }
    .nm-dates-hub .doc-faq summary { padding: 16px 18px; font-size: 16px; }
    .nm-dates-hub .doc-faq details > div { padding-inline: 18px; }
    .nm-dates-hub .doc-cta { padding: 24px 20px; }
    .nm-dates-hub .doc-cta-actions { margin: 8px 0 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .nm-dates-hub .nm-dates-variety { transition: none; } }
@media print {
    .nm-dates-hub .nm-dates-jump-wrap, .nm-dates-hub .nm-dates-search { display: none; }
    .nm-dates-hub .nm-dates-variety[hidden] { display: flex !important; }
    .nm-dates-hub .doc-tablewrap { overflow: visible; }
    .nm-dates-hub .doc-table, .nm-dates-hub #compare-full .doc-table { min-width: 0; }
}

/* Keep the real variety photos; bring the fruit closer than the packaging. */
.nm-dates-hub .nm-dates-varieties { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.nm-dates-hub .nm-dates-variety-photo { aspect-ratio:4 / 3; position:relative; background:#f5f3ec; }
.nm-dates-hub .nm-dates-variety-photo img { display:block; object-fit:cover; transform:scale(1.85); transform-origin:50% 96%; }
.nm-dates-hub [data-date-variety='medjool'] .nm-dates-variety-photo img { transform:scale(1.24); transform-origin:50% 73%; }
.nm-dates-hub [data-date-variety='piarom'] .nm-dates-variety-photo img { transform:scale(1.16); transform-origin:50% 60%; }
.nm-dates-hub .nm-dates-variety-photo:focus-visible { outline:3px solid #a3834b; outline-offset:-5px; }
@media(max-width:960px) { .nm-dates-hub .nm-dates-varieties { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; } }
@media(max-width:560px) { .nm-dates-hub .nm-dates-varieties { grid-template-columns:minmax(0,1fr); } }
