:root {
  --page:#fff7fa;--white:#fff;--panel:#fff;--panel-soft:#ffeaf2;--petal:#ffe1ec;--cream:#fff0f5;
  --ink:#4a1630;--copy:#5c2a3e;--muted:#8a4a62;--subtle:#a56d84;
  --pink:#e85a8b;--pink-light:#ff7aa8;--pink-dark:#c43b6e;--border:rgba(232,90,139,.16);--border-deep:rgba(196,59,110,.26);
  --shadow:0 14px 34px rgba(196,59,110,.10);--shadow-raised:0 20px 54px rgba(196,59,110,.14);
  --max:1180px;--radius:18px;
}
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:145px; }
body { margin:0; min-width:0; background:var(--page); font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei','Noto Sans CJK SC',sans-serif; color:var(--copy); font-size:16px; line-height:1.8; overflow-x:clip; }
body.dialog-open { overflow:hidden; }
a { color:inherit; text-decoration:none; }
a:hover { color:var(--pink-dark); }
button,input { font:inherit; }
button { cursor:pointer; }
button,a { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid var(--pink-dark); outline-offset:3px; }
h1,h2,h3,p { margin:0 0 15px; }
h1,h2,h3 { color:var(--ink); line-height:1.35; letter-spacing:-.015em; }
h1 { font-size:clamp(28px,3vw,36px); font-weight:850; }
h2 { font-size:clamp(21px,2.1vw,27px); }
h3 { font-size:18px; }
p { line-height:1.94; }
[hidden] { display:none!important; }
.shell { width:min(var(--max),calc(100% - 44px)); margin-inline:auto; }
.site-head { position:sticky; top:0; z-index:1000; width:100%; background:var(--white); box-shadow:0 4px 18px rgba(194,69,112,.09); }
.paper-strip { background:var(--pink-dark); color:#fff; height:22px; font-size:10px; font-weight:750; letter-spacing:.9px; }
.strip-inner { display:flex; align-items:center; justify-content:space-between; height:22px; }
.search-launch { width:34px; height:22px; border:0; background:transparent; display:grid; place-items:center; padding:0; color:#fff; }
.search-glyph { width:11px; height:11px; border:2px solid currentColor; border-radius:50%; display:block; position:relative; }
.search-glyph::after { content:""; display:block; position:absolute; width:7px; height:2px; background:currentColor; right:-5px; bottom:-3px; transform:rotate(47deg); border-radius:3px; }
.masthead { height:64px; background:var(--white); border-bottom:1px solid var(--border); }
.mast-inner { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; min-height:64px; gap:14px; }
.site-logo { display:inline-flex; justify-self:start; align-items:center; min-width:0; max-width:180px; min-height:44px; }
.brand-logo-image { width:auto; height:auto; display:block; max-width:100%; max-height:36px; object-fit:contain; object-position:left center; }
.brand-logo-text { font-size:24px; font-weight:950; color:var(--pink-dark); white-space:nowrap; letter-spacing:-.06em; line-height:1.2; }
.brand-logo-text span { color:var(--pink); font-size:.76em; letter-spacing:-.035em; }
.envelope-trigger { display:flex; gap:10px; align-items:center; justify-content:center; border:1px solid var(--border-deep); border-radius:40px; min-width:118px; min-height:44px; padding:7px 15px; color:var(--pink-dark); background:#fff5f9; font-size:14px; font-weight:800; white-space:nowrap; }
.envelope-trigger:hover { background:var(--petal); }
.envelope-glyph { display:flex; flex-direction:column; justify-content:center; gap:4px; width:18px; flex:none; height:20px; }
.envelope-glyph i { display:block; width:18px; height:2px; min-height:2px; flex:none; border-radius:2px; background:currentColor; }
.app-link { display:inline-flex; justify-self:end; align-items:center; justify-content:center; min-height:44px; border-radius:60px; padding:0 20px; white-space:nowrap; color:#fff; font-size:13px; font-weight:850; background:linear-gradient(135deg,#ff7aa8,#e85a8b 55%,#c43b6e); box-shadow:0 8px 18px rgba(232,90,139,.17); }
.app-link:hover { color:#fff; filter:brightness(.94); }
.sticker-nav { height:44px; background:var(--panel-soft); border-bottom:1px solid var(--border-deep); }
.sticker-inner { display:flex; height:44px; align-items:stretch; gap:7px; }
.sticker-item { display:inline-flex; align-items:center; padding:0 17px; font-size:13px; font-weight:800; white-space:nowrap; border-bottom:3px solid transparent; }
.sticker-item:hover { color:var(--pink-dark); }
.sticker-item.current { color:#fff; background:var(--pink-dark); border-color:var(--pink-dark); }
.main-content { min-height:55vh; }
.page-section { padding:43px 0; }
.page-section.alt { background:#fff0f5; }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:23px; border-bottom:1px solid var(--border); padding-bottom:15px; }
.section-heading h2 { margin-bottom:3px; }
.section-sub { color:var(--muted); font-size:13px; margin:0; max-width:470px; }
.kicker { display:inline-flex; color:var(--pink-dark); background:var(--panel-soft); border:1px solid var(--border); border-radius:50px; padding:4px 12px; font-size:11px; font-weight:800; letter-spacing:.06em; margin-bottom:14px; }
.main-action,.secondary-action { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border-radius:50px; padding:10px 22px; font-weight:850; font-size:14px; transition:transform .15s,background .15s,filter .15s; }
.main-action { background:linear-gradient(135deg,#ff7aa8 0%,#e85a8b 55%,#c43b6e 100%); color:#fff; box-shadow:0 10px 25px rgba(232,90,139,.21); }
.main-action:hover { transform:translateY(-2px); color:#fff; filter:saturate(1.15); }
.secondary-action { background:#fff; color:var(--pink-dark); border:1px solid var(--border-deep); }
.secondary-action:hover { background:var(--petal); }
.plain-link { color:var(--pink-dark); font-size:13px; font-weight:800; text-decoration:underline; text-decoration-color:rgba(196,59,110,.25); text-underline-offset:4px; }
.plain-link:hover { color:var(--ink); }
.media-slot { display:flex; flex-direction:column; justify-content:center; align-items:center; padding:12px; min-width:0; overflow:visible; border:1px solid var(--border); border-radius:17px; background:var(--panel-soft); }
.media-slot img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; object-position:center; }
.media-slot.is-fallback { background:radial-gradient(circle at 70% 17%,rgba(255,255,255,.8),transparent 34%),linear-gradient(145deg,#ffe1ed,#fff1f7 62%,#fbe1eb); text-align:center; gap:3px; }
.fallback-symbol { font-size:31px; color:var(--pink); line-height:1.25; }
.fallback-overline { font-size:10px; font-weight:900; letter-spacing:1.3px; color:var(--pink-dark); }
.fallback-headline { font-size:17px; font-weight:850; color:var(--ink); }
.media-small { height:194px; }
.media-feature { height:260px; }
.media-tall { height:250px; }
/* Home: envelope layers, not a full-screen banner */
.hero-cover { padding:24px 0 36px; background:linear-gradient(175deg,#ffebf2,#fff7fa 68%); }
.hero-cover .shell { position:relative; }
.cover-slot { width:100%; height:clamp(175px,22vw,300px); max-height:300px; border-radius:20px; border:2px solid rgba(232,90,139,.22); box-shadow:var(--shadow); background:#ffeaf2; }
.cover-slot img { width:auto; height:auto; max-height:100%; max-width:100%; object-fit:contain; }
.cover-slot.is-fallback { position:relative; background:radial-gradient(circle at 19% 24%,#fffafa,transparent 28%),linear-gradient(120deg,#ffdce9,#fff1f7 55%,#fbd9e7); }
.cover-slot .fallback-symbol { font-size:46px; }
.cover-slot .fallback-headline { font-size:clamp(20px,3.5vw,36px); }
.cover-copy { margin:18px auto 0; max-width:900px; text-align:center; padding:14px 20px 12px; }
.cover-copy .eyebrow { color:var(--pink-dark); font-size:13px; font-weight:950; letter-spacing:.18em; margin-bottom:4px; }
.cover-copy h1 { margin:5px 0 14px; font-size:clamp(27px,3vw,38px); }
.cover-copy .lead { color:var(--copy); font-size:15px; line-height:2; margin-bottom:20px; }
.cover-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; }
.six-notes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:19px; }
.note-tile { display:flex; flex-direction:column; border:1px solid var(--border); border-radius:20px; overflow:hidden; background:#fff; box-shadow:0 7px 25px rgba(196,59,110,.055); padding:13px; }
.note-tile:nth-child(3n+2) { background:#fffafd; }
.note-tile .media-slot { height:185px; border-radius:13px; }
.note-tile .note-number { color:var(--pink-dark); font-weight:950; font-size:12px; letter-spacing:2px; margin-top:14px; }
.note-tile h3 { margin:4px 0 7px; }
.note-tile p { color:var(--muted); font-size:14px; line-height:1.85; margin-bottom:12px; flex:1; }
.note-tile .plain-link { min-height:44px; display:inline-flex; align-items:center; }
.letter-lead { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.85fr); gap:24px; align-items:center; }
.letter-lead .lead-article { background:#fff; padding:27px 28px; border:1px solid var(--border); border-radius:20px; }
.letter-lead .lead-article p { color:var(--copy); }
.letter-lead .media-slot { height:230px; }
.number-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.number-card { background:#fff; padding:22px 17px; border:1px solid var(--border); border-top:4px solid var(--pink); border-radius:16px; }
.number-card:nth-child(even) { border-top-color:var(--pink-dark); }
.number-card .number { display:block; color:var(--pink); font-family:Georgia,serif; font-size:34px; font-weight:850; line-height:1.2; margin-bottom:10px; }
.number-card h3 { font-size:17px; }
.number-card p { font-size:13px; color:var(--muted); margin:0; }
.album-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.album-card { display:flex; flex-direction:column; border-radius:19px; padding:16px; border:1px solid var(--border); background:#fff; box-shadow:0 7px 20px rgba(196,59,110,.05); }
.album-card .cover-mini { height:190px; display:grid; place-items:center; border-radius:12px; background:linear-gradient(150deg,#fbcddd,#fff3f7); border:1px solid rgba(196,59,110,.08); color:var(--pink-dark); font-size:34px; }
.album-card:nth-child(2) .cover-mini { background:linear-gradient(150deg,#f9dce9,#fffafa); }
.album-card:nth-child(3) .cover-mini { background:linear-gradient(150deg,#ffe1e6,#fff5f3); }
.album-card:nth-child(4) .cover-mini { background:linear-gradient(150deg,#ead9ea,#fff5fa); }
.album-card .album-no { color:var(--pink-dark); font-size:11px; letter-spacing:1px; margin-top:13px; }
.album-card h3 { margin:4px 0 7px; }
.album-card p { font-size:13px; color:var(--muted); flex:1; }
.media-text { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.12fr); align-items:center; gap:26px; }
.media-text.reverse { grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); }
.media-text.reverse .media-slot { order:2; }
.media-text .text-side { padding:10px 0; }
.media-text .text-side p { color:var(--muted); }
.state-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.state-card { padding:23px; background:var(--panel); border:1px solid var(--border); border-radius:18px; }
.state-card span { color:var(--pink-dark); background:var(--panel-soft); border-radius:50px; display:inline-block; font-size:11px; font-weight:900; padding:4px 10px; margin-bottom:15px; }
.state-card h3 { margin-bottom:9px; }
.state-card p { margin:0; font-size:13px; color:var(--muted); }
.steps { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:11px; }
.step-card { padding:23px 18px; border-radius:17px; background:var(--white); border:1px solid var(--border); }
.step-card .step-no { display:block; color:var(--pink); font-weight:900; font-size:26px; margin-bottom:9px; }
.step-card p { font-size:13px; color:var(--muted); margin:0; }
.letters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
.letter-card { position:relative; padding:30px; background:#fff; border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow); }
.letter-card::before { content:""; width:26px; height:26px; background:var(--petal); position:absolute; right:18px; top:18px; clip-path:polygon(0 0,100% 0,50% 100%); }
.letter-card p { font-size:14px; }
.letter-card .letter-label { color:var(--pink-dark); font-size:11px; font-weight:900; letter-spacing:.04em; }
.tip-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.tip-card { background:#fff; border:1px solid var(--border); border-radius:16px; padding:21px; }
.tip-card h3 { margin-bottom:7px; }
.tip-card p { color:var(--muted); font-size:14px; margin:0; }
.service-app { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:26px; padding:26px; align-items:center; border-radius:23px; background:linear-gradient(135deg,#ffe1ec,#fff 70%); border:1px solid var(--border-deep); }
.service-app .artwork { display:flex; align-items:center; justify-content:center; gap:12px; }
.service-app .app-media { height:325px; flex:1 1 70%; }
.service-app .mark-media { height:110px; flex:0 1 30%; }
.service-app .app-media img { max-height:300px; }
.service-app .mark-media img { max-height:85px; }
.service-app p { font-size:14px; color:var(--muted); }
.home-legal { background:#fff0f5; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.home-legal .shell { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:22px; padding-top:28px; padding-bottom:28px; }
.home-legal p { color:var(--muted); font-size:14px; margin:0; }
/* Article pages have distinct editorial surfaces, full HTML content on every viewport */
.article-mast { padding:34px 0; background:linear-gradient(160deg,#ffe6ef,#fff7fa 72%); border-bottom:1px solid var(--border); }
.article-mast .mast-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(235px,.7fr); align-items:center; gap:30px; }
.article-mast h1 { margin:3px 0 16px; }
.article-mast .article-dek { max-width:780px; line-height:2; font-size:15px; }
.article-mast .subline { margin:15px 0 0; color:var(--pink-dark); font-size:12px; font-weight:800; }
.article-mast .media-slot { height:220px; }
.article-reading { padding:30px 0 55px; }
.reading-grid { display:grid; grid-template-columns:minmax(0,1fr) 245px; align-items:start; gap:24px; }
.article-section { padding:24px 26px; background:#fff; border:1px solid var(--border); border-radius:18px; margin-bottom:17px; box-shadow:0 6px 24px rgba(196,59,110,.035); }
.article-section h2 { padding-bottom:12px; margin-bottom:15px; border-bottom:1px solid var(--border); font-size:21px; }
.article-section h2::before { content:""; display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:12px; background:var(--pink); vertical-align:3px; }
.article-section p { color:var(--copy); font-size:15px; line-height:2.08; margin-bottom:14px; }
.article-section p:last-child { margin-bottom:0; }
.article-aside { position:sticky; top:150px; padding:21px; background:#fff; border:1px solid var(--border); border-radius:18px; }
.article-aside h2 { font-size:16px; padding-bottom:12px; border-bottom:1px solid var(--border); }
.article-aside ul { margin:0; padding:0; list-style:none; }
.article-aside li { border-bottom:1px solid var(--border); }
.article-aside a { display:block; min-height:44px; font-size:13px; padding:10px 0; color:var(--muted); }
.article-aside a:hover { color:var(--pink-dark); }
.article-aside .aside-cue { color:var(--pink-dark); font-size:12px; margin:14px 0 0; }
.article-checks { background:#fff; padding:22px 25px; border:1px solid var(--border); border-radius:18px; margin:20px 0; }
.article-checks h2 { margin-bottom:10px; }
.article-checks ol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 28px; padding-left:22px; }
.article-checks li { padding:5px 0; font-size:14px; color:var(--copy); line-height:1.8; }
.article-faq { border:1px solid var(--border); border-radius:18px; background:var(--cream); padding:22px 25px; margin:20px 0; }
.article-faq h2 { margin-bottom:13px; }
.article-faq details { border-top:1px solid var(--border); padding:15px 0; }
.article-faq summary { color:var(--ink); font-size:15px; font-weight:800; cursor:pointer; }
.article-faq p { margin:11px 0 0; color:var(--muted); font-size:14px; }
.article-notice { background:#ffe5ef; border:1px solid var(--border-deep); border-left:5px solid var(--pink); border-radius:15px; padding:23px; margin:23px 0; }
.article-notice strong { color:var(--pink-dark); }
.article-notice p { font-size:14px; color:var(--copy); margin:9px 0; }
.article-notice a { display:inline-flex; align-items:center; min-height:44px; color:var(--pink-dark); padding:5px 12px 5px 0; font-size:13px; font-weight:800; text-decoration:underline; text-underline-offset:4px; }
.article-footer-link { display:flex; flex-wrap:wrap; gap:11px; border-top:1px solid var(--border); padding-top:20px; }
.article-footer-link a { min-height:44px; border:1px solid var(--border-deep); border-radius:30px; display:inline-flex; align-items:center; padding:8px 16px; font-size:13px; color:var(--pink-dark); font-weight:800; }
.article-footer-link a:hover { background:var(--petal); }
/* Article variations */
.article-page.page--note .article-section { border-left:4px solid #e85a8b; }
.article-page.page--portrait .article-section { border-top:4px solid #ffc3d7; }
.article-page.page--street .article-section:nth-child(2n) { background:#fff8fb; }
.article-page.page--scrap .article-section:nth-child(3n) { border-style:dashed; }
.article-page.page--tale .article-section h2 { font-family:Georgia,'Songti SC',serif; }
.article-page.page--set .article-section h2::before { border-radius:2px; }
.article-page.page--feeling .article-section:nth-child(2n) { background:#fff3f8; }
.article-page.page--gallery .article-section { box-shadow:0 10px 30px rgba(196,59,110,.08); }
.article-page.page--focus .article-section { border-left:4px solid var(--pink-dark); }
.article-page.page--slate .article-section { border-top:2px dotted var(--pink); }
.article-page.page--bench .article-section h2::before { width:13px; height:5px; border-radius:5px; }
.article-page.page--mail .article-section { background:linear-gradient(#fff,#fffbfd); }
.article-page.page--walk .article-section { border-left:4px solid #efb3c8; }
.article-page.page--app .article-mast { background:linear-gradient(125deg,#ffdaea,#fff8fb); }
.article-page.page--rights .article-section,.article-page.page--privacy .article-section,.article-page.page--grade .article-section { border-radius:8px; }
/* Footer */
.site-footer { background:#4a1630; color:#f8d6e4; border-top:5px solid #e85a8b; padding:44px 0 22px; }
.footer-inner { display:grid; grid-template-columns:minmax(200px,.75fr) minmax(0,2fr); gap:40px; }
.footer-logo { display:inline-flex; align-items:center; min-height:45px; }
.footer-logo .brand-logo-text { color:#fff; }
.footer-logo .brand-logo-text span { color:#ffc5d9; }
.footer-logo img { max-height:36px; }
.latin-id { display:block; color:#f7bfd3; font-size:12px; font-weight:700; letter-spacing:2px; margin:7px 0 14px; }
.footer-identity p { font-size:13px; color:#f8d6e4; line-height:1.9; }
.footer-columns { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.footer-group h2 { color:#fff; font-size:15px; margin:0 0 15px; }
.footer-group a { display:block; font-size:13px; color:#f8d6e4; padding:5px 0; line-height:1.4; }
.footer-group a:hover { color:#fff; text-decoration:underline; }
.footer-bottom { display:flex; flex-wrap:wrap; justify-content:space-between; border-top:1px solid rgba(255,255,255,.15); padding-top:22px; margin-top:25px; font-size:12px; color:#e8b7c9; gap:15px; }
.footer-bottom a { padding:7px; color:#f8d6e4; }
.mobile-bottom { display:none; }
/* Overlay and envelope drawer */
.screen-shade { position:fixed; inset:0; background:rgba(63,11,37,.50); z-index:1090; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .22s,visibility .22s; }
.screen-shade.is-active { opacity:1; visibility:visible; pointer-events:auto; }
.envelope-drawer { position:fixed; z-index:1100; left:50%; bottom:0; width:min(920px,100%); max-height:70vh; max-height:70dvh; background:#fff7fa; border:1px solid var(--border-deep); border-bottom:0; border-radius:26px 26px 0 0; box-shadow:0 -25px 75px rgba(73,10,37,.25); transform:translate(-50%,calc(100% + 20px)); visibility:hidden; pointer-events:none; transition:transform .28s ease,visibility .28s; overflow:auto; overscroll-behavior:contain; }
.envelope-drawer.is-open { transform:translate(-50%,0); visibility:visible; pointer-events:auto; }
.drawer-top { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:67px; padding:12px 24px; background:#fff; border-bottom:1px solid var(--border); }
.drawer-logo { display:inline-flex; align-items:center; gap:10px; min-width:0; }
.drawer-logo img { width:auto; max-height:31px; max-width:145px; object-fit:contain; }
.drawer-logo strong { color:var(--pink-dark); font-size:13px; }
.drawer-logo .brand-logo-text { font-size:21px; }
.close-control { border:1px solid var(--border-deep); background:var(--cream); width:44px; height:44px; border-radius:50%; color:var(--pink-dark); font-size:29px; display:grid; place-items:center; line-height:1; padding:0; flex:none; }
.close-control:hover { background:var(--petal); }
.drawer-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; padding:23px 24px 36px; }
.drawer-group { border-radius:17px; padding:19px; background:#fff; border:1px solid var(--border); }
.drawer-group h2 { color:var(--pink-dark); font-size:17px; margin:0 0 8px; }
.drawer-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px 13px; }
.drawer-list a { display:flex; flex-direction:column; gap:0; min-height:59px; padding:8px 5px; border-radius:9px; border-bottom:1px solid var(--border); }
.drawer-list a:hover { background:var(--cream); }
.drawer-list strong { color:var(--ink); font-size:13px; }
.drawer-list span { font-size:11px; line-height:1.5; color:var(--muted); }
/* Search white card */
.search-layer { position:fixed; z-index:1110; top:98px; left:50%; width:min(690px,calc(100% - 32px)); max-height:calc(100dvh - 112px); overflow:auto; background:#fff; border:1px solid var(--border-deep); border-radius:23px; padding:24px; box-shadow:var(--shadow-raised); transform:translate(-50%,-12px); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .2s,transform .2s,visibility .2s; }
.search-layer.is-open { opacity:1; visibility:visible; pointer-events:auto; transform:translate(-50%,0); }
.search-top { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:14px; }
.search-small { font-size:11px; font-weight:900; color:var(--pink-dark); letter-spacing:1px; }
.search-layer h2 { font-size:23px; margin-bottom:9px; }
.search-layer p { color:var(--muted); font-size:14px; }
.search-layer label { display:block; font-size:13px; font-weight:800; color:var(--ink); margin:18px 0 9px; }
.search-layer input { width:100%; min-height:48px; background:#fff8fb; border:1px solid var(--border-deep); border-radius:12px; padding:10px 14px; color:var(--ink); outline-offset:3px; }
.search-targets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:16px; }
.search-target { border:1px solid var(--border); background:var(--cream); border-radius:11px; min-height:48px; display:flex; justify-content:space-between; align-items:center; gap:6px; padding:12px; font-size:13px; font-weight:750; color:var(--ink); }
.search-target:hover { background:var(--petal); }
.search-target span { font-size:18px; color:var(--pink); }
.no-match { padding:10px 0; }
@media (max-width:1100px) { .shell { width:min(var(--max),calc(100% - 36px)); } .reading-grid { grid-template-columns:minmax(0,1fr) 215px; gap:17px; } }
@media (max-width:860px) {
  .sticker-inner { justify-content:space-between; gap:0; }
  .sticker-item { padding:0 9px; font-size:12px; }
  .six-notes { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .number-list,.album-grid,.state-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .steps { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .footer-inner { grid-template-columns:1fr; gap:20px; }
  .article-mast .mast-grid { grid-template-columns:minmax(0,1.3fr) minmax(210px,.7fr); }
  .reading-grid { grid-template-columns:minmax(0,1fr); }
  .article-aside { position:static; }
  .article-aside ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px) {
  html { scroll-padding-top:97px; }
  body { padding-bottom:calc(50px + env(safe-area-inset-bottom,0px)); }
  .shell { width:calc(100% - 32px); }
  .sticker-nav { display:none; }
  .mast-inner { gap:7px; }
  .brand-logo-text { font-size:19px; }
  .site-logo { max-width:130px; }
  .envelope-trigger { padding:6px 10px; min-width:95px; gap:6px; font-size:12px; }
  .app-link { padding:0 12px; font-size:12px; }
  .hero-cover { padding:18px 0 25px; }
  .cover-slot { height:190px; border-radius:16px; }
  .cover-copy { padding:17px 3px 4px; }
  .cover-copy .lead { font-size:14px; line-height:1.91; }
  .page-section { padding:31px 0; }
  .section-heading { flex-direction:column; align-items:flex-start; gap:3px; margin-bottom:18px; }
  .six-notes { gap:12px; }
  .note-tile { padding:11px; }
  .note-tile .media-slot { height:138px; }
  .letter-lead,.media-text,.media-text.reverse,.service-app { grid-template-columns:minmax(0,1fr); }
  .media-text.reverse .media-slot { order:0; }
  .letter-lead .lead-article { padding:20px; }
  .number-list,.state-grid { gap:10px; }
  .number-card,.state-card { padding:17px 14px; }
  .album-grid { gap:11px; }
  .album-card { padding:11px; }
  .album-card .cover-mini { height:140px; }
  .steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .letters,.tip-grid { grid-template-columns:1fr; }
  .service-app { padding:18px; }
  .service-app .app-media { height:255px; }
  .service-app .mark-media { height:88px; }
  .home-legal .shell { grid-template-columns:1fr; }
  .article-mast { padding:27px 0; }
  .article-mast .mast-grid { grid-template-columns:minmax(0,1fr); gap:17px; }
  .article-mast .media-slot { height:185px; }
  .article-reading { padding:25px 0 38px; }
  .article-section { padding:20px 17px; }
  .article-section h2 { font-size:19px; }
  .article-checks ol { grid-template-columns:1fr; }
  .article-faq,.article-checks { padding:19px 17px; }
  .footer-columns { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 13px; }
  .footer-bottom { padding-bottom:16px; }
  .mobile-bottom { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); position:fixed; bottom:0; left:0; right:0; z-index:950; height:calc(50px + env(safe-area-inset-bottom,0px)); padding-bottom:env(safe-area-inset-bottom,0px); border-top:1px solid var(--border-deep); background:#fff; box-shadow:0 -5px 20px rgba(196,59,110,.1); }
  .mobile-bottom a { min-width:0; min-height:50px; display:flex; flex-direction:column; gap:1px; align-items:center; justify-content:center; color:var(--muted); font-size:11px; font-weight:750; }
  .mobile-bottom a.selected { background:var(--pink); color:#fff; }
  .bottom-decor { display:block; height:4px; width:17px; border-radius:4px; background:currentColor; opacity:.5; }
  .envelope-drawer { max-height:83dvh; border-radius:21px 21px 0 0; }
  .drawer-groups { grid-template-columns:1fr; gap:12px; padding:15px 16px 25px; }
  .drawer-group { padding:15px; }
  .drawer-top { min-height:62px; padding:9px 16px; }
  .drawer-list { gap:3px 12px; }
  .search-layer { top:92px; width:calc(100% - 24px); padding:18px; max-height:calc(100dvh - 111px); }
  .search-targets { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:375px) {
  .brand-logo-text { font-size:17px; }
  .site-logo { max-width:102px; }
  .envelope-trigger { min-width:87px; padding:7px 8px; gap:5px; font-size:11px; }
  .envelope-glyph { width:16px; }
  .envelope-glyph i { width:16px; }
  .app-link { padding:0 9px; font-size:11px; }
  .app-link span { display:none; }
  .cover-slot { height:165px; }
  .cover-copy h1 { font-size:27px; }
  .six-notes { grid-template-columns:1fr; }
  .note-tile .media-slot { height:185px; }
  .number-list,.album-grid,.state-grid { grid-template-columns:1fr 1fr; }
  .album-card .cover-mini { height:128px; }
  .search-targets { gap:7px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; scroll-behavior:auto!important; transition-duration:.01ms!important; } }

/* BATCH_MOBILE_IMAGE_OVERFLOW_FIX_V1: keep images inside mobile viewport */
@media (max-width: 1024px) {
  /* Default figure margins are 40px, which can shift 100%-wide images. */
  figure {
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-width: 0;
    max-width: 100% !important;
  }
  /* Do not enlarge/crop actual image assets. */
  img, picture, video, canvas {
    max-width: 100% !important;
  }
  main img, article img, section img {
    height: auto !important;
    object-fit: contain !important;
    object-position: center;
  }
  /* Common banner/image wrappers: remove unwanted desktop offsets on phones. */
  :is(.hero-image, .hero-media, .hero-visual, .banner-image,
      .banner-media, .cover-image, .cover-media, .feature-image,
      .feature-visual, .intro-cover, .editorial-cover) {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
  :is(.hero, .hero-cover, .feature-split, .feature-row) > figure {
    min-width: 0;
    max-width: 100% !important;
    width: 100% !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
  :is(.hero, .hero-cover, .feature-split, .feature-row) > * {
    min-width: 0;
  }
}
/* END BATCH_MOBILE_IMAGE_OVERFLOW_FIX_V1 */
