/* Original standalone presentation. Copyright 2026 MOTOKI. GPL-2.0-or-later.
 * Inherited by child themes unless overridden. User block styles remain authoritative. */
.siteframe-base-header { border-bottom: 0; padding-block: 1.5rem; gap: 1.5rem; }
:where(.siteframe-base-footer) { margin-block-start: 5rem; padding-block: 3rem; }
:where(.siteframe-base-footer .wp-block-site-title) { font-size: clamp(2rem, 6vw, 5rem); }
.siteframe-base-main { padding-block-start: 2rem; }
:where(.siteframe-base-section) { padding-block: clamp(3rem, 7vw, 7rem); }
:where(.siteframe-base-hero) { padding-block: 1rem clamp(3rem, 6vw, 6rem); }
:where(.siteframe-base-kicker) { font-size: .75rem; font-weight: 700; letter-spacing: .16em; }
:where(.siteframe-base-hero h1) { line-break: strict; white-space: pre-line; }
.wp-block-group.siteframe-base-card { padding: clamp(1.5rem, 3vw, 2.5rem); height: 100%; border-radius: var(--wp--custom--siteframe--radius--card, 16px); }
:where(.siteframe-base-rule) { border-top: 1px solid #d9e1dc; }
:where(.siteframe-base-news .wp-block-post-template > li) { padding-block: 1.5rem; border-top: 1px solid #d9e1dc; }
:where(.siteframe-base-news .wp-block-post-title) { font-size: 1.2rem; }
:where(.siteframe-base-art img) { width: 100%; border-radius: 24px; }
:where(.wp-block-post-template) { padding-inline-start: 0; }
@media (max-width: 781px) {
 :where(.siteframe-base-hero .wp-block-columns) { gap: 2rem; }
 :where(.siteframe-base-art) { max-width: 34rem; }
}

.wp-block-group.siteframe-base-contact { padding: clamp(1.5rem, 5vw, 4rem); border-radius: 24px; margin-block-start: 3rem; }
:where(.siteframe-base-contact h2) { max-width: 24ch; }
:where(.siteframe-base-profile table) { border-collapse: collapse; }
:where(.siteframe-base-profile td) { border: 0; border-block-end: 1px solid #d9e1dc; padding: 1.5rem .75rem; }
:where(.siteframe-base-profile td:first-child) { width: 30%; font-weight: 700; }
:where(.siteframe-base-section .wp-block-column h3) { line-height: 1.6; }
:where(.siteframe-base-header .wp-block-navigation) { margin-inline-start: auto; }
@media (max-width: 600px) {
 :where(.siteframe-base-profile td) { padding: 1rem .5rem; }
}

/* Corporate prototype: edit these tokens or use Site Editor block styles. */
.siteframe-base-header { max-width: 1440px; min-height: 96px; padding-block: 1rem; box-sizing: border-box; }
.siteframe-base-main { padding-block-start: 0; }
.wp-block-group:is(.siteframe-base-main-visual, .siteframe-base-page-visual) {
 position: relative; max-width: 1440px; margin-block: 0 3rem;
}
.wp-block-group:is(.siteframe-base-main-visual, .siteframe-base-page-visual) > :is(.wp-block-gallery, .wp-block-image.is-style-siteframe-visual) { max-width: none; margin-block-start: 0; }
.wp-block-group.siteframe-base-visual-copy {
 position: absolute; top: clamp(2rem, 8vw, 8rem); left: clamp(1.5rem, 8vw, 8rem);
 right: 1.5rem; max-width: 700px; margin: 0; margin-inline: 0 !important; padding: 0;
}
.siteframe-base-visual-copy h1 { font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.45; white-space: pre-line; }
.siteframe-base-main-visual { --siteframe-visual-ratio: 3.375; --siteframe-visual-ratio-mobile: 1.5; }
.siteframe-base-page-visual { --siteframe-visual-ratio: 4.2; --siteframe-visual-ratio-mobile: 2.1; }
.wp-block-group.siteframe-base-visual-title {
 position: absolute; top: 50%; left: clamp(1.5rem, 8vw, 8rem); transform: translateY(-50%);
 margin: 0; margin-inline: 0 !important; padding: 0; max-width: calc(100% - 3rem);
}
.siteframe-base-visual-title h1 { display: table; margin: 0; padding: 0 .2em; background: var(--wp--preset--color--base); border-radius: 4px; font-size: var(--wp--preset--font-size--page-title); line-height: 1.2; }
.siteframe-base-visual-title p { display: table; margin-block-start: 8px; padding: 0 .5em; background: var(--wp--preset--color--base); border-radius: 4px; font-size: var(--wp--preset--font-size--medium); line-height: 1; font-weight: 700; }
.siteframe-base-visual-title > :is(h1, p) { margin-inline: 0 !important; }
.siteframe-base-section { padding-block: clamp(3rem, 6vw, 6rem); }
.siteframe-base-intro { font-size: var(--wp--preset--font-size--large); line-height: 2; font-weight: 700; }
.siteframe-base-card { box-shadow: 0 8px 32px #00000008; }
:where(.blog, .archive) .siteframe-base-main > .wp-block-query { max-width: 1104px; margin-block: 4rem; }
:where(.blog, .archive) .siteframe-base-main > .wp-block-query > .wp-block-post-template {
 display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px;
}
:where(.blog, .archive) .siteframe-base-main > .wp-block-query .wp-block-post-template > li {
 overflow: hidden; border-radius: var(--wp--custom--siteframe--radius--control, 12px); box-shadow: 0 0 25px #0000001a; margin: 0;
}
:where(.blog, .archive) .wp-block-post-template > li > .wp-block-group {
 display: flex; flex-direction: column; height: 100%; padding: 24px; box-sizing: border-box;
}
:where(.blog, .archive) .wp-block-post-template > li > .wp-block-group > * { margin-inline: 0 !important; }
:where(.blog, .archive) .wp-block-post-template .wp-block-post-featured-image { order: -2; margin: -24px -24px 24px; width: calc(100% + 48px); }
:where(.blog, .archive) .wp-block-post-template .wp-block-post-featured-image img { aspect-ratio: 1.9; object-fit: cover; }
:where(.blog, .archive) .wp-block-post-template .wp-block-post-date { order: -1; margin: 0 0 12px; }
:where(.blog, .archive) .wp-block-post-template .wp-block-post-title { margin: 0; }
:where(.blog, .archive) .wp-block-post-template .wp-block-post-excerpt { font-size: .875rem; }
.single .siteframe-base-main { padding-block-start: 4rem; }
.single .siteframe-base-main > .wp-block-post-title { border-top: 1px solid currentColor; padding-block-start: 32px; font-size: var(--wp--preset--font-size--article-title); line-height: 1.4; }
.single .siteframe-base-main > .wp-block-post-date { font-size: .875rem; margin-block: 3rem 2rem; }
.single .siteframe-base-main > .wp-block-post-content { border-top: 1px solid #ccc; padding-block-start: 24px; }
.single .wp-block-post-featured-image img { border-radius: var(--wp--custom--siteframe--radius--card, 16px); }
@media (max-width: 781px) {
 :where(.blog, .archive) .siteframe-base-main > .wp-block-query > .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 600px) {
 .siteframe-base-header { min-height: 76px; }
 .siteframe-base-visual-copy h1 { font-size: clamp(1.7rem, 7vw, 2.5rem); }
 .siteframe-base-visual-copy p { font-size: .75rem; }
 .siteframe-base-visual-copy .siteframe-base-kicker { font-size: .6rem; }
 :where(.blog, .archive) .siteframe-base-main > .wp-block-query > .wp-block-post-template { grid-template-columns: minmax(0, 1fr); }
 .single .siteframe-base-main { padding-block-start: 2rem; }
}

/* News cards use core blocks; their font sizes come from editable style presets. */
:where(.blog, .archive) .siteframe-base-main > .wp-block-query .wp-block-post-template > li { margin-block: 0; }
:where(.blog, .archive) .wp-block-post-template > li > .siteframe-base-news-card { padding: 0; display: block; }
:where(.blog, .archive) .siteframe-base-news-card > .wp-block-post-featured-image { margin: 0; width: 100%; border-radius: var(--wp--custom--siteframe--radius--card, 16px) var(--wp--custom--siteframe--radius--card, 16px) 0 0; overflow: hidden; }
:where(.blog, .archive) .siteframe-base-news-card .siteframe-base-news-card-body { padding: 20px; margin-block-start: 0; }
.siteframe-base-news-card .siteframe-base-news-meta { gap: 8px; margin-block: 0 12px; }
:where(.blog, .archive) .siteframe-base-news-card .siteframe-base-news-meta .wp-block-post-date { margin: 0; }
.siteframe-base-news-meta .wp-block-post-terms { font-size: var(--wp--preset--font-size--small); line-height: 1.4; }
.siteframe-base-news-meta .wp-block-post-terms::before { content: "|"; margin-inline-end: 8px; color: #aaa; }
.siteframe-base-news-meta a { color: inherit; text-decoration: none; }
.siteframe-base-news-card .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: .2em; }
.archive .siteframe-base-main > .wp-block-query-title { max-width: var(--wp--style--global--wide-size); margin-block-start: 2.5rem; }
.page .siteframe-base-main > .wp-block-post-title { font-size: var(--wp--preset--font-size--page-title); }

/* Navigation and controls. */
.siteframe-base-sticky-header .wp-site-blocks > header { position: sticky; top: 0; z-index: 100; background: var(--wp--preset--color--base); box-shadow: 0 1px 0 #0000000a; }
.admin-bar.siteframe-base-sticky-header .wp-site-blocks > header { top: 32px; }
.siteframe-base-sticky-header :where([id]) { scroll-margin-top: 8rem; }
.siteframe-base-header-search { flex: 0 1 auto; margin: 0; }
.siteframe-base-header .wp-block-navigation { margin-inline-start: auto !important; }
.siteframe-base-header .wp-block-navigation { font-size: var(--wp--preset--font-size--medium); line-height: 1.3; }
.siteframe-base-header-search .wp-block-search__inside-wrapper { padding: 0; align-items: center; }
.siteframe-base-header-search .wp-block-search__button { display: grid; place-items: center; margin: 0; width: 44px; height: 44px; }
.siteframe-base-header-search .wp-block-search__button svg { transform: scaleX(-1); }
.siteframe-base-header-search .wp-block-search__button { padding: 10px; min-width: 44px; color: var(--wp--preset--color--contrast); background: transparent; border: 0; }
.siteframe-base-header-search .wp-block-search__button svg { width: 28px; height: 28px; }
.siteframe-base-header-search .wp-block-search__input { max-width: min(230px, 42vw); }
.siteframe-base-back-to-top { position: fixed; inset: auto 24px 24px auto; z-index: 90; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #e5e5e5; background: #fff; color: #2e2e2e; cursor: pointer; }
.siteframe-base-back-to-top[hidden] { display: none; }
.wp-block-button:not(.has-custom-width) { width: 21rem; max-width: 100%; }
.wp-block-button__link { position: relative; width: 100%; padding-inline: 3rem; }
.wp-block-button__link::after { content: "→"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }
.wp-block-button__link:hover { opacity: .8; }
.siteframe-base-section .wp-block-column h3 { line-height: 1.4; }

/* Image cards and news lists. */
.wp-block-group.siteframe-base-service-card { position: relative; overflow: hidden; height: 100%; padding: 0; border-radius: var(--wp--custom--siteframe--radius--control, 12px); background: var(--wp--preset--color--base); box-shadow: 0 0 25px #00000012; }
.siteframe-base-service-card > .wp-block-image { margin: 0; max-width: none; }
.siteframe-base-service-card img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.wp-block-group.siteframe-base-service-card-body { margin-block-start: 0; padding: 24px 32px 40px; }
.siteframe-base-service-card h3 { margin: 0; font-size: var(--wp--preset--font-size--large); }
.siteframe-base-service-card a { color: inherit; text-decoration: none; }
.siteframe-base-service-card a::after, .siteframe-base-news-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.siteframe-base-service-card::after, .siteframe-base-news-card::after { content: "→"; position: absolute; bottom: 18px; right: 24px; pointer-events: none; }
.siteframe-base-service-card:focus-within, .siteframe-base-news-card:focus-within { outline: 2px solid currentColor; outline-offset: 4px; }
:where(.blog, .archive) .wp-block-post-template > li > .siteframe-base-news-card { position: relative; min-height: 380px; padding-bottom: 54px; }
.siteframe-base-news-card .siteframe-base-news-meta a { position: relative; z-index: 2; }
.siteframe-base-news .wp-block-post-template > li { padding: 26px 30px; margin: 0; border-top: 1px solid #eee; }
.siteframe-base-news .wp-block-post-template > li:last-child { border-bottom: 1px solid #eee; }
.siteframe-base-news .siteframe-base-news-meta { gap: 8px; margin: 0 0 6px; }
.siteframe-base-news .wp-block-post-title { margin-block-start: 0; font-size: var(--wp--preset--font-size--card-title); line-height: 1.5; }
.siteframe-base-news .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.siteframe-base-news .wp-block-post-title a:hover { text-decoration: underline; }

/* The footer is a standard editable template part. */
.wp-site-blocks > footer { background: #2e2e2e; color: #fff; margin-block-start: 5rem; }
.wp-block-group.siteframe-base-footer { max-width: var(--wp--style--global--wide-size); padding: 64px 24px 24px; margin-block-start: 0; border: 0; }
.siteframe-base-footer a { color: inherit; text-decoration: none; }
.siteframe-base-footer .wp-block-site-title { font-size: 2rem; }
.siteframe-base-footer .wp-block-site-tagline { font-size: .875rem; color: #ddd; }
.siteframe-base-footer .wp-block-columns { margin-block: 40px; }
.siteframe-base-footer .wp-block-button { width: 100%; }
.siteframe-base-footer .wp-block-button__link { border: 0; background: transparent; color: inherit; text-align: left; padding: 12px 36px 12px 0; border-radius: 0; font-weight: 400; }
.siteframe-base-footer .wp-block-buttons { margin-block-start: 0; }
.siteframe-base-footer .siteframe-base-copyright { border-top: 1px solid #ffffff33; padding-block-start: 24px; font-size: .8125rem; font-weight: 400; text-align: center; }
.siteframe-base-copyright::before { content: "© "; }
@media (max-width: 782px) { .admin-bar.siteframe-base-sticky-header .wp-site-blocks > header { top: 46px; } }
@media (max-width: 600px) {
 .admin-bar.siteframe-base-sticky-header .wp-site-blocks > header { top: 0; }
 .siteframe-base-header { gap: 8px; }
 .siteframe-base-news .wp-block-post-template > li { padding: 24px 0; }
 .siteframe-base-back-to-top { right: 16px; bottom: 16px; }
 .siteframe-base-footer .wp-block-columns { gap: 32px; }
}

/* Wide visuals and compact, editable section rhythm. */
.wp-site-blocks { container-type: inline-size; }
.wp-block-group:is(.siteframe-base-main-visual, .siteframe-base-page-visual) {
 width: calc(100cqw - 48px); max-width: none !important;
 margin-inline: calc((100% - (100cqw - 48px)) / 2) !important;
}
.siteframe-base-kicker + :is(h1, h2, h3) { margin-block-start: 8px; }
.siteframe-base-main .wp-block-buttons:not(.is-content-justification-left):not(.is-content-justification-right) { justify-content: center; }
.siteframe-base-news .wp-block-post-template > li { position: relative; border-radius: 4px; }
.siteframe-base-news .wp-block-post-template > li:is(:hover, :focus-within) { background: var(--wp--preset--color--surface); }
.siteframe-base-news .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.siteframe-base-news .wp-block-post-terms a { position: relative; z-index: 1; }
.wp-block-group.siteframe-base-contact { text-align: center; padding-block: clamp(40px, 6vw, 72px); border-radius: var(--wp--custom--siteframe--radius--card, 16px); }
.siteframe-base-contact > p:not(.siteframe-base-kicker) { max-width: 38rem; }
.siteframe-base-contact h2 { max-width: none; }
.siteframe-base-contact .wp-block-buttons { margin-block-start: 32px; }
.wp-block-group.siteframe-base-footer { margin-inline: auto !important; }
.siteframe-base-footer > :not(.siteframe-base-copyright) { max-width: none; }
.siteframe-base-footer .wp-block-columns { gap: clamp(32px, 8vw, 120px); }
.single .siteframe-base-main { padding-block-start: 0; }
.single .siteframe-base-main > .wp-block-post-title { border: 0; padding-block-start: 40px; }
.siteframe-base-article-meta { gap: 12px; margin-block: 40px 56px; font-size: var(--wp--preset--font-size--small); }
.siteframe-base-article-meta .wp-block-post-terms { padding-inline-start: 12px; border-inline-start: 1px solid currentColor; line-height: 1.4; }
.siteframe-base-article-meta a { color: inherit; text-decoration: none; }
.siteframe-base-flow { align-items: stretch !important; gap: 24px !important; }
.siteframe-base-flow > .wp-block-column { align-self: stretch !important; position: relative; padding: 24px; border-radius: var(--wp--custom--siteframe--radius--control, 12px); background: var(--wp--preset--color--surface); }
.siteframe-base-flow > .wp-block-column:not(:last-child)::after { content: "→"; position: absolute; right: -20px; top: 42px; }
.siteframe-base-flow .siteframe-base-kicker { font-size: 13px; }
.siteframe-base-flow h3 { font-size: var(--wp--preset--font-size--large); margin-block-start: 12px; }
.siteframe-base-flow h3 + p { font-size: 14px; margin-block-start: 16px; }
@media (max-width: 781px) {
 .siteframe-base-flow > .wp-block-column:not(:last-child)::after { content: "↓"; top: auto; bottom: -24px; right: 50%; }
}
@media (max-width: 600px) {
 .wp-block-group:is(.siteframe-base-main-visual, .siteframe-base-page-visual) { width: calc(100cqw - 32px); margin-inline: calc((100% - (100cqw - 32px)) / 2) !important; }
 .siteframe-base-header { position: relative; padding-inline: 16px; flex-wrap: nowrap; }
 .siteframe-base-header .wp-block-site-title { font-size: 24px; }
 .siteframe-base-header-search { order: 2; }
 .siteframe-base-header .wp-block-navigation { order: 3; margin-inline-start: 0 !important; }
 .siteframe-base-header > .wp-block-site-title { margin-inline-end: auto; min-width: 0; }
 .siteframe-base-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input { position: absolute; top: calc(100% + 8px); left: 16px; width: calc(100% - 32px); max-width: none; background: var(--wp--preset--color--base); border: 1px solid currentColor; padding: 12px; }
 .siteframe-base-article-meta { margin-block: 24px 32px; }
 .siteframe-base-news .wp-block-post-template > li { padding-inline: 12px; }
}

/* Keep the posts query readable beneath the full-width visual. */
.blog .siteframe-base-main > .wp-block-query {
 max-width: var(--wp--style--global--wide-size, 1104px);
}

/* Core pagination keeps its links and current-page semantics. */
.siteframe-base-main .wp-block-query-pagination { justify-content: center; gap: 12px; flex-wrap: wrap; margin-block: 48px; }
.siteframe-base-main .wp-block-query-pagination > * { margin: 0; }
.siteframe-base-main .wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.siteframe-base-main .wp-block-query-pagination :is(a, .page-numbers) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px 14px; border-radius: 14px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); font-weight: 700; line-height: 1.4; text-decoration: none; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.siteframe-base-main .wp-block-query-pagination .current { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.siteframe-base-main .wp-block-query-pagination .dots { background: transparent; min-width: 24px; padding-inline: 0; }
.siteframe-base-main .wp-block-query-pagination a:is(:hover, :focus-visible) { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); transform: translateY(-2px); text-decoration: none; }
.siteframe-base-main .wp-block-query-pagination a:focus-visible { outline: 3px solid var(--wp--preset--color--contrast); outline-offset: 3px; }
@media (max-width: 600px) { .siteframe-base-main .wp-block-query-pagination-numbers { order: -1; flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .siteframe-base-main .wp-block-query-pagination :is(a, .page-numbers) { transition: none; } .siteframe-base-main .wp-block-query-pagination a:is(:hover, :focus-visible) { transform: none; } }
