/*
Theme Name: Dodode
Theme URI: https://dodode.net/
Description: 「ドウデモヨクナイ」用オリジナルテーマ。恋愛・人間関係・こころ・仕事の4つの悩みカテゴリ（ハブページ）を入口にした、セルフチェック型サービスのためのテーマです。
Version: 1.3.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dodode
*/

:root {
	--ivory: #FBF8F1;
	--paper: #FFFFFF;
	--ink: #27352E;
	--ink-soft: #5C6B63;
	--sage: #7FA08C;
	--sage-deep: #3E6351;
	--sage-tint: #E7EFE8;
	--pink: #D49A97;
	--line: #E3DED2;
	--hub: var(--sage);
	--hub-tint: var(--sage-tint);
	--round: 16px;
	--display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
	--body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.85 var(--body); overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--sage-deep); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.45; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dd-skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip-path: none; z-index: 10; background: var(--paper); padding: 8px 14px; }

.dd-wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }
.dd-narrow { max-width: 720px; }
.dd-icon { flex: none; }

/* ---------------------------------------------------------------- header */
.dd-header { background: #f9f6f3; border-bottom: 1px solid var(--line); }
.dd-header__in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding-top: 12px; }
.dd-nav { grid-column: 1 / -1; }
.dd-header__check { background: var(--sage-deep); color: #fff; font: 700 13px/1.4 var(--display); padding: 7px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.dd-logo { margin: 0; font: 700 20px/1.3 var(--display); letter-spacing: .04em; }
.dd-logo a { color: var(--ink); text-decoration: none; }
.dd-logo span { color: var(--pink); }
.dd-logo img { max-height: 44px; width: auto; }
.dd-nav ul { display: flex; }
.dd-nav li { flex: 1; }
.dd-nav a { display: block; text-align: center; padding: 8px 0 10px; font: 700 14px/1.4 var(--display); color: var(--ink-soft); text-decoration: none; border-bottom: 3px solid transparent; }
.dd-nav a:hover, .dd-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--hub); }

/* ---------------------------------------------------------------- common */
.dd-sec { padding: 36px 0; }
.dd-sec--tight { padding: 20px 0; }
.dd-sec--tint { background: var(--hub-tint); }
.dd-h2 { font-size: 20px; margin-bottom: 16px; }
.dd-sec__lead { margin: -8px 0 18px; font-size: 14px; color: var(--ink-soft); }
.dd-more { margin: 20px 0 0; text-align: center; }
.dd-empty { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--round); padding: 20px; color: var(--ink-soft); }

.dd-btn { display: inline-block; background: var(--sage-deep); color: #fff; font: 700 15px/1.4 var(--display); padding: 13px 26px; border-radius: 999px; text-decoration: none; border: 2px solid var(--sage-deep); transition: transform .15s; }
.dd-btn--ghost { background: transparent; color: var(--sage-deep); }
a.dd-btn:hover, a:hover > .dd-btn { transform: translateY(-2px); }

.dd-search { display: flex; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.dd-search:focus-within { outline: 3px solid var(--sage); outline-offset: 2px; }
.dd-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 8px 12px 20px; outline: none; }
.dd-search button { border: 0; background: var(--ink); color: #fff; font: 700 15px var(--display); padding: 0 22px; cursor: pointer; }

.dd-crumb { font-size: 12px; color: var(--ink-soft); padding: 14px 0 0; }
.dd-crumb ol { display: flex; flex-wrap: wrap; }
.dd-crumb li + li::before { content: "/"; margin: 0 .6em; opacity: .5; }
.dd-crumb a { color: inherit; }
.dd-crumb li[aria-current] { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 60vw; }

/* ---------------------------------------------------------------- cards */
.dd-cards { display: grid; gap: 12px; }
.dd-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; background: var(--paper); border-radius: var(--round); padding: 10px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.dd-card:hover { border-color: var(--ink); }
.dd-card__img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--hub-tint); }
.dd-card__img img { width: 100%; height: 100%; object-fit: cover; }
.dd-card__body { display: block; }
.dd-card__hub { display: inline-block; font: 700 12px/1 var(--display); color: var(--ink); padding: 0 0 3px; margin-bottom: 6px; border-bottom: 3px solid var(--hub); }
.dd-card__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 700 15px/1.55 var(--display); }

