/*
 * Wabistay — article.css: the article page (single.php, page.php) and the article-body
 * components the agents write. Enqueued by header.php on singular pages only, after
 * brand.css (tokens live there). Component class names are a stable interface
 * (contract §3); the agents put inline styles on most of them, hence the !important
 * overrides.
 */

/* ---------- Article ---------- */
.wb-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.wb-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
    .wb-progress span { animation: wb-progress linear forwards; animation-timeline: scroll(root); }
    @keyframes wb-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

.wb-article__head { padding-bottom: clamp(32px, 4.5vw, 56px); }
.wb-article__kicker {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: clamp(24px, 4vw, 48px) 0 18px;
    font-size: 12px; letter-spacing: .2em;
}
.wb-article__kicker a { color: var(--accent); text-decoration: none; }
.wb-article__kicker a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wb-article__en { font-family: var(--font-display); font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-3); }
.wb-article__title {
    margin: 0; font-family: var(--font-display); font-weight: 400;
    font-size: clamp(27px, 3.9vw, 46px); line-height: 1.55; letter-spacing: .05em; text-wrap: pretty;
}
.wb-article__dek {
    margin: 24px 0 0; font-family: var(--font-display); font-size: clamp(15.5px, 1.5vw, 17px);
    line-height: 2.05; color: var(--ink-2); letter-spacing: .04em;
}
.wb-article__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 28px; padding-top: 16px;
    border-top: 1px solid var(--rule); font-size: 12px; letter-spacing: .08em; color: var(--ink-3);
}
.wb-article__meta time { font-variant-numeric: tabular-nums; }
.wb-article__meta .meta-editor { font-size: 12px; color: var(--ink-2); }

.wb-hero { margin: 0 0 clamp(40px, 6vw, 80px); background: var(--paper-2); }
.wb-hero__img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: cover; }

.wb-article__tags { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 10px 24px; margin: 8px 0 0; padding: 24px 0; border-top: 1px solid var(--ink); }
.wb-share {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 18px 0;
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
    font-size: 12px; letter-spacing: .14em;
}
.wb-share__label { font-family: var(--font-display); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.wb-share a, .wb-share__copy {
    color: var(--ink); text-decoration: none; border: 0; background: none; padding: 4px 0; cursor: pointer;
    font: inherit; letter-spacing: inherit; border-bottom: 1px solid transparent;
}
.wb-share a:hover, .wb-share__copy:hover { border-bottom-color: var(--ink); }

/* Editor of record (inc/editorial.php) */
.author-card { margin: 36px 0 0; padding: 24px; gap: 18px; background: var(--paper-2); border: 0; border-radius: 0; }
.author-name { font-family: var(--font-display); font-size: 16px; }
.author-role { color: var(--ink-3); letter-spacing: .14em; }
.author-bio { font-size: 12.5px; line-height: 1.9; color: var(--ink-2); }
.editor-card .avatar-initial { background: var(--paper) !important; color: var(--ink) !important; font-family: var(--font-display) !important; }
.editor-card .author-bio a { color: var(--ink) !important; text-decoration: underline; }

.wb-next { margin: clamp(56px, 7vw, 96px) 0 0; background: var(--paper-2); }
.wb-next__link {
    display: block; max-width: calc(860px + 2 * var(--gut)); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gut);
    text-align: center; text-decoration: none;
}
.wb-next__label { display: block; font-family: var(--font-display); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.wb-next__title { display: block; margin: 16px 0 12px; font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 27px); line-height: 1.6; letter-spacing: .05em; }
.wb-next__link:hover .wb-next__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.wb-next__meta { display: block; font-size: 12px; letter-spacing: .12em; color: var(--ink-3); }
.wb-next + .wb-related { margin-top: clamp(56px, 7vw, 96px); }

/* ---------- Article body ---------- */
.article-body {
    max-width: none; margin: 0; padding: 0 0 clamp(40px, 5vw, 64px);
    font-size: 16px; line-height: 2.05; letter-spacing: .03em; color: var(--ink);
}
.article-body > *:first-child { margin-top: 0; }
/* wpautop leaves <br> between the agents' block elements (map scripts, figures): no stray gaps. */
.article-body > br, .article-body section > br, .article-body aside > br { display: none; }
.article-body p { margin: 0 0 1.5em; }
.article-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-body a:hover { text-decoration-color: var(--ink); }
.article-body strong, .article-body b { font-weight: 700; }
.article-body ul, .article-body ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.article-body li { margin: .25em 0; }
.article-body h2 {
    margin: 2.8em 0 1em; padding-top: 0; border-top: 0;
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(21px, 2.3vw, 27px); line-height: 1.6; letter-spacing: .05em;
}
.article-body h2::before { content: ''; display: block; width: 40px; height: 1px; background: var(--ink); margin-bottom: 22px; }
.article-body h3 {
    margin: 2.2em 0 .7em; font-family: var(--font-display); font-weight: 600;
    font-size: 17.5px; line-height: 1.7; letter-spacing: .05em;
}
.article-body h2 a, .article-body h3 a { text-decoration-color: var(--rule-2); }
.article-body img { height: auto; }
.article-body table { font-variant-numeric: tabular-nums; }
.article-body blockquote { margin: 2em 0; padding: 0 0 0 1.4em; border-left: 1px solid var(--ink); color: var(--ink-2); }

