:root{--paper:#f8f6ef;--ink:#243b35;--muted:#64716a;--line:#d9ded2;--sage:#e6ebdf;--accent:#bd7255}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,sans-serif;line-height:1.55}header{display:flex;align-items:center;gap:30px;padding:25px 5%;border-bottom:1px solid var(--line)}.brand{text-decoration:none;color:var(--ink);font-family:Georgia,serif;font-size:27px;font-weight:bold;letter-spacing:-1px}.brand span{font-weight:normal}.brand .dot{color:var(--accent)}nav{display:flex;gap:10px;margin-left:auto}.pill,.badge{border:1px solid var(--line);border-radius:30px;padding:5px 12px;font-size:12px}.pill{color:var(--muted)}main{max-width:1250px;margin:auto;padding:0 40px}.intro{padding:55px 0 35px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--muted)}h1{font:normal clamp(42px,6vw,70px)/1.06 Georgia,serif;letter-spacing:-2px;margin:20px 0}h1 em{color:#71836a;font-weight:normal}.intro>p:last-child{color:var(--muted)}h2{font:normal 28px Georgia,serif}h3{font:normal 23px Georgia,serif}button,input,select{font:inherit}button{cursor:pointer;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:10px 16px}button:hover,nav .active{background:var(--sage)}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button.primary{background:var(--ink);color:white;border-color:var(--ink)}input,select{width:100%;padding:11px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink)}label{font-size:12px;font-weight:600;display:flex;flex-direction:column;gap:6px}.filters{display:grid;grid-template-columns:2fr 1.3fr 1.3fr .7fr auto;gap:15px;align-items:end;background:#fffdf7;border:1px solid var(--line);padding:22px;border-radius:14px}.filters details{grid-column:1/-1}summary{cursor:pointer;font-size:13px;padding:8px 0}.refine{display:grid;grid-template-columns:repeat(5,1fr);gap:15px;margin-top:12px}.check{flex-direction:row;align-items:center;font-weight:normal;font-size:12px}.check input{width:auto}.refine .check{grid-column:1/-1}.results-heading{display:flex;justify-content:space-between;align-items:center;margin-top:24px}.hint,#status,small{font-size:13px;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:white;border:1px solid var(--line);border-radius:13px;padding:23px;display:flex;flex-direction:column;gap:10px}.card h3{margin:2px 0;font-size:32px}.card .nameButton{border:0;padding:0;font:inherit;text-align:left}.card p{margin:0}.card .actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.card .actions button{font-size:12px;padding:7px 10px}.saved{background:var(--sage)}.card .stat{color:var(--muted);font-size:14px}.card .quality{font-size:11px;color:#895e44}.note{margin:65px 0 20px;border-top:1px solid var(--line);padding-top:22px;max-width:850px}.note p{font-size:14px;color:var(--muted)}footer{padding:25px 5%;color:var(--muted);font-size:12px}a{color:inherit}#more{margin:22px 0}.surname{max-width:340px;margin:20px 0}#comparison{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}td,th{text-align:left;border-bottom:1px solid var(--line);padding:12px;vertical-align:top}dialog{border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink);width:min(880px,94vw);max-height:90vh;padding:30px}dialog::backdrop{background:#17352e80}#closeDetail{float:right;font-size:24px;padding:0 12px}#detailContent h2{font-size:42px}.chart{width:100%;height:180px;display:block;background:white;border-radius:8px}.chart circle{fill:#526e59}.chart text{font:11px system-ui;fill:#64716a}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:8px;padding:10px 20px;display:none;z-index:5}#toast button{color:white;margin-left:15px}.empty{padding:30px;border:1px dashed var(--line);grid-column:1/-1}.fact{padding:10px 0;border-bottom:1px solid var(--line)}[hidden]{display:none!important}@media(max-width:900px){.filters{grid-template-columns:1fr 1fr}.filters .search{grid-column:1/-1}.grid{grid-template-columns:repeat(2,1fr)}.refine{grid-template-columns:repeat(2,1fr)}header{gap:10px;flex-wrap:wrap}.pill{display:none}nav button{padding:8px}.brand{font-size:22px}main{padding:0 20px}}@media(max-width:560px){.grid{grid-template-columns:1fr}.intro{padding-top:32px}nav{margin-left:0;width:100%}.filters{padding:15px}.results-heading{align-items:start;gap:12px}.card{padding:20px}dialog{padding:20px}}







#accountControls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}#accountControls:empty{display:none}







/* The original stork motif, refreshed as a quiet accent. */



.intro{display:flex;align-items:center;gap:30px}.intro-copy{flex:1;min-width:0}.intro-copy>p:last-child{color:var(--muted)}.heritage-stork{width:36%;max-width:380px;height:auto;mix-blend-mode:multiply}.heritage{max-width:900px;margin-top:18px}.heritage img{display:block;width:100%;height:auto;border-radius:8px}.heritage p{max-width:600px}@media(max-width:700px){.intro{position:relative;display:block}.intro-copy{position:relative;z-index:1}.heritage-stork{position:absolute;width:145px;right:0;top:8px;opacity:.32}.intro .eyebrow{max-width:210px}}







.simple-search{grid-template-columns:minmax(0,1fr) auto}.simple-search .refine{grid-template-columns:repeat(3,minmax(0,1fr))}.search-summary{display:flex;align-items:center;gap:10px;margin-top:12px}.search-summary p{flex:1;margin:0}.search-summary button{padding:5px 10px;font-size:13px}@media(max-width:560px){.simple-search{grid-template-columns:1fr}.simple-search .refine{grid-template-columns:1fr}.search-summary{flex-wrap:wrap}.search-summary p{flex-basis:100%}}







.preferences-shortcut{grid-column:1/-1;justify-self:start;font-size:13px;padding:5px 0;border:0;text-decoration:underline}#closeSettings{float:right}#discoverySettings{max-width:620px}#preferenceStatus{font-size:13px}







.source-notes{margin-top:22px;border-top:1px solid var(--line);padding-top:6px}.source-notes>summary{text-decoration:underline;color:var(--muted)}.source-group{padding:12px 0}.source-group p{margin:6px 0}







.trend-summary{margin-top:24px;padding:16px;background:var(--sage);border-radius:10px}.trend-summary h3{margin:0 0 8px}.trend-summary p{margin:6px 0}.related-link{padding:3px 8px;text-decoration:underline}







.simple-search{grid-template-columns:minmax(200px,2fr) minmax(150px,1fr) minmax(150px,1fr) auto}.preset-hint{grid-column:1/-1;margin:0}@media(max-width:1000px){.simple-search{grid-template-columns:1fr 1fr}.simple-search .search{grid-column:1/-1}}@media(max-width:560px){.simple-search{grid-template-columns:1fr}}







/* Brief country guidance when Region has no country-specific choices yet. */



#country.country-attention{outline:2px solid #b43737;outline-offset:3px}



.region-country-hint{color:#a02c2c;margin:10px 0}.region-country-hint:empty{display:none}







/* Name pages begin with the same three essentials; deeper context stays available. */



.name-essentials{margin-top:22px}.essential-section{padding:12px 0;border-bottom:1px solid var(--line)}



.essential-section>.fact{border:0;padding:4px 0}.essential-section .hint{margin:7px 0;line-height:1.55}



.essential-section>p{margin:4px 0}.name-context{margin-top:16px;padding:4px 0 12px;border-bottom:1px solid var(--line)}



.name-context>summary{font-weight:600;font-size:14px}.context-explanation{padding:10px 0}.context-explanation p{line-height:1.55}



#detailContent .fact{overflow-wrap:anywhere}







/* Keep the comparison action visible while parents select shortlist cards. */



.shortlist-navigation,.compare-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}



.compare-guide{position:sticky;top:8px;z-index:2;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin:16px 0;box-shadow:0 3px 10px #17352e0d}



.compare-guide>p{margin:0 0 10px}.compare-controls>span{flex:1;font-size:13px;min-width:145px}



button:disabled{cursor:default;opacity:.5}#comparisonPanel{scroll-margin-top:125px;margin-top:24px}#comparisonTitle:focus{outline:2px solid var(--accent);outline-offset:5px}



@media(max-width:560px){.shortlist-navigation{justify-content:flex-end}.compare-guide{padding:10px}.compare-controls{gap:8px}.compare-controls>span{flex-basis:100%}.compare-controls button{padding:8px 10px}#comparisonPanel{scroll-margin-top:175px}}







/* A compact discovery studio, with warm paper, teal and coral accents. */



:root{--paper:#fff9f2;--ink:#173d43;--muted:#52676c;--line:#d3e3e1;--sage:#e0f3ef;--accent:#c24b39;--teal:#087f82}



header{padding:12px 5%;gap:20px;background:#fffdf9;border-bottom:2px solid #cdebe5}



.brand .dot{color:var(--accent)}nav .active{background:var(--sage);border-color:#96cbc1;color:#155a57}



.intro{padding:22px 0 20px;gap:24px;min-height:0}



.intro .eyebrow{color:#a53c2d;margin:0 0 8px;font-weight:650;letter-spacing:1.5px}



h1{font-size:clamp(32px,3.6vw,44px);letter-spacing:-1px;line-height:1.1;margin:8px 0 10px}



h1 em{color:var(--teal)}.intro-copy>p:last-child{margin:0;font-size:14px;max-width:480px}



.heritage-stork{width:190px;max-width:22%;max-height:135px;object-fit:contain}



button{padding:8px 12px;min-height:36px;border-radius:9px}



button.primary{background:#08777a;border-color:#08777a;box-shadow:0 2px 0 #075c5e}



button.primary:hover{background:#066366;border-color:#066366}



input,select{padding:9px 10px;min-height:42px}.filters{padding:16px;gap:10px;background:#fff;box-shadow:0 4px 18px #173d4306;border-top:3px solid #73c6b8}



.filters summary{padding:4px 0}.preferences-shortcut{padding:2px 0;min-height:28px}



.search-summary{margin-top:8px}.results-heading{margin-top:16px}.results-heading h2{font-size:26px;margin:10px 0}



.grid{gap:12px}.card{padding:16px;gap:7px;border-radius:12px;box-shadow:0 3px 12px #173d4306;border-top:3px solid #9bd9cc}



.card h3{font-size:28px;line-height:1.2;overflow-wrap:anywhere}.card .nameButton{min-height:34px;border-radius:3px;color:#15545b}



.card .stat{font-size:13px}.card .actions{gap:5px;margin-top:auto;padding-top:5px}.card .actions button{font-size:12px;padding:5px 8px;min-height:34px}



.card .actions [data-love-id]{color:#9c352a;border-color:#edbeb5;background:#fff3ee}



.card .actions [data-love-id].saved{color:#fff;background:#b74334;border-color:#b74334}



.card .actions [data-maybe-id]{color:#155a57;border-color:#a9d6cc;background:#f0faf6}



.card .actions [data-maybe-id].saved{background:#d1eee6;border-color:#7cbaab;font-weight:600}



.badge{background:#ecf8f4;color:#265d54;border-color:#c9e8dc;padding:3px 9px}



.card .quality{color:#87502d}.compare-guide{background:#f0faf6;border-color:#9fcfc3}



.card .check input,.check input{accent-color:#08777a}.chart circle{fill:#087f82}



.note{margin-top:38px}footer{background:#f0f7f3;border-top:1px solid var(--line)}



@media(min-width:1100px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}



@media(max-width:900px){header{gap:8px;padding:10px 20px}.intro{gap:16px}.heritage-stork{width:160px;max-width:25%}}



@media(max-width:700px){.intro{display:flex;position:static}.intro-copy{position:static}.heritage-stork{position:static;opacity:1;width:100px;max-width:24%;max-height:100px}.intro .eyebrow{max-width:none;font-size:10px}}



@media(max-width:560px){header{padding:10px 16px}.intro{padding:18px 0;gap:10px}h1{font-size:32px}.intro-copy>p:last-child{font-size:13px}.heritage-stork{width:75px;max-width:22%}main{padding:0 16px}.filters{padding:12px;gap:8px}.filters label{gap:4px}.filters button,.filters summary,.preferences-shortcut{min-height:44px}.filters summary{display:list-item;padding:12px 0}.card{padding:14px}.card .actions button{min-height:44px;padding:6px 10px}.card .nameButton{min-height:44px}.grid{gap:10px}nav button{min-height:40px}.results-heading h2{font-size:24px}.compare-controls button{min-height:44px}}



@media(min-width:901px){.intro{padding:18px 0}.intro h1{font-size:38px}.intro h1 br{display:none}.intro h1 em::before{content:' '}.heritage-stork{width:160px;max-height:108px}.card .actions button{padding:5px 6px;font-size:11px;min-height:32px}.card h3{font-size:26px}}



@media(max-width:560px){.simple-search{grid-template-columns:repeat(2,minmax(0,1fr))}.simple-search>button[type=submit]{grid-column:1/-1}.simple-search .preferences-shortcut{grid-column:1/-1}header{column-gap:8px;row-gap:6px}header button{font-size:13px;padding:6px 10px}#accountControls{font-size:12px}.intro{padding:14px 0}}







/* Editorial refinement: a small illustrated banner and a clearer name-first card. */



body{font-family:"Segoe UI",system-ui,sans-serif}



.brand,h1,h2,h3{font-family:"Palatino Linotype","Book Antiqua",Georgia,serif}



.brand{letter-spacing:-.8px}h1{font-weight:normal}h2,h3{letter-spacing:-.5px}



.intro{position:relative;isolation:isolate;margin:14px 0;padding:16px 22px;border:1px solid #f2dacf;border-radius:16px;background:radial-gradient(ellipse at 95% 15%,#f6d9c766,transparent 48%),linear-gradient(115deg,#fff0e6,#fff9f2 65%,#eef8f2);overflow:hidden}



.intro::before{content:'';position:absolute;z-index:-1;right:95px;top:-34px;width:150px;height:150px;border:1px solid #e7c1ac66;border-radius:50%}



.intro::after{content:'';position:absolute;z-index:-1;right:15px;bottom:-40px;width:120px;height:120px;border:1px solid #7dbbac44;border-radius:50%}



.intro .eyebrow{letter-spacing:1.8px;font-size:10px}.intro-copy>p:last-child{max-width:520px}.heritage-stork{flex-shrink:0;filter:saturate(1.06)}



.card{border-top:1px solid var(--line);padding:15px 16px;gap:8px;box-shadow:0 2px 8px #173d4305}



.card h3{margin:0;font-size:29px;line-height:1.16}.card .nameButton{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;font:inherit;letter-spacing:-.6px;min-height:36px;color:#173d43}



.name-arrow{font:16px "Segoe UI",sans-serif;color:#397878;flex-shrink:0}.card .nameButton:hover{background:transparent;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}



.card-usage{border-top:1px solid #e5efea;padding-top:7px;display:flex;flex-direction:column;gap:3px}.card-usage .hint{font-size:12px;line-height:1.5}.card-usage .stat{font-size:12px;font-variant-numeric:tabular-nums}



.card .actions{padding-top:2px}.card .actions [data-love-id]{font-weight:650}.card .actions button:hover{border-color:#72a99c;box-shadow:0 1px 3px #173d4314}



@media(min-width:901px){.intro{padding:14px 22px}.intro h1{font-size:37px}.heritage-stork{max-height:104px}.card h3{font-size:29px}}



@media(max-width:700px){.intro{position:relative}.intro-copy{min-width:0}.intro h1{font-size:30px}.intro .eyebrow{font-size:9px;letter-spacing:1.1px}.heritage-stork{width:75px;max-width:23%}}



@media(max-width:560px){.intro{padding:14px;margin:10px 0 14px;gap:8px;border-radius:12px}.intro-copy>p:last-child{font-size:12px}.heritage-stork{width:62px;max-width:21%}.intro::before{right:30px}.card .nameButton{min-height:44px}.card h3{font-size:29px}.card-usage .hint,.card-usage .stat{font-size:13px}}







.account-notice{padding:12px 16px;margin:12px 0;border:1px solid #edbeb5;border-radius:10px;background:#fff3ee;font-size:14px}.account-notice a{font-weight:600}.account-notice button{margin-left:10px}.sync-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0}.sync-tools button,.sync-tools a{font-size:13px}.sync-tools a{padding:8px 0}







.name-sharing{margin:12px 0 20px;border:1px solid #a9cec3;border-radius:12px;background:#f3faf7;padding:0 14px}.name-sharing>summary{cursor:pointer;font-weight:650;padding:12px 0;min-height:44px}.share-panel{padding-bottom:10px}.share-actions{display:flex;flex-wrap:wrap;gap:8px}.share-actions button,.share-actions a{min-height:44px}.share-actions a{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #a9cec3;border-radius:9px;text-decoration:none}.share-preview img{display:block;width:100%;max-width:300px;height:auto;border-radius:12px;margin:14px auto}.share-panel textarea{width:100%;min-height:90px}.share-actions :focus-visible,.name-sharing summary:focus-visible{outline:3px solid #08777a;outline-offset:3px}







/* A clear action, with the disclosure panel kept secondary. */



.name-sharing{border:0;background:transparent;padding:0;margin:12px 0 20px}



.name-sharing>summary{display:flex;align-items:center;gap:10px;width:max-content;max-width:100%;padding:11px 17px;min-height:46px;border:1px solid #08777a;border-radius:10px;background:#08777a;color:#fff;font-size:16px;font-weight:650;line-height:1.4;box-shadow:0 2px 0 #075c5e;list-style:none}



.name-sharing>summary::-webkit-details-marker{display:none}



.name-sharing>summary:hover{background:#066366;border-color:#066366}



.name-sharing>summary svg{width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}



.name-sharing[open]>summary{margin-bottom:12px}



.name-sharing>.share-panel{padding:12px 14px;border:1px solid #a9cec3;border-radius:12px;background:#f3faf7}



/* A watercolor sky with the stork flying beyond the banner border. */



.intro{display:block;position:relative;isolation:isolate;overflow:visible;min-height:156px;margin:34px 0 32px;padding:20px 24px;border:1px solid #d7e2d7;background:#fcf8ef url('/hero-clouds-v2.webp') center 58%/cover no-repeat;box-shadow:0 2px 10px #173d4305}



.intro::before,.intro::after{content:none}



.intro-copy{position:relative;z-index:1;max-width:calc(100% - 300px)}



.intro h1{font-size:37px;line-height:1.14}



.intro .eyebrow{color:#8d4a37}



.intro-copy>p:last-child{font-size:14px;line-height:1.5}



.intro .heritage-stork{position:absolute;right:-8px;top:50%;transform:translateY(-50%) rotate(-3deg);width:340px;max-width:none;max-height:none;height:auto;object-fit:contain;opacity:1;mix-blend-mode:normal;pointer-events:none;z-index:2;filter:drop-shadow(0 9px 8px #24484322) drop-shadow(0 2px 2px #24484313)}



@media(min-width:1100px){.intro .heritage-stork{width:365px;right:-14px}.intro-copy{max-width:calc(100% - 325px)}}



@media(max-width:900px){.intro{min-height:166px;margin-top:30px}.intro-copy{max-width:calc(100% - 220px)}.intro .heritage-stork{width:270px;right:-12px}.intro h1{font-size:32px}.intro-copy>p:last-child{max-width:340px}}



@media(max-width:700px){.intro{min-height:160px;padding:18px;margin:28px 0 28px}.intro-copy{max-width:calc(100% - 170px)}.intro .heritage-stork{width:220px;right:-10px}.intro h1{font-size:30px}.intro .eyebrow{max-width:220px;font-size:9px}.intro-copy>p:last-child{font-size:13px}}



@media(max-width:480px){.intro{padding:16px;min-height:190px;margin-top:26px;margin-bottom:24px}.intro-copy{max-width:calc(100% - 105px)}.intro .heritage-stork{width:160px;right:-3px;top:-18px;transform:rotate(-6deg)}.intro h1{font-size:29px;letter-spacing:-.8px}.intro .eyebrow{max-width:190px;font-size:9px;line-height:1.5}.intro-copy>p:last-child{font-size:13px}.intro h1 br{display:none}.intro h1 em::before{content:' '}}

.baby-card-settings,.passed-settings{border-top:1px solid var(--line);margin-top:24px;padding-top:8px}.baby-card-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 16px}.baby-card-settings button{min-height:44px;margin-bottom:6px}@media(max-width:480px){.baby-card-fields{grid-template-columns:1fr}}
/* Give the free personalized print feature its own clear path into Settings. */
.baby-card-callout{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 14px;padding:14px 16px;border:1px solid #e4cfb9;border-left:4px solid #08777a;border-radius:10px;background:#fff5e9;color:#173d43}
.baby-card-callout-copy{flex:1 1 240px;min-width:0}
.baby-card-callout-copy>strong{display:block;font-family:"Palatino Linotype","Book Antiqua",Georgia,serif;font-size:21px;line-height:1.25}
.baby-card-callout-copy>p{margin:6px 0 0;font-size:14px;line-height:1.5}
.baby-card-callout-action{flex:0 0 auto;min-height:44px;padding:10px 14px;font-size:14px;font-weight:650}
.baby-card-callout-action:focus-visible{outline:3px solid #08777a;outline-offset:3px}
@media(max-width:480px){.baby-card-callout{padding:12px;gap:10px}.baby-card-callout-action{width:100%}}
/* Gentle invitations: browsing and browser-only saves remain available. */
.guest-login-hint{grid-column:1/-1;margin:6px 0 12px;font-size:13px;line-height:1.5;color:var(--muted)}
.guest-login-hint a{color:#08777a;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.guest-login-hint a:focus-visible{outline:3px solid #08777a;outline-offset:3px;border-radius:2px}
#guestPreferencesLoginHint{margin-top:-6px;margin-bottom:0}

.preferences-shortcut[aria-pressed=true]{color:#08777a;font-weight:650}

/* Approved UX pass: clearer choices and less distance to the first name. */
.detail-choices{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}
.detail-choices button{min-height:44px;padding:9px 18px;font-size:15px}
.detail-choices [data-love-id]{color:#9c352a;border-color:#edbeb5;background:#fff3ee;font-weight:650}
.detail-choices [data-love-id].saved{color:#fff;background:#b74334;border-color:#b74334}
.detail-choices [data-maybe-id]{color:#155a57;border-color:#a9d6cc;background:#f0faf6}
.detail-choices [data-maybe-id].saved{background:#d1eee6;border-color:#7cbaab;font-weight:650}
.search-mode-notice{padding:9px 12px;background:#eaf6f2;border:1px solid #a9d6cc;border-radius:8px;margin:8px 0}
.results-notes{margin:0 0 12px}.results-notes>summary{width:fit-content;color:var(--muted);font-size:13px;min-height:32px;padding:4px 0;text-decoration:underline;text-underline-offset:3px}
.results-notes p{margin:4px 0 12px}
@media(max-width:560px){
 header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px 8px;padding:8px 16px}
 header .brand{grid-column:1;font-size:20px;white-space:nowrap}
 header #accountControls{grid-column:2;grid-row:1;justify-content:flex-end;gap:4px;max-width:115px}
 header #accountControls>.hint{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 header #openSettings{grid-column:3;grid-row:1}
 header nav{grid-column:1/-1;grid-row:2;width:auto;margin:0;gap:8px}
 .intro{min-height:110px;margin:16px 0 18px;padding:12px 14px}
 .intro-copy{max-width:calc(100% - 128px)}
 .intro .eyebrow{max-width:none;font-size:8px;letter-spacing:.7px;line-height:1.4;margin:0 0 5px}
 .intro h1{font-size:24px;line-height:1.12;margin:5px 0 0}.intro h1 br{display:block}.intro h1 em::before{content:none}
 .intro-copy>p:last-child{display:none}
 .intro .heritage-stork{width:135px;right:-3px;top:50%;transform:translateY(-50%) rotate(-5deg)}
 .view-shortlist .intro{min-height:94px;margin-bottom:14px}.view-shortlist .intro h1{font-size:23px}
 .filters{gap:8px}.filters input:not([type=checkbox]),.filters select{font-size:16px}
 .simple-search>#advancedSearch:not([open]){grid-column:1;min-width:0}
 .simple-search>.preferences-shortcut{grid-column:2;justify-self:end;font-size:12px;text-align:right;max-width:100%}
 .filters summary{font-size:13px;padding:10px 0;min-height:44px}
 #guestPreferencesLoginHint{margin:10px 0 4px}
 .search-summary{flex-wrap:nowrap;align-items:center}.search-summary p{flex:1 1 auto;min-width:0}
 .search-summary button{flex:0 0 auto}
 .results-heading{margin-top:10px;gap:10px}.results-heading h2{font-size:23px;margin:8px 0}
 .results-heading #status{font-size:12px;text-align:right;max-width:45%}
 .results-notes{margin-bottom:8px}
}
@media(max-width:360px){header{column-gap:5px}header .brand{font-size:18px}header #accountControls{font-size:11px;max-width:98px}header #openSettings{padding:6px 8px}.intro h1{font-size:22px}.intro .heritage-stork{width:105px}.intro-copy{max-width:calc(100% - 94px)}}

/* Compare the same published facts and source notes used on each name page. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#comparison:focus-visible{outline:3px solid var(--teal);outline-offset:4px;border-radius:4px}
.name-comparison{table-layout:fixed;font-size:14px;line-height:1.5}
.name-comparison th,.name-comparison td{padding:13px 12px;overflow-wrap:anywhere}
.name-comparison th:first-child{width:120px;position:sticky;left:0;background:var(--paper);z-index:1}
.name-comparison thead th{vertical-align:top;background:#eff8f4;border-bottom:2px solid #a9d6cc}
.name-comparison thead th:first-child{background:#eff8f4}
.comparison-name-link{display:block;font:normal 23px/1.2 "Palatino Linotype","Book Antiqua",Georgia,serif;text-decoration:underline;text-underline-offset:4px;border:0;border-radius:4px;min-height:44px;padding:5px 0;text-align:left}
.comparison-name-link:hover{background:transparent;color:var(--teal)}
.comparison-retry{font-size:13px;min-height:44px;margin-top:6px}
.comparison-name-facts{border:0;padding:0}.comparison-name-facts>.fact{padding:0 0 10px}.comparison-name-facts>.fact:last-child{padding-bottom:0}
.comparison-name-facts>.fact>strong{display:none}
.comparison-name-facts .hint{font-size:13px;line-height:1.5;margin:6px 0 0}
.comparison-sources>summary{min-height:44px;font-size:13px;font-weight:600;text-decoration:underline}
.comparison-sources .source-group{font-size:13px;line-height:1.5}.comparison-sources .hint{font-size:12px}
.comparison-scroll-hint{display:none}#comparisonStatus:empty{display:none}
@media(max-width:700px){.comparison-scroll-hint{display:block;margin:8px 0}.name-comparison th:first-child{width:112px}.name-comparison th,.name-comparison td{padding:10px}.name-comparison{font-size:14px}.comparison-name-link{font-size:22px}}

/* Short published summaries first; complete explanations stay with their sources. */
.name-comparison th,.name-comparison td{padding:10px 12px}
.name-comparison{line-height:1.45}
.comparison-summary{margin:0}.comparison-summary+.comparison-summary{margin-top:6px}
.comparison-explanations{padding:8px 0 12px;border-bottom:1px solid var(--line)}
.comparison-explanations h4{margin:4px 0 6px;font-size:14px}
.comparison-explanations .essential-section{padding:6px 0;border:0}
.comparison-explanations .fact{padding:0 0 8px;border:0}
.comparison-explanations .hint{margin:5px 0 0;font-size:13px;line-height:1.5}
@media(max-width:700px){.name-comparison th,.name-comparison td{padding:9px 10px}}

/* Keep each name above its column during ordinary page and sideways scrolling. */
.comparison-name-rail{position:fixed;z-index:3;overflow:hidden;background:#eff8f4;pointer-events:none;box-shadow:0 5px 12px #173d431a}
.comparison-name-rail .name-comparison{margin:0}
.comparison-name-rail th:first-child{background:#eff8f4}
.comparison-name-label{display:block;font:normal 23px/1.2 "Palatino Linotype","Book Antiqua",Georgia,serif;min-height:44px;padding:5px 0;text-align:left}
@media(max-width:700px){.comparison-name-label{font-size:22px}}
@media print{.comparison-name-rail{display:none!important}}

/* The same Love/Maybe choices are available alongside comparison facts. */
.comparison-choices{display:flex;gap:6px;flex-wrap:wrap}
.comparison-choices button{font-size:13px;min-height:44px;padding:7px 10px;background:white;white-space:nowrap}
.comparison-choices button:hover{background:var(--sage)}
.comparison-choices button[aria-pressed="true"]{background:#d7eee7;border-color:#7aafa2;font-weight:600}
.comparison-choices button[data-love-id][aria-pressed="true"]{background:#fff0e9;border-color:#dda997;color:#a24032}

/* Removing a comparison column leaves its saved Love/Maybe choice intact. */
.comparison-remove{display:block;font-size:12px;line-height:1.4;min-height:30px;margin-top:3px;padding:5px 0;border:0;border-radius:4px;background:transparent;color:var(--muted);text-align:left;text-decoration:underline;text-underline-offset:3px}
.comparison-remove:hover{background:transparent;color:var(--teal)}
@media(max-width:700px){.comparison-remove{min-height:44px}}

/* Approved Web UX refinements: preserve the current palette, cards and banner. */
.shortlist-tools{margin:10px 0}.shortlist-tools>summary{width:fit-content;min-height:44px;padding:10px 0;font-size:13px;text-decoration:underline;text-underline-offset:3px}
.shortlist-tools[open]{padding-bottom:10px}.shortlist-tools .surname{margin:12px 0}.shortlist-tool-actions{display:flex;gap:8px;flex-wrap:wrap}
.compare-guide:not(.has-selection) .compare-controls{display:none}.compare-guide.has-selection>p{display:none}.compare-guide>p{margin:0}
#comparisonPanel{scroll-margin-top:100px}
#discoverySettings{padding:0}.settings-toolbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;background:var(--paper);border-bottom:1px solid var(--line)}
.settings-toolbar h2{margin:0;font-size:27px}.settings-toolbar #closeSettings{float:none;min-width:44px;min-height:44px;padding:0 12px;font-size:24px}
.settings-body{padding:0 24px 24px}.settings-body input:not([type=checkbox]),.settings-body select{font-size:16px}.settings-body input[type=checkbox]{min-width:18px;min-height:18px}
#babyCardTitle{scroll-margin-top:90px}.baby-card-actions{display:flex;gap:8px;flex-wrap:wrap}.baby-card-actions button{margin:0;min-height:44px}
#closeDetail{position:sticky;top:0;z-index:3;background:var(--paper);min-width:44px;min-height:44px;box-shadow:0 2px 6px #173d4315}
@media(max-width:560px){
 .view-shortlist .results-heading{margin-top:8px;align-items:center}.view-shortlist .results-heading h2{white-space:nowrap;font-size:23px}
 .shortlist-navigation button{min-height:44px;font-size:13px;padding:8px 10px}.view-shortlist #shortlistInfo{margin:8px 0;font-size:13px;line-height:1.5}
 .shortlist-tools{margin:0}.compare-guide{margin:8px 0 12px}.compare-guide:not(.has-selection){padding:8px 10px}
 .compare-controls button{font-size:13px;padding:8px}
 #comparisonPanel{scroll-margin-top:115px}.settings-toolbar{padding:10px 16px}.settings-toolbar h2{font-size:24px}.settings-body{padding:0 16px 20px}
}

/* Responsive review: long titles, account navigation and narrow search choices. */
#detailContent h2{overflow-wrap:anywhere;line-height:1.15}
.device-choices-settings{padding:14px;margin:16px 0;background:#eff8f4;border:1px solid var(--line);border-radius:10px}
.device-choices-settings h3{margin:0 0 8px;font-size:21px}
.device-choices-settings p{margin:0 0 12px}
.device-choices-settings button{max-width:100%;min-height:44px;text-align:left}
header nav{flex-shrink:0}header nav button{white-space:nowrap}
@media(min-width:561px) and (max-width:1100px){
 header{flex-wrap:wrap;column-gap:16px;row-gap:8px}
 header .brand{margin-right:auto}
 header #accountControls{max-width:40%;justify-content:flex-end}
 header #accountControls>.hint{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(min-width:561px) and (max-width:719px){
 header nav{order:1;width:100%;margin-left:0}
}
@media(max-width:560px){
 header{grid-template-columns:minmax(0,1fr) auto}
 header #accountControls{grid-column:2;grid-row:1}
 header nav{grid-column:1;grid-row:2;min-width:0}
 header #openSettings{grid-column:2;grid-row:2;justify-self:end}
 #detailContent h2{font-size:clamp(28px,8vw,42px)}
}
@media(max-width:420px){
 .simple-search>label{grid-column:1/-1;min-width:0}
}

/* Readable year labels stay outside the plot's responsive SVG coordinates. */
.history-chart{margin:0;background:#fff;border-radius:8px;padding:0 12px 8px}
.history-chart .chart{height:156px;border-radius:8px 8px 0 0}
.chart-years{display:flex;justify-content:space-between;gap:16px;font-size:14px;line-height:1.5;color:var(--muted);font-variant-numeric:tabular-nums}
.chart-years.single-year{justify-content:center}
/* Comfortable controls on phones/tablets and larger touch-capable screens. */
@media(max-width:1100px),(any-pointer:coarse){
 button{min-height:44px;min-width:44px}
 header nav button,header #openSettings{min-height:44px}
 #accountControls>a{display:inline-flex;align-items:center;min-height:44px}
 .card .nameButton{min-height:44px}
 .card .actions{gap:8px}
 .card .actions button{min-height:44px;min-width:44px;padding:8px 10px;font-size:13px}
 .card>.check{min-height:44px;gap:8px;width:fit-content}
 .card .check input{width:18px;height:18px;flex:none}
 .filters input:not([type=checkbox]),.filters select,.surname input{font-size:16px;min-height:44px}
 summary,.preferences-shortcut,.comparison-remove{min-height:44px}
 .filters .check{min-height:44px}
}

/* Keep keyboard destinations visible without changing card or banner styling. */
#resultsTitle,#shortlistTitle{scroll-margin-top:110px}
#resultsTitle:focus,#shortlistTitle:focus,.share-preview:focus{outline:3px solid var(--teal,#08777a);outline-offset:4px;border-radius:4px}
#toast{width:max-content;max-width:min(560px,calc(100vw - 24px));max-height:40vh;overflow:auto;overflow-wrap:anywhere;bottom:12px;padding:12px 16px}
#toast button{min-height:44px;padding:8px 12px;margin:8px 0 0 8px}
#toast button:focus-visible{outline:3px solid white;outline-offset:2px}
@media(max-width:560px){#resultsTitle,#shortlistTitle{scroll-margin-top:125px}#toast{max-height:35vh}}

.share-preview{scroll-margin-block:10px}

#more[aria-disabled="true"]{opacity:.5;cursor:progress}

/* Field boundaries remain distinguishable against the existing white and warm surfaces. */
:root{--field-border:#7b9291}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{border-color:var(--field-border)}


/* Keep private printing and public downloads distinct and immediately reachable on phones. */
.share-card-group{margin:0 0 16px;min-width:0}
.share-card-group>h3{margin:0 0 4px;font-size:20px;line-height:1.25}
.share-card-group>.hint{margin:0 0 8px;font-size:14px;line-height:1.45}
.share-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:400px}
.share-card-actions>button{min-width:0;min-height:44px;padding:10px 8px;font-size:14px;line-height:1.4}
.share-more-options{margin:0 0 14px}
.share-more-options>summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:14px;font-weight:650}
.share-more-options>.hint{font-size:14px;line-height:1.5}
.share-preview>.hint{font-size:14px;line-height:1.5}
.name-sharing .baby-card-callout-copy>strong{font-size:19px}


/* Full, clickable source notices beside both card previews. Exported cards retain them too. */
.card-source-notes{margin:10px 0 14px;min-width:0;font-size:14px;line-height:1.5}
.card-source-notes>summary,.card-source-entry summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:650}
.card-source-entry{padding:10px 0;border-top:1px solid var(--field-border,#8b9299)}
.card-source-entry h4{margin:0 0 6px;font-size:15px;line-height:1.45}
.card-source-entry p{margin:6px 0;overflow-wrap:anywhere}
.card-source-notes a{overflow-wrap:anywhere;text-underline-offset:3px}


/* Sharing stays visible; larger card tools remain a separate, explicit choice. */
:is(#detail,.name-page) .name-sharing{margin:0 0 18px}
:is(#detail,.name-page) .name-sharing>summary{width:100%;max-width:100%;min-height:44px;padding:10px 13px;font-size:16px;box-shadow:none;justify-content:flex-start}
:is(#detail,.name-page) .name-sharing[open]>summary{margin-bottom:0;border-radius:10px 10px 0 0}
:is(#detail,.name-page) .name-sharing>.share-panel{border-top:0;border-radius:0 0 10px 10px;padding:12px}
:is(#detail,.name-page) .share-more-options{margin:0}
:is(#detail,.name-page) .share-more-options>h3{margin:0 0 8px;font:650 15px/1.4 "Segoe UI",sans-serif}
:is(#detail,.name-page) .share-launch-notice{margin:8px 0 0;font-size:13px;line-height:1.45}
:is(#detail,.name-page) .share-social-actions{gap:8px;align-items:stretch}
:is(#detail,.name-page) .share-social-actions>button,:is(#detail,.name-page) .share-social-actions>a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:0;margin:0;padding:9px 12px;border:1px solid var(--field-border);border-radius:8px;background:var(--brand-surface);color:var(--brand-primary);font:600 14px/1.35 "Segoe UI",sans-serif;text-decoration:none}
:is(#detail,.name-page) .share-social-actions>button:not(:disabled):hover,:is(#detail,.name-page) .share-social-actions>a:hover{background:var(--brand-blue);border-color:var(--brand-primary)}
:is(#detail,.name-page) .share-social-actions>button:disabled{opacity:1;color:var(--muted);cursor:not-allowed;background:var(--brand-surface)}
:is(#detail,.name-page) .share-social-actions .share-icon{display:block;width:20px;height:20px;flex:none;color:var(--brand-primary);fill:currentColor}
:is(#detail,.name-page) .share-social-actions .share-social-copy{background:var(--brand-primary);border-color:var(--brand-primary);color:#fff}
:is(#detail,.name-page) .share-social-actions .share-social-copy .share-icon{color:inherit}
:is(#detail,.name-page) .share-social-actions .share-social-copy:hover{background:var(--brand-primary-hover);color:#fff}
:is(#detail,.name-page) .share-baby-card-tools{margin:12px 0 0;border-top:1px solid var(--field-border);padding-top:2px}
:is(#detail,.name-page) .share-baby-card-tools>summary{min-height:44px;padding:12px 0;font-size:14px;font-weight:650;cursor:pointer;color:var(--ink)}
:is(#detail,.name-page) .share-baby-card-tools[open]>summary{margin-bottom:8px}
:is(#detail,.name-page) .share-baby-card-tools>.share-card-group{margin-bottom:16px}
:is(#detail,.name-page) .share-baby-card-tools .share-card-group+.share-card-group{border-top:1px solid var(--line);padding-top:14px}
:is(#detail,.name-page) .share-panel>p[role=status]:empty{margin:0}
:is(#detail,.name-page) .share-panel .share-instagram-hint{font-size:13px;line-height:1.45;margin:8px 0 0}
@media(max-width:560px){
 :is(#detail,.name-page) .name-page-detail-link{font-size:15px;padding:10px 13px}
 :is(#detail,.name-page) .share-social-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 :is(#detail,.name-page) .share-social-actions>button,:is(#detail,.name-page) .share-social-actions>a{padding:9px 8px;font-size:13px;overflow-wrap:anywhere}
 :is(#detail,.name-page) .share-social-actions .share-social-copy{grid-column:1/-1}
 :is(#detail,.name-page) .share-baby-card-tools>summary{line-height:1.45}
}


/* Direct card actions: less padding, no extra disclosure and comfortable taps. */
:is(#detail,.name-page) .share-card-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--field-border)}
:is(#detail,.name-page) .share-card-choices>.share-card-group{margin:0;min-width:0}
:is(#detail,.name-page) .share-card-choices h3{font-size:17px;line-height:1.3;margin:0 0 4px}
:is(#detail,.name-page) .share-card-choices .hint{font-size:13px;line-height:1.4;margin:0 0 6px}
:is(#detail,.name-page) .share-card-choices .share-card-actions{gap:6px;max-width:none}
:is(#detail,.name-page) .share-card-actions>button{min-height:44px;padding:6px 8px;border:1px solid var(--brand-primary);background:var(--brand-surface);color:var(--brand-primary);font-size:14px;font-weight:600;line-height:1.3}
:is(#detail,.name-page) .share-card-actions>button:not(:disabled):hover{background:var(--brand-blue)}
:is(#detail,.name-page) .share-social-actions>button,:is(#detail,.name-page) .share-social-actions>a{padding:6px 10px;min-height:44px}
:is(#detail,.name-page) .share-panel .card-unavailable-notice{font-size:14px;line-height:1.45;margin:10px 0 0}
:is(#detail,.name-page) .share-baby-card-tools{margin-top:10px}
:is(#detail,.name-page) .share-baby-card-tools>summary{padding:9px 0;min-height:44px}
@media(max-width:650px){
 :is(#detail,.name-page) .share-card-choices{grid-template-columns:1fr;gap:10px}
 :is(#detail,.name-page) .share-card-choices>.share-card-group+.share-card-group{border-top:1px solid var(--line);padding-top:10px}
 :is(#detail,.name-page) .share-card-choices h3{font-size:16px}
}

/* Keep below-results context outside the first viewport until startup settles.
   The reserve is removed on success, empty results, and failure; cards are never hidden. */
@media (scripting: enabled){
 #cards[data-startup-pending]{min-block-size:100vh;min-block-size:100svh}
}
