/*
 * Yadolist — article page (single.php / page.php). Enqueued by brands/yadolist/header.php
 * on singular pages only, after brand.css. Article-body component classes (hp-*, mp-*) keep
 * their names; the agents' inline styles are overridden with !important only where the
 * colour or size would clash or fail contrast.
 */

/* ---------- Article ---------- */
.yd-article__crumb .breadcrumb { margin: 20px 0 0; font-size: 12px; color: var(--text-low); }
.breadcrumb a { color: var(--text-mid); }
.yd-article__head { max-width: 780px; margin: 0 auto; padding: 32px 20px 36px; text-align: center; }
.yd-article__cat a {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: 0.32em; color: var(--yd-accent);
}
.yd-article__cat a::before, .yd-article__cat a::after { content: ''; width: 24px; height: 1px; background: currentColor; }
.yd-article__title { font-family: var(--font-display); font-weight: 500; font-size: 33px; line-height: 1.62; letter-spacing: 0.06em; margin: 18px 0 18px; text-wrap: pretty; }
.yd-article__dek { max-width: 640px; margin: 0 auto; text-align: left; font-size: 15px; line-height: 2; color: var(--text-mid); }
.yd-article__meta {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 20px;
    margin: 26px auto 0; padding: 12px 0; max-width: 640px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    font-size: 12.5px; letter-spacing: 0.08em; color: var(--text-low);
}
.yd-article__meta .updated-badge { margin: 0; background: var(--bg-alt); }
.yd-article__meta .meta-editor { font-size: 12.5px; color: var(--text-mid); }
.yd-article__places { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 16px; }
.yd-article__placesh { font-size: 11.5px; letter-spacing: 0.24em; color: var(--text-low); }
.yd-article__places a { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--text); border-bottom: 1px solid var(--yd-accent); }
.yd-article__places a:hover { color: var(--yd-accent); }
.yd-article__hero { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.yd-article__hero img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--bg-alt); }
@media (max-width: 640px) {
    .yd-article__head { padding: 22px 16px 28px; }
    .yd-article__title { font-size: 24px; letter-spacing: 0.03em; }
    .yd-article__dek { font-size: 14.5px; }
    .yd-article__hero { padding: 0; }
    .yd-article__hero img { aspect-ratio: 4 / 3; }
}
.yd-article--page .yd-article__head { padding-bottom: 8px; }

.yd-article__main { padding: 0 20px; }
@media (max-width: 640px) { .yd-article__main { padding: 0 16px; } }

