/* ==========================================================================
   Hamu Nest — ハムスター.com
   ========================================================================== */

:root {
	--c-bg: #fffbf4;
	--c-surface: #ffffff;
	--c-text: #3a2e27;
	--c-muted: #7a6a5f;
	--c-line: #efe3d3;
	--c-primary: #d96f22;
	--c-primary-ink: #ffffff;
	--c-primary-soft: #fff0e0;
	--c-accent: #3f8f63;
	--c-accent-soft: #e6f4ea;
	--c-danger: #c0392b;
	--c-footer: #3a2e27;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(80, 50, 20, .06), 0 6px 20px rgba(80, 50, 20, .07);
	--font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	--font-round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", var(--font-body);
	--header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font-body); font-size: 16px; line-height: 1.8; font-feature-settings: "palt" 1; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-round); line-height: 1.4; letter-spacing: .02em; word-break: auto-phrase; text-wrap: pretty; }
.hero__title, .entry__title, .archive-head__title { word-break: auto-phrase; text-wrap: balance; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.container { max-width: 1160px; margin: 0 auto; padding: 16px; }
.container--narrow { max-width: 820px; }
.container--community { max-width: 980px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--c-line); background: var(--c-surface); color: var(--c-text); font-weight: 700; text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s, filter .15s; font-size: .95rem; white-space: nowrap; }
.btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--primary { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-ink); }
.btn--primary:hover { color: var(--c-primary-ink); filter: brightness(.94); }
.btn--block { display: flex; width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 251, 244, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--c-line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__inner { max-width: 1160px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.site-logo { margin: 0; font-size: 1.25rem; line-height: 1; }
.site-logo a, a.site-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--c-text); font-family: var(--font-round); font-weight: 800; letter-spacing: .02em; }
.site-logo__mark svg { width: 38px; height: 38px; display: block; }
.site-logo__text { white-space: nowrap; }
.site-logo { min-width: 0; }
/* 320px より狭い画面では、ヘッダーの中身を折り返して切れないようにする */
@media (max-width: 319px) { .site-header__inner { flex-wrap: wrap; row-gap: 6px; padding: 8px 12px; } }
.site-logo img { max-height: 44px; width: auto; }
.site-header__tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--c-text); cursor: pointer; }
.icon-btn:hover { background: var(--c-primary-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.header-login, .header-join { font-size: .85rem; font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.header-login { color: var(--c-text); }
.header-join { background: var(--c-primary); color: #fff; }
.header-user { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--c-text); font-size: .85rem; font-weight: 700; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1.5px solid var(--c-line); background: #fff; }
.header-user { position: relative; }
.header-user .hamu-dot { position: absolute; top: -4px; right: -4px; }
@media (max-width: 480px) { .header-login { display: none; } .header-user__label { display: none; } .header-user { padding: 3px; } .site-logo { font-size: 1.1rem; } }

.site-search { max-width: 720px; margin: 0 auto; padding: 0 16px 12px; }
.gnav { max-width: 1160px; margin: 0 auto; }
.gnav__list { list-style: none; margin: 0; padding: 0 12px 8px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gnav__list::-webkit-scrollbar { display: none; }
.gnav__list a { display: block; padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--c-text); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.gnav__list a:hover, .gnav__list .current-menu-item a, .gnav__list .current-cat a { background: var(--c-primary-soft); color: var(--c-primary); }
.gnav__item.is-forum a { background: var(--c-text); color: #fff; }
.gnav__item.is-forum a:hover { background: var(--c-primary); color: #fff; }
.gnav__item.is-talk a { background: linear-gradient(135deg, #ffa726, #f57c00); color: #fff; }
.gnav__item.is-talk a:hover { filter: brightness(1.06); color: #fff; }

/* Search form */
.search-form { display: flex; background: #fff; border: 2px solid var(--c-line); border-radius: 999px; overflow: hidden; transition: border-color .15s; }
.search-form:focus-within { border-color: var(--c-primary); }
.search-form input { flex: 1; min-width: 0; border: 0; padding: 12px 18px; font: inherit; font-size: 16px; background: transparent; color: var(--c-text); }
.search-form input:focus { outline: none; }
.search-form button { border: 0; background: var(--c-primary); color: #fff; width: 52px; display: grid; place-items: center; cursor: pointer; }
.search-form button svg { width: 20px; height: 20px; }

/* Hero */
.hero { background: radial-gradient(circle at 85% 20%, #ffd9ae 0, transparent 40%), radial-gradient(circle at 10% 90%, #ffe9cf 0, transparent 40%), linear-gradient(160deg, #fff3e3, #fffbf4 70%); border-bottom: 1px solid var(--c-line); overflow: hidden; }
.hero__inner { max-width: 1160px; margin: 0 auto; padding: 32px 16px 36px; display: grid; gap: 20px; align-items: center; }
.hero__title { font-family: var(--font-round); font-weight: 800; font-size: clamp(1.75rem, 6vw, 2.9rem); line-height: 1.3; margin: 0 0 12px; }
.hero__lead { margin: 0 0 20px; color: var(--c-muted); max-width: 36em; }
/* グリッドの子は既定で min-content より縮まない。検索欄がはみ出すため明示的に許可する */
.hero__text { min-width: 0; }
.hero .search-form { max-width: 520px; box-shadow: var(--shadow); }
.hero__art { position: relative; justify-self: center; width: min(260px, 60vw); }
.hero__art svg { width: 100%; filter: drop-shadow(0 12px 24px rgba(160, 90, 30, .18)); }
@media (prefers-reduced-motion: no-preference) { .hero__art svg { animation: hamu-bob 4s ease-in-out infinite; } }
@keyframes hamu-bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.hero__seed { position: absolute; width: 14px; height: 24px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: linear-gradient(90deg, #4a3a30 0 30%, #f2ead8 30% 45%, #4a3a30 45% 60%, #f2ead8 60% 75%, #4a3a30 75%); }
.hero__seed--1 { left: -6%; top: 62%; transform: rotate(-30deg); }
.hero__seed--2 { right: 0; top: 12%; transform: rotate(25deg); }
.hero__seed--3 { right: 12%; bottom: 2%; transform: rotate(70deg) scale(.8); }
@media (min-width: 860px) { .hero__inner { grid-template-columns: 1.4fr 1fr; padding: 56px 16px; } .hero__art { width: 280px; } }
@media (max-width: 859px) { .hero__art { display: none; } }

/* Sections */
.section { margin: 40px 0; }
.section__title { font-size: clamp(1.25rem, 3.5vw, 1.6rem); text-align: center; margin: 0 0 20px; }
.section__title span { display: inline-block; position: relative; padding-bottom: 6px; }
.section__title span::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--c-primary); }
.section__title--left { text-align: left; }
.section__title--left span::after { left: 0; margin-left: 0; }
.section__more { text-align: center; margin: 20px 0 0; }

/* Guide tiles */
.guide-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .guide-tiles { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.guide-tile { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; color: var(--c-text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.guide-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--c-primary); }
.guide-tile__icon { font-size: 1.8rem; line-height: 1.2; }
.guide-tile__name { font-family: var(--font-round); font-weight: 800; font-size: 1rem; line-height: 1.4; margin-top: 4px; }
.guide-tile__desc { font-size: .78rem; color: var(--c-muted); line-height: 1.5; }
.guide-tile__count { margin-top: auto; padding-top: 6px; font-size: .75rem; color: var(--c-primary); font-weight: 700; }
.guide-tile--forum { background: var(--c-text); color: #fff; border-color: var(--c-text); }
.guide-tile--forum .guide-tile__desc { color: #e8dccf; }
.guide-tile--forum .guide-tile__count { color: #ffc58f; }

/* Forum promo */
.forum-promo { background: linear-gradient(180deg, var(--c-primary-soft), transparent); border-radius: calc(var(--radius) + 8px); padding: 20px; }
@media (min-width: 720px) { .forum-promo { padding: 28px; } }
.forum-promo__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; align-items: flex-end; margin-bottom: 16px; }
.forum-promo__head .section__title { margin-bottom: 6px; }
.forum-promo__lead { margin: 0; color: var(--c-muted); font-size: .92rem; }
.forum-promo__btns { display: flex; gap: 8px; }

/* Cards */
.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .card-grid--small { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card__thumb { aspect-ratio: 16 / 10; background: #fff3e3; overflow: hidden; display: grid; place-items: center; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-fallback { width: 40%; opacity: .9; }
.card__body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.card__cat { align-self: flex-start; font-size: .72rem; font-weight: 700; color: var(--c-primary); background: var(--c-primary-soft); padding: 2px 10px; border-radius: 999px; }
.card__title { font-size: 1rem; margin: 0; line-height: 1.5; }
.card__excerpt { margin: 0; font-size: .85rem; color: var(--c-muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-list { display: grid; gap: 12px; }
.card--row .card__link { flex-direction: row; }
.card--row .card__thumb { width: 120px; flex: none; aspect-ratio: 1; }
@media (min-width: 720px) { .card--row .card__thumb { width: 220px; aspect-ratio: 16 / 10; } }
.card--row .card__body { justify-content: center; }

/* Layout with sidebar */
.layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.layout__main { min-width: 0; }
.sidebar { display: grid; gap: 20px; }
.sidebar__sticky { display: grid; gap: 20px; }
@media (min-width: 1024px) { .sidebar__sticky { position: sticky; top: calc(var(--header-h) + 60px); } }
.side-box { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px; }
.side-box__title { font-size: 1.05rem; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.side-box__title svg { width: 20px; height: 20px; color: var(--c-primary); }
.side-box__lead { font-size: .85rem; color: var(--c-muted); margin: 0 0 10px; }
.side-box--forum { background: linear-gradient(180deg, #fff4e6, #fff); }
.side-topics { list-style: none; margin: 0 0 14px; padding: 0; }
.side-topics li { padding: 8px 0; border-bottom: 1px dashed var(--c-line); font-size: .9rem; line-height: 1.5; }
.side-topics a { color: var(--c-text); text-decoration: none; font-weight: 700; }
.side-topics a:hover { color: var(--c-primary); }
.side-topics span { display: block; font-size: .72rem; color: var(--c-muted); }
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats li { border-bottom: 1px solid var(--c-line); font-size: .92rem; display: flex; justify-content: space-between; align-items: center; color: var(--c-muted); }
.side-cats li:last-child { border-bottom: 0; }
.side-cats a { display: block; padding: 8px 0; color: var(--c-text); text-decoration: none; flex: 1; }
.side-cats a:hover { color: var(--c-primary); }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 0; font-size: .78rem; color: var(--c-muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: inherit; }
.crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 20em; }

/* Archive */
.archive-head { margin-bottom: 20px; }
.archive-head__title { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0 0 6px; }
.archive-head__desc { color: var(--c-muted); font-size: .92rem; margin-bottom: 12px; }
.archive-head__desc p { margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0; }
.chips a { display: block; padding: 4px 12px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px; font-size: .82rem; color: var(--c-text); text-decoration: none; }
.chips a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chips--tags a::before { content: "#"; color: var(--c-muted); }
.empty { text-align: center; padding: 40px 20px; background: var(--c-surface); border-radius: var(--radius); border: 1px dashed var(--c-line); }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 28px 0; }
.nav-links .page-numbers { min-width: 42px; height: 42px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--c-line); background: var(--c-surface); text-decoration: none; color: var(--c-text); font-weight: 700; }
.nav-links .page-numbers.current { background: var(--c-text); color: #fff; border-color: var(--c-text); }
.nav-links .dots { border: 0; background: none; }

/* Entry */
.entry { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: calc(var(--radius) + 6px); padding: 20px 18px; }
@media (min-width: 720px) { .entry { padding: 36px 44px; } }
.entry__cat { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--c-primary); background: var(--c-primary-soft); padding: 2px 12px; border-radius: 999px; text-decoration: none; }
.entry__title { font-size: clamp(1.45rem, 4.5vw, 2.05rem); margin: 10px 0 10px; line-height: 1.45; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--c-muted); }
.entry__meta span { display: inline-flex; align-items: center; gap: 4px; }
.entry__meta svg { width: 14px; height: 14px; }
.entry__eyecatch { margin: 18px 0 0; }
.entry__eyecatch img { border-radius: var(--radius); width: 100%; }
.entry__content { margin-top: 24px; font-size: 1.03rem; line-height: 2; overflow-wrap: anywhere; }
.entry__content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry__content h2 { font-size: clamp(1.25rem, 3.6vw, 1.5rem); margin: 2.4em 0 1em; padding: 12px 16px 12px 18px; background: var(--c-primary-soft); border-radius: 10px; border-left: 6px solid var(--c-primary); line-height: 1.5; }
.entry__content h3 { font-size: clamp(1.1rem, 3vw, 1.25rem); margin: 2em 0 .8em; padding-bottom: 6px; border-bottom: 2px dashed var(--c-line); }
.entry__content h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c-primary); margin-right: 8px; vertical-align: 2px; }
.entry__content h4 { font-size: 1.05rem; margin: 1.6em 0 .6em; }
.entry__content img { border-radius: 10px; height: auto; }
.entry__content figure { margin-left: 0; margin-right: 0; }
.entry__content figcaption { font-size: .8rem; color: var(--c-muted); text-align: center; }
.entry__content ul, .entry__content ol { padding-left: 1.4em; }
.entry__content li { margin-bottom: .3em; }
.entry__content blockquote { margin-left: 0; padding: 12px 18px; border-left: 4px solid var(--c-line); background: var(--c-bg); border-radius: 0 10px 10px 0; color: var(--c-muted); }
.entry__content table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.entry__content th, .entry__content td { border: 1px solid var(--c-line); padding: 8px 12px; text-align: left; vertical-align: top; }
.entry__content th { background: var(--c-primary-soft); white-space: nowrap; }
.entry__content strong, .entry__content b { background: linear-gradient(transparent 62%, #ffe3a8 62%); }
.entry__content hr { border: 0; border-top: 2px dashed var(--c-line); margin: 2em 0; }
.entry__content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry__content .alignleft { float: left; margin: 0 1em 1em 0; }
.entry__content .alignright { float: right; margin: 0 0 1em 1em; }
@media (max-width: 560px) { .entry__content .alignleft, .entry__content .alignright { float: none; margin: 0 auto 1em; display: block; } }
.entry__foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--c-line); display: grid; gap: 14px; }

/* TOC */
.toc { background: var(--c-bg); border: 1.5px solid var(--c-line); border-radius: var(--radius); padding: 4px 18px; margin: 1.5em 0 2em !important; font-size: .95rem; }
.toc summary { cursor: pointer; font-family: var(--font-round); font-weight: 800; padding: 10px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: "📖"; }
.toc summary::after { content: "▾"; margin-left: auto; color: var(--c-muted); transition: transform .2s; }
.toc details:not([open]) summary::after { transform: rotate(-90deg); }
.toc__list, .toc__list ol { margin: 0; padding-left: 1.3em; line-height: 1.7; }
.toc__list { padding-bottom: 12px; counter-reset: toc; }
.toc__list > li { margin: 4px 0; }
.toc__list ol { font-size: .9em; list-style: circle; }
.toc a { color: var(--c-text); text-decoration: none; }
.toc a:hover { color: var(--c-primary); text-decoration: underline; }

/* Share */
.share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.share__label { font-size: .8rem; color: var(--c-muted); font-weight: 700; margin-right: 4px; }
.share__btn { padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; border: 1.5px solid var(--c-line); background: #fff; color: var(--c-text); cursor: pointer; }
.share__btn--x { background: #111; border-color: #111; color: #fff; }
.share__btn--line { background: #06c755; border-color: #06c755; color: #fff; }
.share__btn--fb { background: #1877f2; border-color: #1877f2; color: #fff; }

/* Ask box (article → forum) */
.ask-box { display: flex; gap: 16px; align-items: center; margin: 28px 0; padding: 20px; background: linear-gradient(135deg, #fff1df, #fff8ee); border: 2px solid #ffd9b3; border-radius: calc(var(--radius) + 6px); }
.ask-box__art { width: 72px; flex: none; }
.ask-box__title { margin: 0 0 4px; font-size: 1.15rem; }
.ask-box p { margin: 0 0 12px; font-size: .92rem; color: var(--c-muted); }
.ask-box__btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .ask-box { flex-direction: column; text-align: center; } .ask-box__btns { justify-content: center; } }

.post-nav { display: grid; gap: 10px; margin: 28px 0; font-size: .9rem; }
@media (min-width: 720px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: 14px 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; color: var(--c-text); font-weight: 700; height: 100%; }
.post-nav__next { text-align: right; }

/* Join CTA */
.join-cta { display: grid; gap: 16px; align-items: center; padding: 24px; margin: 40px 0; border-radius: calc(var(--radius) + 8px); background: var(--c-text); color: #fff; }
.join-cta__art { width: 80px; }
.join-cta__title { margin: 0 0 6px; font-size: 1.3rem; }
.join-cta p { margin: 0; color: #e8dccf; font-size: .92rem; }
@media (min-width: 720px) { .join-cta { grid-template-columns: auto 1fr auto; padding: 28px 36px; } }

/* Ads */
.ad { margin: 28px auto; text-align: center; min-height: 100px; clear: both; }
.ad__label { display: block; font-size: .7rem; color: var(--c-muted); letter-spacing: .1em; margin-bottom: 4px; }
.sidebar .ad { margin: 0; }
.entry__content .ad { margin: 2em 0; }

/* Comments */
.comments { margin: 28px 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.comment-list .children { list-style: none; padding-left: 16px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--c-line); border-radius: 10px; font: inherit; font-size: 16px; }
.comment-form .submit { background: var(--c-primary); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 700; cursor: pointer; }

/* 404 */
.notfound { text-align: center; padding: 40px 0; }
.notfound__art { width: 140px; margin: 0 auto; transform: rotate(180deg); }
.notfound__title { font-size: 1.6rem; }
.notfound .search-form { max-width: 480px; margin: 20px auto; }

/* Footer */
.site-footer { margin-top: 60px; background: var(--c-footer); color: #e8dccf; font-size: .9rem; }
.site-footer__inner { max-width: 1160px; margin: 0 auto; padding: 40px 16px 20px; display: grid; gap: 28px; }
@media (min-width: 860px) { .site-footer__inner { grid-template-columns: 1fr 2fr; } }
.site-logo--footer { color: #fff !important; font-size: 1.2rem; }
.site-footer__brand p { margin: 10px 0 0; color: #cbbcae; font-size: .85rem; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.site-footer__h { font-weight: 800; color: #fff; margin: 0 0 8px; font-family: var(--font-round); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: #e8dccf; text-decoration: none; }
.site-footer a:hover { color: #ffc58f; text-decoration: underline; }
.site-footer__copy { text-align: center; margin: 0; padding: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; color: #a8998b; }

.to-top { position: fixed; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.to-top.is-shown { opacity: 1; pointer-events: auto; }
.to-top svg { width: 24px; height: 24px; }

/* Community pages sit in the theme container */
.container--community .hamu-main { padding: 0; }
.foster-promo { background: linear-gradient(180deg, var(--c-accent-soft), transparent); border-radius: calc(var(--radius) + 8px); padding: 20px; }
@media (min-width: 720px) { .foster-promo { padding: 28px; } }
.topic-promo { margin: 28px 0; }
.ht-top { padding: 14px 0 6px; }
