/* WordPress wrapper corrections. Source site.css remains byte-identical. */
body { padding:0; }
.wp-site-blocks { padding:0; }
.wp-site-blocks > *, .wp-block-post-content > *, .wp-block-template-part { margin-block:0; }
.wp-block-post-content { max-width:none!important; margin:0!important; }
.wp-block-group { box-sizing:border-box; }
.wp-block-group > * { margin-block-start:0; }
.wp-block-heading { color:inherit; }
.wp-block-site-title.brand { margin:0; font-family:inherit; font-size:clamp(16px,1.5vw,26px); font-weight:850; line-height:1.65; letter-spacing:-.07em; }
.wp-block-site-title.brand a { color:inherit; text-decoration:none; }
figure.wp-block-image { margin:0; }
.hero-media > .wp-block-image, .feature-image > .wp-block-image, .card > .wp-block-image { display:contents; }
.wp-block-image img { vertical-align:initial; }
.wp-block-buttons { margin:0; gap:12px; }
.wp-block-button { margin:0; font:inherit; }
a.wp-block-button__link { display:inline-flex; align-items:center; justify-content:center; background:var(--rust); color:#fff; border:1px solid transparent; border-radius:12px; padding:12px 21px; font:inherit; font-weight:750; line-height:1.5; box-shadow:none; text-decoration:none; }
.end-band .wp-block-buttons { flex-shrink:0; }
.by-inline-copy { display:contents; }
.wp-block-details { box-sizing:border-box; }
.editor-styles-wrapper { color:var(--navy); background:var(--cream); font-family:Pretendard,"Noto Sans CJK KR","Malgun Gothic",system-ui,sans-serif; line-height:1.65; }
.editor-styles-wrapper .wp-block { max-width:none; }

.editor-styles-wrapper .by-block-label { color:var(--teal); background:white; font:600 13px system-ui; padding:5px 8px; }
/* Source keeps text visible; entrance effects never gate the section. */
:root { --by-ease-out:cubic-bezier(.23,1,.32,1); }
@media (hover:none), (pointer:coarse) {
 .button:hover { transform:none; background:var(--rust); }
 .card:hover { transform:none; }
}
button,a { touch-action:manipulation; }
@media (prefers-reduced-motion:reduce) {
 .button,.card { transform:none!important; }
 .button, .card, .submenu a { transition:background-color 120ms ease, color 120ms ease!important; }
}

@media (hover:none), (pointer:coarse) { a.card:hover img { transform:none; } }
@media (hover:hover) and (pointer:fine) {
 a.card:hover { transform:translateY(-5px); }
 a.card:hover img { transform:scale(1.04); }
}
.editor-styles-wrapper .by-inline-copy { display:contents; }
/* Restore source spacing where WordPress flow resets block margins. */
.wp-block-group .wp-block-heading { margin:0 0 .45em; }
.wp-block-group p.wp-block-paragraph { margin:0 0 1em; }
.wp-block-group.section-heading { margin-bottom:28px; }
.guide-grid .wp-block-group.section-heading { margin:0; }
.hero-copy p.eyebrow { margin-bottom:15px; }
.wp-block-group.card-copy p.wp-block-paragraph { margin:0; }
.wp-block-group .line-icon, .wp-block-group .step-index { margin:0 auto 16px; }
.wp-block-group.end-band h2 { margin:0; }
body .hero-media img, .editor-styles-wrapper .hero-media img { height:clamp(280px,34vw,540px); }
body .hero.over .hero-media img, .editor-styles-wrapper .hero.over .hero-media img { height:100%; }
body .feature-image img, .editor-styles-wrapper .feature-image img { height:clamp(210px,30vw,470px); }
body .card img, .editor-styles-wrapper .card img { height:clamp(130px,16vw,250px); }
body .calendar-list img, .editor-styles-wrapper .calendar-list img { width:32%; height:120px; }
@media (max-width:700px) {
 body .hero-media img, .editor-styles-wrapper .hero-media img { height:215px; }
 body .hero.over .hero-media img, .editor-styles-wrapper .hero.over .hero-media img { height:100%; }
 body .card img, .editor-styles-wrapper .card img { height:180px; }
}

.editor-styles-wrapper .by-slide-picker { display:flex; gap:8px; padding:8px; background:white; }
.editor-styles-wrapper .wp-block-button__link { background:var(--rust);color:white;border-radius:12px;padding:12px 21px;font:inherit;font-weight:750;line-height:1.5; }
/* Gutenberg's editing stylesheet also sets intrinsic image heights. */
.by-edit-hero .hero-media figure.wp-block-image img { height:clamp(280px,34vw,540px); }
.by-edit-hero.over .hero-media figure.wp-block-image img { height:100%; }
.by-edit-linked-card figure.wp-block-image img { height:clamp(130px,16vw,250px); }
.feature-image figure.wp-block-image img { height:clamp(210px,30vw,470px); }
@media (max-width:700px) {
 .by-edit-hero .hero-media figure.wp-block-image img { height:215px; }
 .by-edit-hero.over .hero-media figure.wp-block-image img { height:100%; }
 .by-edit-linked-card figure.wp-block-image img { height:180px; }
}
/* Editor block wrappers must not put hero decorations back into normal flow. */
.by-edit-hero .hero-media .by-edit-icon { position:absolute!important; }
.by-edit-hero .hero-media img { height:clamp(280px,34vw,540px)!important; }
.by-edit-hero.over .hero-media img { height:100%!important; }
.by-edit-hero .hero-media .components-resizable-box__container { height:auto!important; }
@media (max-width:700px) {
 .by-edit-hero .hero-media img { height:215px!important; }
 .by-edit-hero.over .hero-media img { height:100%!important; }
}
