/* Reuses the existing JAV Dictionary palette, typography, spacing and cards. */
body.javd-site { margin:0; background:#fff; color:#171717; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:16px; }
.javd-site *, .javd-site *::before, .javd-site *::after { box-sizing:border-box; }
.javd-site a { color:inherit; }
.javd-site a:focus-visible,.javd-site button:focus-visible,.javd-site input:focus-visible { outline:3px solid #171717; outline-offset:5px; }
.javd-site-header { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:26px 32px; }
.javd-site-header>a { font-size:20px; font-weight:750; letter-spacing:-.04em; text-decoration:none; }
.javd-site-header nav a { font-size:14px; text-underline-offset:4px; }
.javd-skip,.javd-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; }
.javd-skip:focus { position:fixed; top:8px; left:8px; z-index:100000; width:auto; height:auto; padding:12px; background:#fff; clip:auto; }
.javd-wrap { max-width:720px; margin:0 auto; padding:48px 20px 80px; }
.javd-hero { padding:32px 0 42px; }
.javd-brand { font-size:13px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; margin-bottom:22px; }
.javd-title { font-size:clamp(40px,10vw,68px); line-height:1.05; letter-spacing:-.055em; margin:0 0 22px; font-weight:800; }
.javd-subtitle { max-width:29ch; font-size:clamp(22px,4.8vw,28px); line-height:1.3; letter-spacing:-.025em; font-weight:600; margin:0 0 16px; }
.javd-tagline { max-width:68ch; font-size:14px; line-height:1.65; color:#626262; margin:0 0 30px; }
.javd-search { display:flex; align-items:stretch; gap:8px; margin:0; }
.javd-search input { flex:1; min-width:0; width:100%; border:1px solid #cfcfcf; border-radius:14px; padding:16px 18px; font:inherit; font-size:16px; background:#fff; color:#171717; }
.javd-search button { border:0; border-radius:14px; padding:0 20px; min-height:50px; background:#171717; color:#fff; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.javd-section { padding:32px 0; border-top:1px solid #e8e8e8; }
.javd-label { font-size:12px; font-weight:800; letter-spacing:.12em; color:#626262; margin:0 0 14px; }
.javd-list { display:flex; flex-direction:column; }
.javd-link { display:flex; justify-content:space-between; align-items:center; gap:20px; text-decoration:none; padding:17px 0; border-bottom:1px solid #ededed; }
.javd-link>div { min-width:0; }
.javd-link strong { display:block; font-size:20px; }
.javd-link small { display:block; color:#626262; margin-top:4px; font-size:13px; }
.javd-link:hover strong,.javd-link:hover h2 { text-decoration:underline; text-underline-offset:4px; }
.javd-arrow { font-size:20px; flex:0 0 auto; }
.javd-explore { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.javd-card { display:flex; min-height:115px; flex-direction:column; justify-content:space-between; gap:14px; padding:18px; border:1px solid #dedede; border-radius:16px; text-decoration:none; }
.javd-card:hover { background:#f7f7f7; }
.javd-card strong { font-size:17px; }
.javd-card span { color:#626262; font-size:13px; }
.javd-site .javd-random { display:block; width:100%; background:#171717; color:#fff; border:0; padding:18px 20px; border-radius:16px; font-size:16px; font-weight:700; cursor:pointer; text-align:center; text-decoration:none; }
.javd-az { display:flex; flex-wrap:wrap; gap:8px; }
.javd-az a { width:40px; height:40px; display:grid; place-items:center; border:1px solid #dedede; border-radius:10px; text-decoration:none; font-weight:700; font-size:14px; }
.javd-az a.javd-all { width:48px; }
.javd-az a:hover,.javd-az a[aria-current],.javd-pagination a[aria-current] { background:#171717; color:#fff; }
.javd-about { font-size:14px; color:#626262; line-height:1.7; margin:0; }
.javd-term { max-width:760px; margin:0 auto; padding:70px 20px; }
.javd-term-meta { margin-bottom:32px; }
.javd-term-name { font-size:40px; line-height:1.05; font-weight:800; letter-spacing:-.04em; margin:0 0 9px; overflow-wrap:anywhere; }
.javd-japanese { font-size:18px; line-height:1.4; font-weight:600; color:#555; margin-bottom:6px; }
.javd-romaji { font-size:13px; color:#626262; }
.javd-box { background:#f7f7f7; border-radius:16px; padding:22px; margin:0 0 36px; }
.javd-definition { font-size:20px; line-height:1.55; margin:0; font-weight:700; }
.javd-term .javd-label { font-size:11px; margin-bottom:10px; }
.javd-term .javd-section { padding:30px 0; }
.javd-term .javd-section h2 { font-size:25px; line-height:1.2; margin:0 0 14px; font-weight:600; }
.javd-term .javd-section p { font-size:16px; line-height:1.75; margin:0 0 14px; }
.javd-related { display:flex; flex-direction:column; }
.javd-related a { display:flex; justify-content:space-between; align-items:center; padding:16px 0; border-bottom:1px solid #ededed; text-decoration:none; }
.javd-related a:hover { text-decoration:underline; text-underline-offset:4px; }
.javd-back { display:inline-block; margin-top:35px; font-size:14px; text-decoration:none; border-bottom:1px solid #171717; }
.javd-browse { padding-top:70px; }
.javd-browse h1,.javd-not-found h1 { font-size:clamp(34px,7vw,48px); font-weight:800; letter-spacing:-.04em; line-height:1.1; margin:0 0 28px; }
.javd-browse .javd-search { margin-bottom:32px; }
.javd-category-nav { display:flex; gap:10px 20px; flex-wrap:wrap; margin:24px 0 30px; font-size:13px; }
.javd-category-nav a { text-underline-offset:4px; }
.javd-result-count { color:#626262; font-size:14px; margin:26px 0 8px; }
.javd-result { padding:24px 0; }
.javd-result h2 { font-size:24px; letter-spacing:-.03em; line-height:1.15; margin:0 0 7px; }
.javd-result-ja { font-size:15px; color:#555; margin-right:10px; }
.javd-result-category { font-size:12px; color:#626262; }
.javd-result p { font-size:15px; line-height:1.65; margin:12px 0 0; }
.javd-empty { padding:28px; background:#f7f7f7; border-radius:16px; margin:24px 0; }
.javd-empty h2 { font-size:24px; margin:0 0 12px; }
.javd-empty p { line-height:1.6; }
.javd-pagination { display:flex; gap:10px; margin-top:32px; }
.javd-pagination a { padding:10px 15px; border:1px solid #ddd; border-radius:8px; text-decoration:none; }
.javd-site-footer { max-width:720px; margin:0 auto; padding:24px 20px 36px; border-top:1px solid #e8e8e8; color:#626262; font-size:12px; line-height:1.7; }
.javd-site-footer p { margin:0 0 12px; }
.javd-site-footer a { margin-right:20px; text-underline-offset:4px; }
.javd-draft-notice { max-width:720px; margin:24px auto 0; padding:14px 20px; background:#f7f7f7; border-left:3px solid #171717; font-size:14px; line-height:1.6; }
.javd-usage-example .javd-example-line { margin-top:22px; overflow-wrap:anywhere; }
.javd-usage-example .javd-example-line h3 { margin:0 0 6px; font-size:12px; font-weight:600; letter-spacing:.06em; color:#626262; }
.javd-usage-example .javd-example-line p { margin:0; }
.javd-usage-example p[lang="ja"] { line-height:1.9; }
@media(max-width:480px) {
 .javd-site-header { padding:22px 18px; }
 .javd-site-header>a { font-size:19px; }
 .javd-site-header nav a { font-size:12px; }
 .javd-wrap { padding:28px 18px 60px; }
 .javd-explore { grid-template-columns:1fr; }
 .javd-search button { padding:0 15px; }
 .javd-term { padding:44px 18px 55px; }
 .javd-term-name { font-size:36px; }
 .javd-japanese { font-size:17px; }
 .javd-definition { font-size:18px; }
 .javd-term .javd-section h2 { font-size:22px; }
 .javd-browse { padding-top:44px; }
}

/* Editable template blocks retain the established layout. */
.javd-pagination { flex-wrap:wrap; }
.javd-site main.wp-block-group { margin:0; }
.javd-site .wp-block-template-part { margin:0; }
.javd-site-header p { margin:0; }
.javd-site-header .javd-header-brand a { font-size:20px; font-weight:750; letter-spacing:-.04em; text-decoration:none; }
.javd-site-header .javd-header-nav a { font-size:14px; text-underline-offset:4px; }
.editor-styles-wrapper { color:#171717; background:#fff; }
.editor-styles-wrapper .javd-wrap { box-sizing:border-box; }

/* Consistent reading rhythm, including paragraphs added in WordPress. */
body.javd-site { line-height:1.65; }
.javd-site #javd-content { min-width:0; }
.javd-site #javd-content p:not(.javd-subtitle):not(.javd-tagline):not(.javd-label):not(.javd-definition):not(.javd-result-count):not(.javd-about) { line-height:1.75 !important; overflow-wrap:break-word; }
.javd-site #javd-content h1,.javd-site #javd-content h2,.javd-site #javd-content h3 { word-break:normal; overflow-wrap:break-word; }
.javd-title { letter-spacing:-.04em; text-wrap:balance; }
.javd-term-name { font-size:clamp(32px,5vw,42px); line-height:1.15; letter-spacing:-.025em; text-wrap:balance; }
.javd-term .javd-section h2 { line-height:1.3; letter-spacing:-.015em; }
.javd-definition { line-height:1.6; }
.javd-box > p:not(.javd-definition) { margin:16px 0 0; }
.javd-result h2 { line-height:1.25; letter-spacing:-.015em; }
.javd-result-ja,.javd-result-category { display:inline-block; line-height:1.65; vertical-align:baseline; }
.javd-result-ja { margin-right:12px; }
.javd-result-category { color:#626262; }
.javd-result > span[aria-hidden] { flex:none; }
.javd-pagination { gap:10px; padding-top:24px; margin-top:16px; border-top:1px solid #e8e8e8; align-items:center; }
.javd-pagination a { display:inline-flex; min-width:44px; min-height:44px; align-items:center; justify-content:center; padding:8px 12px; line-height:1.4; }
.javd-term-meta { margin-bottom:30px; }
.javd-term .javd-section p:last-child { margin-bottom:0; }
.javd-usage-example .javd-example-line + .javd-example-line { margin-top:24px; }
.javd-site-footer { font-size:13px; }
@media(max-width:480px) {
 .javd-term-name { font-size:34px; line-height:1.16; }
 .javd-title { font-size:clamp(36px,10vw,46px); line-height:1.12; }
 .javd-result { padding:24px 0; gap:14px; }
 .javd-result h2 { font-size:23px; }
 .javd-result-ja,.javd-result-category { display:block; margin-right:0; }
 .javd-result-category { margin-top:3px; }
 .javd-pagination { gap:9px; }
 .javd-site-header { gap:12px; flex-wrap:wrap; }
 .javd-site-header .javd-header-brand a { font-size:19px; }
}

.javd-pagination .javd-page-step { font-size:14px; padding-inline:14px; }
.javd-page-gap { padding:0 2px; color:#626262; }

.javd-site #javd-content p[lang="ja"] { line-height:1.9 !important; }

/* Editable performer profiles and calm further-reading slots. */
.javd-profile-search{margin:28px 0}.javd-profile-search label{display:block;font-weight:700;margin-bottom:10px}.javd-profile-search>div{display:flex;gap:12px}.javd-profile-search input{min-width:0;flex:1;border:1px solid #aaa;border-radius:0;padding:14px;font:inherit;background:#fff;color:#111}.javd-profile-search button{border:1px solid #111;padding:12px 22px;background:#111;color:#fff;font:inherit;cursor:pointer}.javd-profile-toc{border-block:1px solid #ddd;padding:24px 0;margin:32px 0}.javd-profile-toc>div{display:flex;flex-wrap:wrap;gap:10px 16px}.javd-profile-toc span{color:#999}.javd-profile-toc a{font-weight:700}.javd-profile-list{list-style:none;padding:0}.javd-profile-list li{border-bottom:1px solid #ddd;padding:20px 0}.javd-profile-list a{font-weight:700}.javd-profile-list span{display:block;font-size:16px;color:#555;margin-top:6px}.javd-further-reading{border:1px solid #ddd;padding:26px;background:#fff}.javd-further-reading p:last-child{margin-bottom:0}.javd-muted{color:#626262;font-size:16px}.javd-profile-directory{max-width:760px}.javd-profile-toc a,.javd-profile-toc span{padding:4px;min-width:20px;text-align:center}.javd-profile-list a,.javd-further-reading a{overflow-wrap:anywhere}@media(max-width:480px){.javd-profile-search>div{flex-direction:column}.javd-further-reading{padding:20px}}
.javd-profile-directory>.javd-section{margin:28px 0;padding:24px 0}.javd-profile-directory>.javd-section>h2{font-size:24px;margin:0 0 12px}.javd-profile-list{margin:0}.javd-profile-list li{padding:16px 0}