/* ---------------------------------------------------------------- top hero */
.dd-hero { position: relative; overflow: hidden; padding: 36px 0 28px; }
.dd-hero::before { content: ""; position: absolute; width: 300px; height: 300px; right: -110px; top: -90px; border: 44px solid var(--pink); border-radius: 50%; opacity: .28; }
.dd-hero__in { position: relative; display: grid; gap: 28px; }
.dd-hero__kicker { font: 700 14px/1.4 var(--display); color: var(--sage-deep); margin-bottom: 10px; }
.dd-hero h1 { font-size: clamp(34px, 9.4vw, 58px); line-height: 1.3; letter-spacing: .02em; }
.dd-hero__lead { margin: 16px 0 0; color: var(--ink-soft); max-width: 30em; }

.dd-ask { position: relative; background: var(--paper); border: 2px solid var(--ink); border-radius: 24px; padding: 20px 16px 16px; }
.dd-ask::before { content: ""; position: absolute; top: -11px; left: 36px; width: 18px; height: 18px; background: var(--paper); border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg); }
.dd-ask__q { font-size: 18px; margin-bottom: 14px; }
.dd-ask__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dd-ask__list a { display: grid; gap: 2px; height: 100%; background: var(--hub-tint); border-radius: var(--round); padding: 14px 14px 12px; color: var(--ink); text-decoration: none; border: 2px solid transparent; transition: transform .15s; }
.dd-ask__list a:hover { border-color: var(--hub); transform: translateY(-2px); }
.dd-ask__list .dd-icon { color: var(--hub); width: 28px; height: 28px; stroke-width: 2; }
.dd-ask__list strong { font: 700 18px/1.4 var(--display); }
.dd-ask__list small { font-size: 12px; line-height: 1.5; color: var(--ink-soft); }

/* ---------------------------------------------------------------- top hub rows */
.dd-hubrow { border-top: 1px solid var(--line); }
.dd-hubrow__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.dd-hubrow__head .dd-h2 { margin-bottom: 4px; }
.dd-hubrow__head p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.dd-hubrow__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--hub-tint); color: var(--hub); }

/* ---------------------------------------------------------------- check CTA */
.dd-checks { display: grid; gap: 12px; }
.dd-check { display: grid; gap: 6px; justify-items: start; background: var(--hub-tint); border-radius: 24px; padding: 22px 20px; color: var(--ink); text-decoration: none; border-left: 8px solid var(--hub); }
.dd-check__label { font: 700 13px/1.4 var(--display); color: var(--ink-soft); }
.dd-check__title { font: 700 20px/1.45 var(--display); }
.dd-check__text { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.dd-content .dd-check { margin: 2em 0; }

/* ---------------------------------------------------------------- hub page */
.dd-hubfv { background: var(--hub-tint); padding: 0 0 32px; border-bottom-left-radius: 32px; border-bottom-right-radius: 32px; }
.dd-hubfv__name { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font: 700 14px/1.4 var(--display); }
.dd-hubfv__name .dd-icon { color: var(--hub); }
.dd-hubfv h1 { font-size: clamp(26px, 7vw, 42px); }
.dd-hubfv__lead { margin: 12px 0 22px; color: var(--ink-soft); max-width: 34em; }
.dd-hubfv .dd-search { max-width: 560px; }

.dd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dd-chips a { display: block; background: var(--paper); border: 2px solid var(--hub); border-radius: 999px; padding: 7px 16px; font: 700 14px/1.5 var(--display); color: var(--ink); text-decoration: none; }
.dd-chips a:hover { background: var(--hub-tint); }

.dd-guide { display: grid; gap: 14px; }
.dd-topic { background: var(--paper); border-radius: var(--round); padding: 20px; border-top: 6px solid var(--hub); }
.dd-topic h3 { font-size: 18px; }
.dd-topic__desc { font-size: 13px; color: var(--ink-soft); margin: 2px 0 0; }
.dd-topic__list { margin-top: 10px; }
.dd-topic__list li { border-top: 1px solid var(--line); }
.dd-topic__list a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.6; }
.dd-topic__list a:hover { color: var(--sage-deep); text-decoration: underline; }
.dd-topic__more { margin-top: 6px; background: none; border: 0; padding: 8px 0; font: 700 14px var(--display); color: var(--sage-deep); text-decoration: underline; cursor: pointer; }