/* The agents' inline palette (hotelpicks indigo / beige / grey) → this site's ink, rules
   and accent. Component rules below are more specific where a component needs more. */
.article-body [style*="color:#25405a"], .article-body [style*="color:#1a2f44"],
.article-body [style*="color:#2c67e1"] { color: var(--ink) !important; }
.article-body [style*="color:#8a4548"] { color: var(--accent) !important; }
.article-body [style*="color:#999"], .article-body [style*="color:#888"],
.article-body [style*="color:#777"], .article-body [style*="color:#bbb"] { color: var(--ink-3) !important; }
.article-body [style*="background:#f4ecdf"], .article-body [style*="background:#faf8f4"] { background: var(--paper-2) !important; }
.article-body [style*="#f0e8d8"], .article-body [style*="#eee6d6"] { border-color: var(--rule) !important; }
.article-body [style*="#d4cebf"] { border-color: var(--rule-2) !important; }
.article-body [style*="solid #25405a"] { border-color: var(--ink) !important; }

/* Tables scroll sideways inside their wrapper on phones (lib.php wb_wrap_tables). */
.wb-table-scroll { max-width: 100%; }

/* Hotel sections: each opens with a full rule, like a new spread. */
.article-body section.hp-hotel { margin: 4.5em 0 0; padding-top: 10px; border-top: 1px solid var(--ink); }
.article-body section.hp-hotel > h2:first-child { margin-top: .8em; }
.article-body section.hp-hotel > h2:first-child::before { display: none; }
.article-body .hp-lead {
    font-family: var(--font-display) !important; font-size: clamp(16.5px, 1.6vw, 18.5px) !important;
    font-weight: 400 !important; color: var(--ink) !important; line-height: 1.95 !important;
    margin: 6px 0 22px !important; letter-spacing: .04em;
}
.article-body .hp-price { color: var(--ink-2) !important; font-size: 13px !important; letter-spacing: .06em; }
.article-body .hp-price b { color: var(--ink); }
.article-body .hp-price span { color: var(--ink-3) !important; }
.article-body .hp-updated { color: var(--ink-3) !important; }

/* Key takeaways — "in brief", between two black rules. */
.article-body .hp-takeaways, .article-body .hp-takeaways[style] {
    background: none !important; border: 0 !important;
    border-top: 1px solid var(--ink) !important; border-bottom: 1px solid var(--ink) !important;
    padding: 22px 0 14px !important; margin: 32px 0 36px !important;
}
.article-body .hp-takeaways > p:first-child, .article-body .hp-takeaways > p[style]:first-child {
    color: var(--accent) !important; font-family: var(--font-display); font-size: 11px !important; letter-spacing: .3em !important;
}
.article-body .hp-takeaways ul { font-size: 14.5px !important; line-height: 1.95 !important; }
.article-body .hp-takeaways li { margin: .35em 0; }

/* Photographs: the full width of the reading column. */
.article-body figure.hotel-photo { margin: 30px 0 34px !important; }
.article-body figure.hotel-photo img { width: 100% !important; height: auto !important; border-radius: 0 !important; }
.article-body figure.hotel-photo figcaption {
    margin-top: 10px !important; font-size: 11.5px !important; line-height: 1.7;
    letter-spacing: .08em !important; color: var(--ink-3) !important;
}
.article-body figure.hotel-photo figcaption a { color: var(--ink-2) !important; text-decoration-color: var(--rule-2) !important; }

/* Fit list (向く / 向かない) */
.article-body .hp-fit li, .article-body .hp-fit li[style] { border-bottom: 1px solid var(--rule) !important; padding: 10px 0 !important; }
.article-body .hp-fit li:last-child, .article-body .hp-fit li[style]:last-child { border-bottom: 0 !important; }
.article-body .hp-fit li strong, .article-body .hp-fit li strong[style] { color: var(--ink) !important; margin-right: .4em; }
.article-body .hp-fit li + li strong, .article-body .hp-fit li + li strong[style] { color: var(--accent) !important; }

/* Facts list */
.article-body .hp-facts { font-size: 14px !important; border-top: 1px solid var(--rule); }
.article-body .hp-facts li { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--rule); line-height: 1.85; }
.article-body .hp-facts li strong { color: var(--ink-2); margin-right: .3em; }

/* Deep dive aside */
.article-body .hp-deep, .article-body .hp-deep[style] { border-left: 1px solid var(--ink) !important; padding: 2px 0 2px 24px !important; margin: 32px 0 !important; background: none !important; }
.article-body .hp-deep > p:first-child, .article-body .hp-deep > p[style]:first-child { color: var(--accent) !important; font-family: var(--font-display); letter-spacing: .26em !important; font-size: 11px !important; }

