:root {
  --navy: #081d36;
  --navy-2: #0d2949;
  --blue: #14578f;
  --blue-bright: #1d6eac;
  --cream: #f4f0e6;
  --paper: #fbfaf6;
  --ink: #101820;
  --muted: #66717b;
  --line: #d7d7d2;
  --red: #bd2e3a;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(8, 29, 54, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; line-height: 1.65; word-break: keep-all; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 120px 0; }

.site-header { position: absolute; z-index: 20; width: 100%; top: 0; left: 0; color: #fff; }
.nav-wrap { height: 98px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); object-fit: cover; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; letter-spacing: .06em; }
.brand strong { font-size: 14px; }
.brand small { font-size: 10px; margin-top: 6px; opacity: .68; }
#site-nav { display: flex; gap: 30px; font-size: 14px; font-weight: 700; }
#site-nav a { opacity: .78; transition: .2s ease; }
#site-nav a:hover { opacity: 1; }
.nav-cta { border: 1px solid rgba(255,255,255,.54); border-radius: 999px; padding: 10px 20px; font-size: 13px; font-weight: 800; }
.menu-button { display: none; border: 0; background: none; width: 42px; height: 42px; padding: 10px; }
.menu-button span { display: block; height: 2px; background: #fff; margin: 5px 0; }

.hero { min-height: 880px; overflow: hidden; color: #fff; background: radial-gradient(circle at 82% 12%, rgba(29,110,172,.62), transparent 30%), linear-gradient(125deg, #06172b 0%, #0a294b 58%, #104b79 100%); padding-top: 98px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to right, black, transparent 76%); }
.hero-grid { min-height: 720px; display: grid; grid-template-columns: .95fr 1.05fr; gap: 66px; align-items: center; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 18px; color: #98c5e9; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.eyebrow.blue { color: var(--blue); }
.eyebrow.light { color: #8ac3ee; }
.hero h1 { margin: 0; font-size: clamp(56px, 6vw, 86px); line-height: 1.06; letter-spacing: -.055em; }
.hero h1 span { color: #9ccceb; }
.hero-lead { margin: 32px 0 26px; font-size: 18px; color: rgba(255,255,255,.74); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags span { border: 1px solid rgba(255,255,255,.28); padding: 8px 13px; border-radius: 999px; color: rgba(255,255,255,.88); font-size: 12px; font-weight: 700; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font-size: 14px; font-weight: 900; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: #fff; color: var(--navy); }
.button.ghost { border: 1px solid rgba(255,255,255,.38); color: #fff; }
.hero-visual { position: relative; padding: 58px 35px 15px 0; }
.photo-frame { position: relative; height: 550px; border-radius: 180px 180px 22px 22px; overflow: hidden; box-shadow: 0 38px 100px rgba(0,0,0,.38); }
.photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,20,38,.46), transparent 55%); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-stamp { position: absolute; left: -38px; bottom: 3px; width: 142px; height: 142px; border-radius: 50%; background: var(--cream); color: var(--navy); display: grid; place-content: center; text-align: center; transform: rotate(-8deg); box-shadow: var(--shadow); border: 5px solid #fff; }
.hero-stamp b { font-size: 18px; letter-spacing: .08em; }
.hero-stamp span { font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.vertical-copy { position: absolute; right: -22px; top: 50%; transform: rotate(90deg) translateX(50%); transform-origin: right center; font-size: 9px; letter-spacing: .28em; opacity: .55; }
.ticker { height: 62px; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; white-space: nowrap; overflow: hidden; color: rgba(255,255,255,.42); font-size: 12px; letter-spacing: .18em; font-weight: 800; }
.ticker div { animation: ticker 25s linear infinite; min-width: 200%; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section-heading { display: grid; grid-template-columns: .5fr 1fr 1fr; align-items: end; margin-bottom: 48px; }
.section-heading .eyebrow { align-self: start; }
.section-heading h2, .why h2, .schedule h2, .contact h2 { margin: 0; font-size: clamp(42px, 5vw, 66px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p:last-child { margin: 0 0 5px auto; max-width: 350px; color: var(--muted); }
.program { background: var(--cream); }
.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.program-card { min-height: 210px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); position: relative; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.program-card.kids { background: #e4e9e5; }
.program-card.adult { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.program-card.junior { background: var(--paper); }
.program-card.weekend { background: #d7e5ef; }
.card-number { font-size: 12px; font-weight: 900; opacity: .45; }
.card-kicker { margin: 20px 0 8px; font-size: 10px; font-weight: 900; letter-spacing: .16em; color: var(--blue); }
.adult .card-kicker { color: #8cc3e9; }
.program-card h3 { font-size: 30px; margin: 0 0 16px; }
.program-card > p:not(.card-kicker) { font-size: 14px; color: var(--muted); }
.adult > p:not(.card-kicker) { color: rgba(255,255,255,.66); }
.program-card dl { margin: 42px 0 0; border-top: 1px solid rgba(0,0,0,.12); }
.adult dl { border-color: rgba(255,255,255,.15); }
.program-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.1); font-size: 13px; }
.adult dl div { border-color: rgba(255,255,255,.1); }
.program-card dt { color: var(--muted); }
.adult dt { color: rgba(255,255,255,.52); }
.program-card dd { margin: 0; font-weight: 800; }

.why { background: var(--navy); color: #fff; }
.why-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.why-photo { position: relative; padding: 0 0 64px 48px; }
.why-photo::before { content: ""; position: absolute; width: 55%; height: 58%; left: 0; bottom: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; }
.why-photo > img { width: 100%; height: 640px; object-fit: cover; object-position: center; border-radius: 190px 190px 18px 18px; position: relative; box-shadow: 0 35px 80px rgba(0,0,0,.33); }
.image-label { position: absolute; bottom: 0; left: 0; background: var(--cream); color: var(--navy); border-radius: 14px; padding: 20px 23px; min-width: 250px; box-shadow: var(--shadow); }
.image-label strong, .image-label span { display: block; }
.image-label strong { font-size: 12px; letter-spacing: .13em; }
.image-label span { font-size: 11px; margin-top: 5px; color: var(--muted); }
.why-lead { margin: 28px 0 34px; max-width: 590px; color: rgba(255,255,255,.65); font-size: 16px; }
.feature-list { border-top: 1px solid rgba(255,255,255,.15); }
.feature-list > div { display: grid; grid-template-columns: 54px 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.15); padding: 17px 0; }
.feature-list > div > span { color: #70add7; font-size: 11px; font-weight: 900; }
.feature-list p { margin: 0; }
.feature-list strong, .feature-list small { display: block; }
.feature-list strong { font-size: 16px; }
.feature-list small { margin-top: 3px; color: rgba(255,255,255,.5); }

.coaches { background: var(--paper); }
.section-heading.center { display: block; text-align: center; }
.coach-grid { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.coach-card { padding: 42px; border: 1px solid var(--line); border-radius: 20px; background: #fff; position: relative; }
.coach-card:first-child { border-top: 5px solid var(--blue); }
.coach-card:last-child { border-top: 5px solid #3e7a69; }
.coach-card span { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.coach-card h3 { margin: 26px 0 12px; font-size: 25px; }
.coach-card p { margin: 0; color: var(--muted); font-size: 14px; }
.coach-note { text-align: center; color: var(--muted); font-size: 12px; margin: 26px 0 0; }

.schedule { color: #fff; background: linear-gradient(110deg, #0d4f81, #08213d 70%); position: relative; overflow: hidden; }
.schedule-board::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(70%, 440px);
  height: 80%;
  background: url('./assets/guseong-identity.png') center / contain no-repeat;
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
  opacity: .08;
  pointer-events: none;
}
.schedule-grid { display: grid; grid-template-columns: .68fr 1.32fr; gap: 85px; position: relative; z-index: 2; }
.schedule-intro > p:not(.eyebrow) { color: rgba(255,255,255,.62); max-width: 330px; font-size: 14px; margin: 28px 0; }
.light-button { background: #fff; color: var(--navy); }
.schedule-board { position: relative; border-top: 2px solid #fff; }
.schedule-board > .schedule-row { position: relative; z-index: 1; }
.schedule-row { display: grid; grid-template-columns: 1.1fr .8fr 1fr; align-items: center; min-height: 84px; border-bottom: 1px solid rgba(255,255,255,.17); gap: 20px; }
.schedule-row.head { min-height: 48px; font-size: 10px; letter-spacing: .12em; color: rgba(255,255,255,.45); }
.schedule-row b, .schedule-row small { display: block; }
.schedule-row b { font-size: 16px; }
.schedule-row small { color: #78b3dd; font-size: 9px; letter-spacing: .12em; }
.schedule-row > span:nth-child(n+2) { font-size: 14px; font-weight: 700; }

.start { background: var(--cream); padding: 75px 0; }
.start-inner { display: grid; grid-template-columns: 100px 1fr auto; gap: 35px; align-items: center; }
.start-inner img { width: 94px; height: 94px; object-fit: cover; border-radius: 50%; box-shadow: 0 12px 30px rgba(8,29,54,.16); }
.start-inner h2 { margin: 0 0 7px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
.start-inner p { margin: 0; color: var(--muted); }
.start-inner .eyebrow { margin-bottom: 8px; }
.start .button.primary { background: var(--navy); color: #fff; }

.contact { background: #07192e; color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact h2 span { color: #86bde3; }
.contact-info { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
.contact-info small { color: #7eb7de; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.contact-info p { margin: 10px 0 0; font-weight: 700; }
.social-links { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); margin-top: 10px; }
.social-links a { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.15); padding: 15px 0; font-size: 13px; color: rgba(255,255,255,.7); }
.social-links a:hover { color: #fff; }
footer { background: #04111f; color: rgba(255,255,255,.46); padding: 28px 0; }
footer .shell { display: flex; justify-content: space-between; align-items: center; }
footer p { font-size: 10px; font-weight: 900; letter-spacing: .14em; }
footer small { font-size: 10px; }
.mobile-cta { display: none; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .shell { width: min(100% - 34px, 680px); }
  .section { padding: 86px 0; }
  .nav-wrap { height: 76px; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 12px; }
  .menu-button { display: block; order: 3; }
  .nav-cta { display: none; }
  #site-nav { display: none; position: absolute; top: 75px; left: 17px; right: 17px; background: #fff; color: var(--navy); padding: 18px; border-radius: 15px; flex-direction: column; gap: 5px; box-shadow: var(--shadow); }
  #site-nav.open { display: flex; }
  #site-nav a { padding: 10px; }
  .hero { padding-top: 76px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; padding-top: 85px; padding-bottom: 82px; }
  .hero h1 { font-size: clamp(45px, 12vw, 64px); }
  .hero-lead { font-size: 15px; }
  .hero-visual { padding: 28px 0 0 24px; }
  .photo-frame { height: 430px; border-radius: 130px 130px 20px 20px; }
  .hero-stamp { left: 0; bottom: -30px; width: 110px; height: 110px; }
  .vertical-copy { display: none; }
  .ticker { display: none; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 22px; }
  .section-heading > p:last-child { margin: 0; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card, .program-card.adult { min-height: 0; transform: none; }
  .card-kicker { margin-top: 38px; }
  .why-grid { grid-template-columns: 1fr; gap: 60px; }
  .why-photo { order: 2; padding-left: 25px; }
  .why-photo > img { height: 560px; }
  .coach-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; gap: 50px; }
  .start-inner { grid-template-columns: 80px 1fr; }
  .start-inner img { width: 76px; height: 76px; }
  .start-inner .button { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 55px; }
  footer { padding-bottom: 170px; }
  footer .shell { display: block; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 10px; padding: 5px; background: rgba(7,25,46,.95); backdrop-filter: blur(10px); border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
  .mobile-cta a { color: #fff; text-align: center; padding: 12px 5px; font-size: 13px; font-weight: 900; }
  .mobile-cta a + a { background: #fff; color: var(--navy); border-radius: 11px; }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 28px); }
  .hero-grid { padding-top: 68px; }
  .hero h1 { font-size: 48px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-tags span { font-size: 10px; }
  .photo-frame { height: 360px; }
  .why-photo > img { height: 470px; }
  .schedule-row { grid-template-columns: 1fr 1fr; padding: 14px 0; }
  .schedule-row > span:nth-child(2) { text-align: right; }
  .schedule-row > span:nth-child(3) { grid-column: 1 / -1; }
  .schedule-row:not(.head) > span:nth-child(3) { color: #87c0e8; }
  .schedule-row.head > span:nth-child(-n+2) { display: none; }
  .contact-info { grid-template-columns: 1fr; }
  .social-links { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker div { animation: none; }
}

.about { background: var(--paper); color: var(--navy); scroll-margin-top: 80px; }
.about .eyebrow { color: var(--blue); }
.about h2 { max-width: 900px; margin: 16px 0 24px; font-size: clamp(34px, 5vw, 66px); line-height: 1.08; letter-spacing: -.045em; }
.about-intro { max-width: 740px; margin: 0; color: var(--muted); font-size: 16px; }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; }
.about-cards article { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: var(--radius); background: var(--cream); }
.about-cards h3 { margin: 0 0 10px; font-size: clamp(20px, 2.2vw, 25px); }
.about-cards p { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
  .about-cards { grid-template-columns: 1fr; }
}

.faq { background: var(--paper); color: var(--navy); scroll-margin-top: 80px; }
.faq h2 { margin: 16px 0 38px; font-size: clamp(34px, 5vw, 66px); line-height: 1.08; letter-spacing: -.045em; }
.faq-list { max-width: 920px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-size: clamp(17px, 2.4vw, 23px); font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+" / ""; color: var(--blue); flex-shrink: 0; }
.faq-list details[open] summary::after { content: "−" / ""; }
.faq-list p { margin: 0; padding: 0 32px 20px 0; color: var(--muted); }
.faq-list p a { color: var(--blue); text-decoration: underline; }

.coach-portrait { display: block; width: 100%; height: auto; margin: 24px 0; border-radius: 14px; }

.social-links a { align-items: center; }
.social-label { display: inline-flex; align-items: center; gap: 10px; }
.social-label svg { flex-shrink: 0; }

.schedule-preview { display: grid; gap: 8px; width: min(100%, 230px); margin-top: 20px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--navy); font: inherit; cursor: zoom-in; }
.schedule-preview img, .schedule-zoom img { display: block; width: 100%; height: auto; }
.schedule-preview img { border-radius: 8px; }
.schedule-zoom { width: min(94vw, 760px); max-height: 90dvh; padding: 12px; border: 0; border-radius: 14px; background: var(--paper); }
.schedule-zoom::backdrop { background: rgba(8, 29, 54, .84); }
.schedule-zoom form { position: sticky; top: 0; display: flex; justify-content: flex-end; padding-bottom: 8px; }

.culture { background: var(--paper); color: var(--navy); }
.culture-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(12px, 4vw, 40px); align-items: start; }
.culture-intro img { width: clamp(62px, 15vw, 125px); height: auto; align-self: center; border-radius: 14px; }
.culture h2 { margin: 16px 0; font-size: clamp(30px, 5vw, 66px); line-height: 1.12; letter-spacing: -.045em; }
.culture-intro p:last-child, .culture-values article p:last-child { margin: 0; color: var(--muted); }
.culture-intro p:last-child { max-width: 640px; }
.culture-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; margin-top: 36px; }
.culture-values article { padding: 22px 0; border-top: 1px solid var(--line); }
.culture-values h3 { margin: 8px 0; font-size: clamp(19px, 2.5vw, 25px); line-height: 1.35; }
@media (max-width: 760px) {
  .culture-values { grid-template-columns: 1fr; }
}

#site-nav .menu-contact { display: none; }
.dojo-news { background: var(--cream); color: var(--navy); }
.dojo-news h2 { font-size: clamp(32px, 5vw, 62px); line-height: 1.15; margin: 12px 0 28px; letter-spacing: -.04em; }
.notice-entry { border-block-start: 1px solid var(--line); padding-block: 16px; }
.notice-entry summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.notice-entry strong { flex: 1 1 180px; overflow-wrap: anywhere; }
.notice-entry time { color: var(--muted); font-size: 14px; }
.notice-badge { border-radius: 5px; padding: 2px 8px; background: #d7e5ef; color: var(--navy); font-size: 13px; font-weight: 800; }
.notice-entry p { white-space: pre-wrap; overflow-wrap: anywhere; }
#notice-admin { margin-bottom: 18px; }
#notice-admin summary { cursor: pointer; font-weight: 800; }
#notice-form { max-width: 620px; }
#notice-form label { display: block; margin-block: 8px; }
#notice-form input:not([type=checkbox]), #notice-form textarea { display: block; width: 100%; font: inherit; padding: 8px; }
.dojo-news button { padding: 7px 12px; margin-right: 6px; border: 1px solid var(--navy); border-radius: 6px; background: var(--paper); color: var(--navy); cursor: pointer; font: inherit; }
@media (min-width: 901px) {
  .nav-wrap { gap: 20px; }
  #site-nav { gap: clamp(10px, 1.6vw, 26px); }
  #site-nav a { white-space: nowrap; }
}
@media (max-width: 900px) {
  .menu-button { width: auto; height: auto; padding: 7px 14px; border: 1px solid currentColor; border-radius: 6px; color: inherit; font: inherit; cursor: pointer; }
  #site-nav { left: 0; right: 0; padding: 14px max(17px, calc((100% - 680px) / 2)); border-radius: 0 0 12px 12px; max-height: calc(100dvh - 132px); overflow-y: auto; background: var(--paper); }
  #site-nav a { padding: 12px; opacity: 1; }
  #site-nav .menu-contact { display: block; margin-top: 8px; border-radius: 8px; background: var(--navy); color: white; }
}

.notice-image { display: block; max-width: 100%; height: auto; margin: 14px 0; border-radius: 8px; }
#notice-form label[hidden] { display: none; }

.map-link { margin-top: 16px; }
.map-link .button { gap: 10px; }
.naver-map-logo { width: 26px; height: 26px; flex: 0 0 26px; }

.contact-info > .contact-action { grid-column: 1 / -1; }

.hero .hero-poster { height: auto; border-radius: 22px; }
.hero .hero-poster::after { content: none; }
.hero .hero-poster img { display: block; width: 100%; height: auto; }

.contact-title h2 { font-size: clamp(22px, 3.25vw, 52px); white-space: nowrap; }

@media (max-width: 900px) {
  .mobile-cta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-cta a { flex: 1 1 0; min-width: 0; }
  .mobile-cta .mobile-kakao { background: #fee500; color: #191919; }
}

.why-photo > .identity-logo { display: block; width: 80%; height: auto; margin-inline: auto; border-radius: 22px; }

.contact-info > .contact-detail { container-type: inline-size; }
#contact-address { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.address-text { white-space: nowrap; font-size: min(1em, 3.65cqi); }
#copy-address { cursor: pointer; padding: 4px 7px; min-height: 26px; border-radius: 5px; font-size: 11px; line-height: 1.2; white-space: nowrap; }
#address-copy-status:not(:empty) { display: block; margin-top: 8px; }
#contact-phone { display: flex; align-items: center; gap: 12px; }
.contact-numbers { display: flex; flex-direction: column; gap: 4px; font-size: clamp(16px, 5.5cqi, 24px); white-space: nowrap; }
#copy-phone { flex: 0 0 auto; cursor: pointer; min-height: 36px; padding: 8px 10px; border-radius: 6px; font-size: 12px; line-height: 1.2; white-space: nowrap; }
#phone-copy-status:not(:empty) { display: block; margin-top: 8px; }

/* Shared type scale for homepage section headings. */
main :is(#why, #about, #coaches, #program, #schedule, #training-records, #dojo-news, #training-culture, #faq, #contact) h2 {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.04em;
}
main :is(#why, #about, #coaches, #program, #schedule, #training-records, #dojo-news, #training-culture, #faq, #contact) .eyebrow {
  font-size: 12px;
  font-weight: 800;
}
#home-records-title { margin: 8px 0 26px; color: #000; }
main #contact .contact-title h2 { white-space: normal; }

.guestbook { background: var(--cream); color: var(--navy); }
.guestbook h2 { font-size: clamp(26px, 3.2vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: -.04em; margin: 12px 0 24px; }
#guestbook-form, #guestbook-admin { padding: clamp(16px, 3vw, 28px); border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
#guestbook-form label { display: block; margin-bottom: 12px; font-weight: 700; }
#guestbook-form input, #guestbook-form textarea { display: block; width: 100%; margin-top: 6px; padding: 8px; font: inherit; border: 1px solid var(--line); border-radius: 6px; }
#guestbook-form p, .guestbook-entry time { color: var(--muted); font-size: 14px; }
.guestbook button { padding: 8px 14px; border: 1px solid var(--navy); border-radius: 8px; background: var(--navy); color: white; cursor: pointer; font: inherit; margin: 4px 8px 4px 0; }
.guestbook-entry { border-top: 1px solid var(--line); padding: 14px 0; overflow-wrap: anywhere; }
.guestbook-entry p { white-space: pre-wrap; margin: 8px 0; }
#guestbook-pagination:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
#guestbook-pagination button { margin: 0; min-width: 64px; min-height: 44px; }
#guestbook-pagination button:disabled { opacity: .4; cursor: default; }
#guestbook-page { font-variant-numeric: tabular-nums; }
#guestbook-admin { margin-top: 20px; }
#guestbook-admin summary { cursor: pointer; font-weight: 800; }

.start-actions { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.start-actions .button {
  padding-inline: 5px;
  white-space: normal;
  min-height: 44px;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--navy);
}
.start-actions .button:hover, .start-actions .button:focus-visible {
  border-color: var(--blue);
  background: #eaf3fa;
}

.hero-stamp img { display: block; width: 76%; height: auto; }
.hero-stamp { place-items: center; place-content: stretch; }

.start-social-links { grid-column: 1 / -1; margin-top: 0; border-color: var(--line); }
.start-social-links a { color: var(--navy); border-color: var(--line); }
.start-social-links a:hover, .start-social-links a:focus-visible { color: var(--blue); }

.contact-info > .contact-detail { grid-column: 1 / -1; }
.contact-info > .contact-detail > small:first-child { font-size: 15px; }
.contact-info > .contact-detail > p { font-size: clamp(18px, 2vw, 24px); }

.program-fit { margin: 0 0 24px; color: var(--muted); }
.trial-guide { grid-column: 1 / -1; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; }
.trial-guide h3 { margin: 0 0 8px; }
.trial-guide ol { margin: 0; padding-inline-start: 1.4em; }
.trial-guide li + li { margin-top: 4px; }


.about-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  gap: 8px 24px;
  margin: 22px 0 0;
  padding: 0 0 0 1.2em;
  font-weight: 700;
}
.about-benefits li::marker { color: var(--blue); }

#program .section-heading { display: block; }
#program .section-heading > p:last-child { margin: 12px 0 0; max-width: none; }
.program-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
#program .program-title-row h2 { margin: 0; white-space: nowrap; font-size: clamp(18px, 5.5vw, 44px); }
.program-schedule-link { margin: 0; }

.start-actions .button[href^="tel:"] { background: var(--navy); color: #fff; }
.start-actions .button[href^="https://www.instagram.com/team.gorilla.bjj.gusung/"] { background: #922467; color: #fff; }
.start-actions .button[href^="https://open.kakao.com/"] { background: #fee500; color: #191919; }
.start-actions .button:hover { filter: brightness(.9); }
.start-actions .button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

#about { background-color: #f8f1e2; }
#training-culture { background-color: #e6eff8; }
#coaches { background-color: #eff1f3; }

.trial-composer { grid-column: 1 / -1; padding: clamp(20px, 4.5vw, 34px); scroll-margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--navy); }
.trial-composer summary { cursor: pointer; list-style: none; position: relative; padding-right: 2em; }
.trial-composer summary::-webkit-details-marker { display: none; }
.trial-composer summary::after { content: "+"; position: absolute; right: 0; top: 20%; font-size: 24px; }
.trial-composer[open] > summary::after, .trial-calendar[open] > summary::after { content: "−"; }
.trial-composer summary strong { display: block; font-size: clamp(18px, 3vw, 24px); }
.trial-composer[open] summary { margin-bottom: 16px; }
.trial-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
#trial-form { display: grid; gap: 14px; margin-top: 14px; }
#trial-form input, #trial-form select, #trial-form textarea { display: block; width: 100%; min-height: 42px; padding: 8px; font: inherit; border: 1px solid var(--line); border-radius: 7px; }
.trial-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.trial-buttons button { cursor: pointer; }
.mobile-cta .mobile-trial { grid-column: 1 / -1; background: var(--navy); border-radius: 11px; }
@media (max-width: 900px) { body { padding-bottom: max(105px, env(safe-area-inset-bottom)); } }

#trial-form .trial-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trial-options, .trial-calendar { grid-column: 1 / -1; min-width: 0; margin: 0; }
.trial-options { border: 0; padding: 0; }
.trial-options legend { margin-bottom: 8px; font-weight: 800; }
.trial-options > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(85px, 1fr)); gap: 8px; }
.trial-options button, .trial-calendar button { font: inherit; cursor: pointer; color: var(--navy); border: 1px solid #b7c3b8; border-radius: 9px; background: #e2eae1; min-height: 42px; padding: 6px; }
.trial-options button[aria-pressed="true"], .trial-calendar button[aria-pressed="true"] { background: #385242; color: white; }
.trial-calendar { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.trial-calendar-nav { display: flex; justify-content: space-between; align-items: center; }
#trial-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; margin: 10px 0; }
#trial-days button { min-height: 36px; padding: 2px; }
.trial-calendar button:disabled { opacity: .35; cursor: default; }
.trial-belt-icon { display: flex; width: 38px; height: 12px; border: 1px solid #777; border-radius: 3px; justify-content: end; margin: 0 auto 5px; }
.trial-belt-icon > span { display: flex; justify-content: flex-end; align-items: stretch; gap: 2px; width: 20px; padding: 0 2px; background: #191919; }
.trial-belt-icon i { flex: 0 0 2px; background: #fff; }
.trial-belt-icon .black-belt-tip { background: #a72e38; }
.trial-buttons > * { flex: 1 1 200px; }
@media (max-width: 520px) { #trial-form .trial-fields { grid-template-columns: minmax(0, 1fr); } }

.trial-composer summary::after { display: grid; place-items: center; width: 1.4em; height: 1.4em; top: 50%; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 50%; line-height: 1; }
.trial-composer[open] > summary::after, .trial-calendar[open] > summary::after { content: "×"; }

/* Date-specific trial class selection */
#trial-form select[hidden] { display: none; }
.trial-lessons { grid-column: 1 / -1; }
#trial-lessons-hint, .trial-lessons-note { margin: 0 0 12px; font-size: 14px; line-height: 1.7; }
#trial-lesson-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#trial-lesson-cards .trial-lesson-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; min-height: 100px; padding: 16px; border-radius: 14px; box-shadow: 0 4px 0 #b7c3b8; text-align: left; }
.trial-lesson-card strong { font-size: clamp(18px, 3vw, 25px); }
#trial-date-undecided { display: block; width: 100%; min-height: 48px; margin-top: 12px; }
#trial-lesson-cards button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: white; box-shadow: 0 4px 0 #071424; }
#trial-date-undecided[aria-pressed="true"] {
  background: #d2dfcf;
  border-color: #889e88;
  color: var(--navy);
  box-shadow: 0 4px 0 #a9baa7;
}
#trial-lesson-cards button:focus-visible { outline: 3px solid #789a55; outline-offset: 4px; }
#trial-form .trial-lessons-note { margin-top: 20px; }
#trial-lessons-hint:has(~ #trial-lesson-cards:empty) { margin-bottom: 0; }
#trial-lesson-cards:empty { display: none; }
#trial-form #trial-lesson-cards:empty + .trial-lessons-note { margin-top: 8px; }
@media (max-width: 380px) { #trial-lesson-cards { grid-template-columns: 1fr; } }

/* Prominent trial application entry */
#trial-application { border: 2px solid #a6c500; box-shadow: 0 10px 28px rgba(8,29,54,.12); }
#trial-application > summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 132px;
  margin: calc(-1 * clamp(20px, 4.5vw, 34px));
  padding: 28px 84px 28px 30px;
  border-radius: 14px;
  background: #d7f52b;
  color: #081d36;
}
#trial-application[open] > summary { margin-bottom: 26px; border-radius: 14px 14px 0 0; }
#trial-application > summary small { font-size: 15px; font-weight: 700; }
#trial-application > summary strong { font-size: clamp(23px, 3.5vw, 32px); line-height: 1.35; font-weight: 900; }
#trial-application > summary::after { right: 24px; width: 42px; height: 42px; background: #081d36; color: white; border: 0; font-size: 28px; }
#trial-application > summary:focus-visible { outline: 3px solid #081d36; outline-offset: 4px; }
@media (max-width: 520px) {
  #trial-application > summary { min-height: 120px; padding: 24px 68px 24px 20px; }
  #trial-application > summary::after { right: 16px; width: 36px; height: 36px; }
}

/* Match consultation colors in the page and on the mobile bar. */
:is(.start-actions, .mobile-cta) a[href^="tel:"] { background: var(--navy); color: #fff; }
:is(.start-actions, .mobile-cta) a[href^="sms:"] { background: #215eab; color: #fff; }
:is(.start-actions, .mobile-cta) a[href^="https://www.instagram.com/"] { background: #922467; color: #fff; }
:is(.start-actions, .mobile-cta) a[href^="https://open.kakao.com/"] { background: #fee500; color: #191919; }
.mobile-cta { gap: 4px; }
.mobile-cta a[href^="tel:"] { box-shadow: inset 0 0 0 1px #66768a; }