.dd-support { display: grid; gap: 4px; justify-items: start; background: var(--paper); border: 2px solid var(--ink); border-radius: 24px; padding: 22px 20px; color: var(--ink); text-decoration: none; }
.dd-support strong { font: 700 18px var(--display); }
.dd-support span:not(.dd-btn) { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }

.dd-faq details { background: var(--paper); border-radius: var(--round); border: 1px solid var(--line); margin-bottom: 10px; }
.dd-faq summary { cursor: pointer; padding: 16px 20px; font: 700 15px/1.6 var(--display); }
.dd-faq p { margin: 0; padding: 0 20px 18px; font-size: 15px; color: var(--ink-soft); }

.dd-others { display: grid; gap: 10px; }
.dd-others a { display: flex; align-items: center; gap: 10px; background: var(--hub-tint); border-radius: var(--round); padding: 14px 16px; font: 700 15px/1.5 var(--display); color: var(--ink); text-decoration: none; border: 2px solid transparent; }
.dd-others a:hover { border-color: var(--hub); }
.dd-others .dd-icon { color: var(--hub); }

/* ---------------------------------------------------------------- list */
.dd-list { padding-bottom: 48px; }
.dd-list__title { font-size: 24px; margin: 20px 0; }
.dd-list__desc { color: var(--ink-soft); margin-bottom: 20px; }
.dd-list .dd-others { margin-top: 40px; }
.dd-list .dd-search { margin-top: 16px; max-width: 560px; }
.dd-pagination { margin-top: 28px; }
.dd-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.dd-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.dd-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------------- article */
.dd-article { padding-bottom: 48px; }
.dd-article__head { margin: 18px 0 28px; }
.dd-article__hub { margin: 0 0 8px; font: 700 13px var(--display); }
.dd-article__hub a { color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--hub); padding-bottom: 2px; }
.dd-article__head h1 { font-size: clamp(24px, 6.4vw, 34px); }
.dd-article__date { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }
.dd-article__eye { margin-top: 18px; border-radius: var(--round); overflow: hidden; }
.dd-article__eye img { width: 100%; }

.dd-content { font-size: 16px; }
.dd-content > * { margin-top: 0; margin-bottom: 1.5em; }
.dd-content h2 { font-size: 22px; margin: 2.4em 0 1em; padding: 14px 18px; background: var(--hub-tint); border-left: 8px solid var(--hub); border-radius: 0 12px 12px 0; }
.dd-content h3 { font-size: 19px; margin: 2em 0 .8em; padding-bottom: 8px; border-bottom: 3px solid var(--hub); }
.dd-content h4 { font-size: 17px; margin: 1.8em 0 .6em; }
.dd-content ul, .dd-content ol { padding-left: 1.5em; }
.dd-content ul { list-style: disc; }
.dd-content ol { list-style: decimal; }
.dd-content li { margin-bottom: .4em; }
.dd-content li::marker { color: var(--hub); }
.dd-content blockquote { margin-inline: 0; padding: 16px 20px; background: var(--paper); border-radius: 12px; border: 1px solid var(--line); color: var(--ink-soft); }
.dd-content blockquote > :last-child { margin-bottom: 0; }
.dd-content table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 14px; }
.dd-content th, .dd-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.dd-content th { background: var(--hub-tint); }
.dd-content .wp-block-table, .dd-content figure { margin-inline: 0; overflow-x: auto; }
.dd-content img { border-radius: 12px; }
.dd-content figcaption { font-size: 13px; color: var(--ink-soft); text-align: center; }
.dd-content strong { background: linear-gradient(transparent 62%, var(--hub-tint) 62%); }
.dd-content .alignwide, .dd-content .alignfull { max-width: 100%; }
.dd-content iframe { max-width: 100%; }