/* Body text */
.article-body { max-width: 680px; margin: 0 auto; padding: 44px 0 40px; font-size: 16.5px; line-height: 2.05; letter-spacing: 0.03em; color: var(--text); }
.article-body p { margin: 0 0 1.6em; }
.article-body a { color: var(--yd-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body strong, .article-body b { font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 1.5em; margin: 0 0 1.6em; }
.article-body li { margin: 0.35em 0; }
.article-body img { border-radius: 2px; }
.article-body blockquote { margin: 1.8em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 2px solid var(--yd-accent); color: var(--text-mid); }
.article-body h2 {
    font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.65; letter-spacing: 0.06em;
    margin: 2.8em 0 1em; padding: 0; border: 0;
}
.article-body h2::before { content: ''; display: block; width: 30px; height: 2px; background: var(--yd-accent); margin-bottom: 18px; }
.article-body h2 a { color: var(--text); text-decoration-color: var(--yd-accent); }
.article-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.7; letter-spacing: 0.05em; margin: 2.2em 0 0.8em; }
.article-body h3::before { content: ''; display: inline-block; width: 14px; height: 1px; background: var(--yd-accent); vertical-align: 0.35em; margin-right: 12px; }
.article-body h4 { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; margin: 1.8em 0 0.6em; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; margin: 0 0 1.8em; }
.article-body th, .article-body td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
@media (max-width: 640px) {
    .article-body { padding-top: 32px; font-size: 16px; line-height: 2; letter-spacing: 0.02em; }
    .article-body h2 { font-size: 21px; }
    .article-body h3 { font-size: 17.5px; }
}

/* Article-body components (agent-written; inline styles overridden only where needed) */
.article-body .hp-takeaways {
    background: var(--paper) !important; border: 1px solid var(--line) !important; border-top: 2px solid var(--yd-accent) !important;
    padding: 22px 26px 18px !important; margin: 28px 0 36px !important;
}
.article-body .hp-takeaways > p:first-child {
    font-family: var(--font-display); font-weight: 500; font-size: 15px !important; letter-spacing: 0.24em !important; color: var(--yd-accent) !important; margin-bottom: 10px !important;
}
.article-body .hp-takeaways ul { font-size: 14.5px !important; line-height: 1.9 !important; }
.article-body .hp-updated, .article-body .hp-updated time { color: var(--text-low) !important; font-size: 12px !important; }
.article-body .hp-compare thead tr, .article-body .hp-compare thead th { background: var(--bg-alt) !important; color: var(--text) !important; }
.article-body .hp-compare { background: var(--paper); border-top: 1px solid var(--yd-ink) !important; }
.article-body .hp-compare td a { color: var(--yd-accent); }
.article-body section.hp-hotel { position: relative; margin-top: 4em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.article-body section.hp-hotel::before {
    content: ''; position: absolute; top: -6px; left: 50%; width: 11px; height: 11px; margin-left: -6px;
    background: var(--bg); border: 1px solid var(--yd-accent); transform: rotate(45deg);
}
.article-body section.hp-hotel > h2 { margin-top: 1.4em; }
.article-body section.hp-hotel > h2::before { display: none; }
.article-body .hp-lead {
    font-family: var(--font-display); font-size: 18px !important; font-weight: 500 !important; line-height: 1.95 !important;
    color: var(--text) !important; padding-left: 18px; border-left: 2px solid var(--yd-accent); margin: 14px 0 22px !important;
}
.article-body .hp-price, .article-body .hp-price b { color: var(--yd-accent) !important; }
.article-body .hp-price span { color: var(--text-low) !important; }
.article-body figure.hotel-photo, .article-body figure.hotel-hero { margin: 26px 0 28px !important; }
.article-body figure.hotel-photo img, .article-body figure.hotel-hero img { border-radius: 0 !important; }
.article-body figure.hotel-photo figcaption, .article-body figure.hotel-hero figcaption { color: var(--text-low) !important; font-size: 11.5px !important; letter-spacing: 0.12em !important; }
.article-body figure.hotel-photo figcaption a, .article-body figure.hotel-hero figcaption a { color: var(--yd-accent) !important; }
.article-body .hp-fit li { border-bottom-color: var(--line) !important; }
.article-body .hp-fit strong { color: var(--yd-accent) !important; }
.article-body .hp-fit li + li strong { color: var(--yd-moss) !important; }
.article-body .hp-facts { background: var(--paper); border: 1px solid var(--line) !important; padding: 14px 20px !important; font-size: 14px !important; }
.article-body .hp-facts li { padding: 4px 0; border-bottom: 1px dotted var(--line); }
.article-body .hp-facts li:last-child { border-bottom: 0; }
.article-body .hp-facts strong { font-weight: 500; color: var(--text-mid); }
.article-body .hp-deep { border-left: 2px solid var(--yd-accent) !important; background: transparent; }
.article-body .hp-deep > p:first-child { font-family: var(--font-display); font-weight: 500; font-size: 13px !important; letter-spacing: 0.22em !important; color: var(--yd-accent) !important; }
.article-body .hp-sources { font-size: 13.5px !important; color: var(--text-mid); }
.article-body .hp-map { border-color: var(--line) !important; }
.article-body .hp-map-hint { color: var(--text-low) !important; }
.article-body .mp-chart { background: var(--paper); border: 1px solid var(--line); padding: 18px 18px 14px !important; }
.article-body .mp-chart-cap { color: var(--text-mid) !important; }
.article-body .mp-method { background: var(--paper); border: 1px solid var(--line); padding: 16px 20px; font-size: 13.5px; color: var(--text-mid); margin: 2em 0; }
/* Agent text set in the old indigo / light grey: bengara and an AA grey on kinari. */
.article-body [style*="color:#25405a"], .article-body [style*="color: #25405a"] { color: var(--yd-accent) !important; }
.article-body [style*="color:#999"], .article-body [style*="color: #999"] { color: var(--text-low) !important; }
.article-body [style*="background:#f4ecdf"], .article-body [style*="background:#faf8f4"] { background: var(--paper) !important; }

/* 湯の情報 — mp-box--onsen: a framed card (二重枠), steam mark, ruled rows. */
.article-body .mp-box--onsen, .mp-box--onsen {
    position: relative; margin: 28px 0 34px; padding: 24px 28px 18px;
    background: var(--paper); border: 1px solid #cbbfa9; border-radius: 0;
    box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--line);
    font-size: 15px; line-height: 1.8;
}
.mp-box--onsen .mp-box__title {
    display: flex; align-items: center; gap: 10px; margin: 0 0 12px !important;
    font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: 0.3em; color: var(--text);
}
.mp-box--onsen .mp-box__title::before {
    content: ''; flex: none; width: 22px; height: 22px; background: var(--yd-accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M7.5 3c-1.6 2 1.6 3.4 0 5.6s1.6 3.6 0 5.4'/%3E%3Cpath d='M12 2c-1.6 2 1.6 3.4 0 5.6s1.6 3.6 0 5.4'/%3E%3Cpath d='M16.5 3c-1.6 2 1.6 3.4 0 5.6s1.6 3.6 0 5.4'/%3E%3Cpath d='M3 15.5c1 4 17 4 18 0'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M7.5 3c-1.6 2 1.6 3.4 0 5.6s1.6 3.6 0 5.4'/%3E%3Cpath d='M12 2c-1.6 2 1.6 3.4 0 5.6s1.6 3.6 0 5.4'/%3E%3Cpath d='M16.5 3c-1.6 2 1.6 3.4 0 5.6s1.6 3.6 0 5.4'/%3E%3Cpath d='M3 15.5c1 4 17 4 18 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mp-box--onsen .mp-box__title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.mp-box--onsen .mp-box__list { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 0; margin: 0; }
.mp-box--onsen .mp-box__list dt, .mp-box--onsen .mp-box__list dd { padding: 10px 0; border-top: 1px dotted #cbbfa9; margin: 0; }
.mp-box--onsen .mp-box__list dt:first-of-type, .mp-box--onsen .mp-box__list dt:first-of-type + dd { border-top: 0; }
.mp-box--onsen .mp-box__list dt { font-family: var(--font-display); font-weight: 500; font-size: 14.5px; letter-spacing: 0.12em; color: var(--yd-accent); padding-right: 12px; }
.mp-box--onsen .mp-box__list dd { color: var(--text); }
@media (max-width: 640px) {
    .article-body .mp-box--onsen, .mp-box--onsen { padding: 20px 18px 14px; font-size: 14.5px; }
    .mp-box--onsen .mp-box__list { grid-template-columns: 6.8em minmax(0, 1fr); }
    .mp-box--onsen .mp-box__list dt { font-size: 13.5px; letter-spacing: 0.02em; padding-right: 8px; }
    .mp-box--onsen .mp-box__list dd { margin: 0; }
}

/* ---------- Article footer ---------- */
.yd-article__foot { max-width: 720px; margin: 0 auto; padding: 0 20px 24px; }
.yd-article__tags { padding: 28px 0; border-top: 1px solid var(--line); }
.yd-article__footh { font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: 0.2em; margin-bottom: 12px; }
.yd-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.yd-share__label { font-size: 12.5px; letter-spacing: 0.16em; color: var(--text-mid); margin-right: 8px; }
.yd-share a { display: inline-grid; place-items: center; min-width: 76px; height: 36px; padding: 0 14px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; color: var(--text); }
.yd-share a:hover { border-color: var(--yd-accent); color: var(--yd-accent); }
.yd-article__foot .author-card { background: var(--paper); border-radius: 0; margin: 28px 0; }
.yd-article__foot .editor-card .avatar-initial { background: var(--bg-alt); color: var(--yd-accent); font-family: var(--font-display); }
.author-bio { font-size: 13px; }
.yd-next { display: grid; gap: 4px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); }
.yd-next__label { font-size: 12.5px; letter-spacing: 0.12em; color: var(--text-mid); }
.yd-next__title { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.65; }
.yd-next:hover .yd-next__title { color: var(--yd-accent); }
.yd-related { margin-top: 48px; padding: 64px 0 72px; background: var(--bg-alt); }
.yd-related__h { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: 0.2em; text-align: center; margin-bottom: 36px; }
.yd-related .yd-card__media--text, .yd-related .yd-card__vert { background-color: var(--paper); }
@media (max-width: 640px) { .yd-related { padding: 48px 0 56px; } }

/* Comparison table on phones: let the cells wrap so the table fits the column (core keeps
   nowrap + a 240px last column, which overflows a 7-column listicle table at 390px). */
@media (max-width: 760px) {
    .article-body .hp-compare th, .article-body .hp-compare td { white-space: normal; padding: 6px 4px !important; }
    .article-body .hp-compare td:last-child, .article-body .hp-compare th:last-child { min-width: 0; max-width: none; }
    .article-body .hp-compare { font-size: 11.5px !important; word-break: break-word; }
}
@media (max-width: 480px) { .yd-share a { min-width: 0; padding: 0 12px; } .yd-share__label { width: 100%; } }