/* Tables (comparison, architecture) */
.article-body .hp-compare, .article-body .hp-arch, .article-body table, .article-body table[style] {
    border-top: 1px solid var(--ink) !important; border-bottom: 1px solid var(--ink) !important;
}
.article-body table thead tr, .article-body table thead tr[style] { background: none !important; color: var(--ink) !important; }
.article-body table th { font-weight: 600 !important; font-size: 12px; letter-spacing: .06em; border-bottom: 1px solid var(--ink); }
.article-body table td { border-bottom: 1px solid var(--rule); }
.article-body table tr:last-child td { border-bottom: 0; }
.article-body table a { text-decoration-color: var(--rule-2); }

/* Sources, further reading, terms, method */
.article-body .hp-sources { font-size: 13px !important; color: var(--ink-2); }
.article-body .hp-next, .article-body .hp-next-read {
    list-style: none !important; padding: 0 !important; border-top: 1px solid var(--ink); font-size: 15px !important;
}
.article-body .hp-next li, .article-body .hp-next-read li { margin: 0; border-bottom: 1px solid var(--rule); }
.article-body .hp-next a, .article-body .hp-next-read a {
    display: block; padding: 12px 0; color: var(--ink) !important; text-decoration: none !important;
    font-family: var(--font-display); line-height: 1.75;
}
.article-body .hp-next a:hover, .article-body .hp-next-read a:hover { text-decoration: underline !important; text-underline-offset: 5px; }
.article-body li a[style*="color"], .article-body p a[style*="color"] { color: var(--ink) !important; }
.article-body .mp-method {
    list-style: none; padding: 0 !important; font-size: 13px !important; color: var(--ink-2);
    border-top: 1px solid var(--rule);
}
.article-body .mp-method li { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--rule); line-height: 1.85; }

/* Map + charts */
.article-body .hp-map, .article-body .hp-map[style] { border-color: var(--rule-2) !important; border-radius: 0 !important; }
.article-body .hp-map-hint { color: var(--ink-3) !important; }
.article-body figure.mp-chart { margin: 2.6em 0 !important; padding-top: 18px !important; border-top: 1px solid var(--ink); }
.mp-chart-cap { color: var(--ink-3) !important; font-size: 11.5px !important; letter-spacing: .04em; }
.mp-chart-table summary { color: var(--ink) !important; }

/* 「建築と意匠」 — a spec plate, like the title block of a drawing. */
.article-body .mp-box {
    margin: 32px 0 36px; padding: 0; background: var(--paper);
    border: 1px solid var(--ink); border-radius: 0; font-size: 14px; line-height: 1.8;
}
.article-body .mp-box .mp-box__title {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--ink);
    font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: .14em; color: var(--ink);
}
.article-body .mp-box--design .mp-box__title::after {
    content: 'Architecture'; flex: none; font-weight: 400; font-size: 10px; letter-spacing: .32em;
    text-transform: uppercase; color: var(--ink-3);
}
.article-body .mp-box .mp-box__list { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 0; margin: 0; }
.article-body .mp-box .mp-box__list dt,
.article-body .mp-box .mp-box__list dd { margin: 0; padding: 11px 18px; border-top: 1px solid var(--rule); }
.article-body .mp-box .mp-box__list dt:first-of-type,
.article-body .mp-box .mp-box__list dt:first-of-type + dd { border-top: 0; }
.article-body .mp-box .mp-box__list dt {
    border-right: 1px solid var(--rule); font-size: 12px; letter-spacing: .12em; color: var(--ink-3); font-weight: 400;
}
.article-body .mp-box .mp-box__list dd { color: var(--ink); }

/* Pages (about, editorial policy) */
.wb-page .article-body h2:first-child { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .wb-table-scroll {
        overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0 28px;
        background:
            linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left / 32px 100% no-repeat local,
            linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right / 32px 100% no-repeat local,
            radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .14), transparent) left / 10px 100% no-repeat scroll,
            radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .14), transparent) right / 10px 100% no-repeat scroll;
    }
    .wb-table-scroll > table { margin: 0 !important; }
    .article-body .wb-table-scroll > .hp-compare { position: static; left: auto; transform: none; width: 100%; }
}
@media (max-width: 760px) {
    .wb-article__tags { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .article-body { font-size: 15.5px; line-height: 2; }
    .article-body .mp-box .mp-box__list { grid-template-columns: 7em minmax(0, 1fr); }
    .article-body .mp-box .mp-box__list dt { letter-spacing: .04em; }
    .article-body .mp-box .mp-box__list dt, .article-body .mp-box .mp-box__list dd { padding: 10px 12px; }
    .article-body .mp-box .mp-box__list dd { margin: 0; }
    .article-body .mp-box .mp-box__title { padding: 11px 12px; }
    .author-card { padding: 18px; }
}