.dd-related { margin-top: 48px; }
.dd-backhub { display: flex; gap: 14px; align-items: center; margin-top: 32px; background: var(--hub-tint); border-radius: 24px; padding: 18px 20px; color: var(--ink); text-decoration: none; border: 2px solid transparent; }
.dd-backhub:hover { border-color: var(--hub); }
.dd-backhub .dd-icon { width: 32px; height: 32px; color: var(--hub); }
.dd-backhub span { font-size: 14px; color: var(--ink-soft); }
.dd-backhub strong { display: block; font: 700 16px var(--display); color: var(--ink); }

/* ---------------------------------------------------------------- footer */
.dd-footer { background: var(--ink); color: #E9EEE9; padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; }
.dd-footer a { color: #fff; }
.dd-footer .dd-logo a { color: #fff; }
.dd-footer__grid { display: grid; gap: 28px; }
.dd-footer__tag { margin: 10px 0 0; color: #B9C6BD; font-size: 13px; }
.dd-footer__h { font: 700 14px var(--display); margin-bottom: 8px; color: #fff; }
.dd-footer__note { font-size: 13px; color: #B9C6BD; margin-bottom: 6px; }
.dd-footer li { margin-bottom: 6px; }
.dd-footer__menu { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); }
.dd-footer__menu ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.dd-footer__disclaimer { margin: 24px 0 8px; font-size: 12px; color: #B9C6BD; }
.dd-footer__copy { margin: 0; font-size: 12px; color: #B9C6BD; }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 720px) {
	.dd-header__in { grid-template-columns: 1fr auto auto; padding-top: 0; }
	.dd-nav { grid-column: 2; grid-row: 1; }
	.dd-header__check { font-size: 14px; padding: 9px 18px; }
	.dd-logo { font-size: 22px; }
	.dd-nav li { flex: none; }
	.dd-nav a { padding: 22px 18px 19px; font-size: 15px; }
	.dd-sec { padding: 56px 0; }
	.dd-sec--tight { padding: 28px 0; }
	.dd-h2 { font-size: 24px; margin-bottom: 22px; }
	.dd-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.dd-cards--2 { grid-template-columns: repeat(2, 1fr); }
	.dd-card { grid-template-columns: 1fr; align-content: start; padding: 12px 12px 16px; }
	.dd-card__img { aspect-ratio: 16 / 10; }
	.dd-card__body { padding: 0 4px; }
	.dd-cards--2 .dd-card { grid-template-columns: 120px 1fr; padding: 10px; }
	.dd-cards--2 .dd-card__img { aspect-ratio: 4 / 3; }
	.dd-hero { padding: 72px 0 56px; }
	.dd-hero::before { width: 460px; height: 460px; border-width: 64px; right: auto; left: 38%; top: -200px; }
	.dd-hero__in { grid-template-columns: 1fr 440px; align-items: center; gap: 48px; }
	.dd-ask { padding: 28px 24px 24px; }
	.dd-ask::before { top: 56px; left: -11px; transform: rotate(-45deg); }
	.dd-ask__q { font-size: 20px; }
	.dd-checks { grid-template-columns: repeat(3, 1fr); }
	.dd-hubfv { padding-bottom: 48px; }
	.dd-guide { grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
	.dd-others { grid-template-columns: repeat(3, 1fr); }
	.dd-list .dd-others { grid-template-columns: repeat(4, 1fr); }
	.dd-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
	.dd-content { font-size: 17px; }
}

/* ---------------------------------------------------------------- single layout / sidebar */
.dd-single__main { max-width: 720px; margin-inline: auto; }
.dd-side { display: none; }
.dd-article__cta { margin-top: 40px; }
.dd-cards--list { grid-template-columns: 1fr !important; }
@media (min-width: 720px) {
	.dd-cards--list .dd-card { grid-template-columns: 120px 1fr; padding: 10px; }
	.dd-cards--list .dd-card__img { aspect-ratio: 4 / 3; }
	.dd-others--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
	.dd-single { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 40px; align-items: start; }
	.dd-single__main { margin: 0; max-width: none; }
	.dd-side { display: grid; gap: 20px; padding-top: 48px; }
	.dd-side__hub { display: grid; gap: 6px; justify-items: start; background: var(--hub-tint); border-radius: 20px; padding: 20px; color: var(--ink); text-decoration: none; }
	.dd-side__hub .dd-icon { width: 30px; height: 30px; color: var(--hub); }
	.dd-side__hub strong { font: 700 17px/1.5 var(--display); }
	.dd-side__hub span:not(.dd-btn) { font-size: 13px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 8px; }
	.dd-side__hub .dd-btn { font-size: 13px; padding: 9px 18px; }
	.dd-side .dd-check { border-radius: 20px; padding: 18px 18px 18px 14px; }
	.dd-side .dd-check__title { font-size: 17px; margin-bottom: 8px; }
	.dd-side .dd-check .dd-btn { font-size: 13px; padding: 9px 18px; }
	.dd-side__box { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
	.dd-side__box h2 { font-size: 16px; margin-bottom: 8px; }
	.dd-side__list li { border-top: 1px solid var(--line); }
	.dd-side__list li:first-child { border-top: 0; }
	.dd-side__list a { display: block; padding: 11px 0; font-size: 14px; line-height: 1.6; color: var(--ink); text-decoration: none; }
	.dd-side__list a:hover { color: var(--sage-deep); text-decoration: underline; }
	.dd-others--side { grid-template-columns: 1fr; gap: 8px; }
	.dd-others--side a { font-size: 14px; padding: 11px 14px; }
}

/* ---------------------------------------------------------------- self check */
.dd-checkpage { padding-bottom: 24px; }
.dd-quiz { margin-top: 20px; background: var(--paper); border: 2px solid var(--ink); border-radius: 24px; padding: 28px 20px; scroll-margin-top: 12px; }
.dd-quiz__hub { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 13px var(--display); }
.dd-quiz__hub .dd-icon { color: var(--hub); }
.dd-quiz h1 { font-size: clamp(24px, 6.4vw, 32px); }
.dd-quiz__lead { margin: 10px 0 18px; color: var(--ink-soft); }
.dd-quiz__facts { margin-bottom: 24px; background: var(--hub-tint); border-radius: var(--round); padding: 14px 18px 14px 36px; list-style: disc; font-size: 14px; }
.dd-quiz__bar { height: 8px; background: var(--hub-tint); border-radius: 999px; overflow: hidden; }
.dd-quiz__bar span { display: block; height: 100%; background: var(--hub); border-radius: 999px; }
.dd-quiz__count { margin: 10px 0 14px; font: 700 13px var(--display); color: var(--ink-soft); }
.dd-quiz__step h2 { font-size: 20px; margin-bottom: 20px; outline: none; }
.dd-quiz__opts { display: grid; gap: 10px; }
.dd-quiz__opts button { min-height: 56px; text-align: left; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 12px 18px; font: 700 15px/1.5 var(--display); cursor: pointer; transition: transform .1s; }
.dd-quiz__opts button:hover { background: var(--hub-tint); border-color: var(--hub); }
.dd-quiz__opts button:active { transform: scale(.98); }
.dd-quiz__opts button[aria-pressed="true"] { background: var(--hub-tint); border-color: var(--hub); }
.dd-quiz__back { margin-top: 18px; background: none; border: 0; padding: 8px 0; font-size: 14px; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.dd-quiz__note { margin: 16px 0 0; font-size: 12px; color: var(--ink-soft); }
.dd-result__label { margin: 0 0 6px; font: 700 13px var(--display); color: var(--ink-soft); }
.dd-result h2 { font-size: clamp(30px, 8vw, 40px); outline: none; display: inline; background: linear-gradient(transparent 60%, var(--hub-tint) 60%); }
.dd-result__heading { margin: 12px 0 14px; font: 700 17px/1.6 var(--display); }
.dd-result__advice { margin-bottom: 28px; }
.dd-result h3 { font-size: 17px; margin-bottom: 12px; }
.dd-result .dd-support { margin-top: 24px; border-width: 1px; border-color: var(--line); background: var(--ivory); }
.dd-result__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.dd-result__actions .dd-btn { cursor: pointer; }
@media (min-width: 720px) {
	.dd-quiz { padding: 40px; }
	.dd-quiz__step h2 { font-size: 24px; }
	.dd-quiz__opts button { min-height: 64px; font-size: 16px; }
}

/* ---------------------------------------------------------------- chat guide */
.dd-chat { position: fixed; z-index: 1000; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; justify-items: end; gap: 10px; pointer-events: none; }
.dd-chat > * { pointer-events: auto; }
.dd-chat-off .dd-chat { display: none; }
.dd-chat__launch { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; background: var(--sage-deep); color: #fff; border: 2px solid #fff; border-radius: 999px; font: 700 15px var(--display); cursor: pointer; box-shadow: 0 6px 18px rgba(39, 53, 46, .28); }
.dd-chat__tip { position: relative; display: flex; align-items: flex-start; max-width: 280px; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px 18px 4px 18px; box-shadow: 0 6px 18px rgba(39, 53, 46, .16); animation: dd-chat-in .25s ease-out; }
.dd-chat__tip-open { display: grid; gap: 2px; text-align: left; background: none; border: 0; padding: 12px 4px 12px 16px; cursor: pointer; }
.dd-chat__tip-open strong { font: 700 14px/1.5 var(--display); }
.dd-chat__tip-open span { font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.dd-chat__tip-close, .dd-chat__close { flex: none; width: 40px; height: 40px; background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; }
.dd-chat__panel { display: flex; flex-direction: column; width: calc(100vw - 24px); max-width: 380px; max-height: min(560px, 70dvh); margin-right: -4px; background: var(--ivory); border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 32px rgba(39, 53, 46, .28); animation: dd-chat-in .2s ease-out; }
.dd-chat__panel[hidden] { display: none; }
.dd-chat__head { display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; padding: 6px 4px 6px 16px; }
.dd-chat__head p { margin: 0; display: grid; }
.dd-chat__head strong { font: 700 15px/1.5 var(--display); }
.dd-chat__head span { font-size: 11px; line-height: 1.5; opacity: .75; }
.dd-chat__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; outline: none; }
.dd-chat__msg { margin: 0; max-width: 86%; padding: 10px 14px; font-size: 14px; line-height: 1.6; border-radius: 16px; }
.dd-chat__msg--bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.dd-chat__msg--user { align-self: flex-end; background: var(--sage-deep); color: #fff; border-bottom-right-radius: 4px; }
.dd-chat__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.dd-chat__opt { min-height: 44px; background: var(--paper); border: 2px solid var(--hub); border-radius: 999px; padding: 8px 16px; font: 700 14px/1.4 var(--display); cursor: pointer; }
.dd-chat__opt:hover { background: var(--sage-tint); }
.dd-chat__opt--sub { border: 0; background: none; padding-inline: 6px; font-weight: 500; color: var(--ink-soft); text-decoration: underline; }
.dd-chat__result { display: grid; gap: 8px; }
.dd-chat__label { margin: 6px 0 0; font: 700 12px var(--display); color: var(--ink-soft); }
.dd-chat__post { display: block; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--hub); border-radius: 12px; padding: 10px 12px; font: 700 13px/1.55 var(--display); color: var(--ink); text-decoration: none; }
.dd-chat__post:hover { border-color: var(--hub); }
.dd-chat__check { display: grid; gap: 2px; background: var(--hub-tint); border-radius: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; border: 2px solid transparent; }
.dd-chat__check:hover { border-color: var(--hub); }
.dd-chat__check strong { font: 700 14px/1.5 var(--display); }
.dd-chat__check span { font-size: 12px; color: var(--ink-soft); }
.dd-chat__hublink { font-size: 13px; padding: 4px 2px; }
@keyframes dd-chat-in { from { opacity: 0; transform: translateY(8px); } }
.dd-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) {
	.dd-chat { right: 24px; bottom: 24px; }
	.dd-chat__launch { height: 56px; }
	.dd-chat__panel { width: 380px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}
