.tteok-page.spelling-page { --spelling-green: #234f3e; --spelling-cream: #faf7ee; --spelling-line: #ced8ce; max-width: 1120px; }
.spelling-page [hidden] { display: none !important; }
.spelling-hero { margin: 30px 0 36px; padding: clamp(24px, 5vw, 48px); color: #183a2c; background: var(--spelling-cream); border-top: 5px solid var(--spelling-green); }
.spelling-kicker { margin: 0 0 16px; font-size: .875rem; font-weight: 800; letter-spacing: .08em; }
.spelling-hero h1 { max-width: 18em; margin: 0 0 20px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.3; letter-spacing: -.045em; word-break: keep-all; }
.spelling-lead { max-width: 42em; margin: 0; font-size: 1.0625rem; line-height: 1.85; word-break: keep-all; }
.spelling-today { margin: 24px 0; }
#spelling-today { display: inline-block; padding: 10px 0; color: var(--spelling-green); font-size: 1rem; font-weight: 800; line-height: 1.7; }
.spelling-controls { margin: 24px 0; padding: 24px; border: 1px solid var(--spelling-line); background: #fff; }
.spelling-controls label { display: block; margin-bottom: 10px; font-size: 1rem; font-weight: 800; line-height: 1.6; }
.spelling-search-row { display: flex; gap: 10px; align-items: stretch; }
#spelling-search { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; color: #183a2c; background: #fff; border: 1px solid #778b7f; border-radius: 4px; font: inherit; font-size: 1rem; box-sizing: border-box; }
#spelling-search::placeholder { color: #5c6860; opacity: 1; }
#spelling-clear { min-height: 48px; flex: 0 0 auto; padding: 10px 16px; color: var(--spelling-green); background: var(--spelling-cream); border: 1px solid #778b7f; border-radius: 4px; font: inherit; font-weight: 700; cursor: pointer; }
.spelling-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.spelling-filters button { min-height: 44px; padding: 9px 15px; color: var(--spelling-green); background: #fff; border: 1px solid var(--spelling-line); border-radius: 4px; font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer; }
.spelling-filters button[aria-pressed="true"] { color: #fff; background: var(--spelling-green); border-color: var(--spelling-green); }
#spelling-count { margin: 18px 0; color: #4c5b51; font-size: .9375rem; line-height: 1.7; }
#spelling-empty { margin: 24px 0; padding: 24px; color: #344d3e; background: var(--spelling-cream); font-size: 1rem; line-height: 1.8; }
.spelling-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 22px 0 36px; }
.spelling-card { display: block; min-width: 0; padding: 24px; color: #183a2c; background: #fff; border: 1px solid var(--spelling-line); border-top: 3px solid var(--spelling-green); text-decoration: none; }
.spelling-card h2, .spelling-card h3 { margin: 12px 0; color: #183a2c; font-size: 1.25rem; line-height: 1.5; letter-spacing: -.025em; word-break: keep-all; }
.spelling-card p { margin: 12px 0 0; color: #4c5b51; font-size: .9375rem; line-height: 1.85; word-break: keep-all; }
.spelling-card .spelling-card-meta, .spelling-card .spelling-kicker { display: block; margin: 0; color: #496850; font-size: .8125rem; font-weight: 800; letter-spacing: .04em; }
.spelling-card-more { display: block; margin-top: 18px; color: var(--spelling-green); font-size: .875rem; font-weight: 800; line-height: 1.7; }
.spelling-card:hover h2, .spelling-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.spelling-article { max-width: 760px; }
.spelling-article .spelling-hero { margin-top: 28px; }
.spelling-article .spelling-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.65rem); }
.spelling-answer { margin: 24px 0; padding: 22px 24px; border-left: 4px solid var(--spelling-green); background: #edf4ee; color: #183a2c; font-size: 1.125rem; font-weight: 700; line-height: 1.85; }
.spelling-answer p { margin: 0; }
.spelling-section { margin: 36px 0; }
.spelling-section h2 { color: #183a2c; font-size: 1.3rem; line-height: 1.5; }
.spelling-section p { margin: 14px 0; }
.spelling-examples ul, .spelling-examples ol { padding-left: 24px; }
.spelling-examples, .spelling-check { margin: 36px 0; }
.spelling-examples h2, .spelling-check h2 { margin-bottom: 18px; color: #183a2c; font-size: 1.3rem; line-height: 1.5; }
.spelling-examples li { margin: 16px 0; padding-left: 3px; font-size: 1.0625rem; line-height: 1.9; word-break: keep-all; }
.spelling-examples li p { margin: 0; }
.spelling-examples li p + p { margin-top: 6px; color: #4c5b51; }
.spelling-question { margin: 24px 0; }
.spelling-question h3 { margin: 0 0 12px; font-size: 1.125rem; line-height: 1.75; word-break: keep-all; }
.spelling-question > p { font-size: 1rem; line-height: 1.85; }
.spelling-check details { margin: 14px 0; border: 1px solid var(--spelling-line); background: #fff; }
.spelling-check summary { min-height: 48px; padding: 16px 20px; color: var(--spelling-green); font-size: 1rem; font-weight: 800; line-height: 1.8; cursor: pointer; box-sizing: border-box; }
.spelling-check details[open] summary { border-bottom: 1px solid var(--spelling-line); }
.spelling-check details > p { margin: 0; padding: 18px 20px; font-size: 1rem; line-height: 1.85; }
.spelling-source { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--spelling-line); font-size: .875rem; line-height: 1.85; color: #4c5b51; }
.spelling-source h2 { font-size: 1rem; }
.spelling-source ul, .spelling-related ul { padding-left: 22px; }
.spelling-source li, .spelling-related li { margin: 12px 0; line-height: 1.8; }
.spelling-related { margin-top: 36px; padding-top: 24px; border-top: 2px solid var(--spelling-green); }
.spelling-related h2 { margin-bottom: 18px; color: var(--spelling-green); font-size: 1.25rem; line-height: 1.5; }
.spelling-page :is(a, button, input, summary):focus-visible { outline: 3px solid #426a4e; outline-offset: 4px; }
@media (max-width: 880px) {
  .spelling-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tteok-page.spelling-page { padding: 18px 18px 44px; }
  .spelling-hero { margin-top: 24px; padding: 24px 20px; }
  .spelling-controls { padding: 18px; }
  .spelling-grid { grid-template-columns: 1fr; gap: 14px; }
  .spelling-card { padding: 22px; }
  .spelling-answer { padding: 18px; }
  #spelling-clear { padding-right: 12px; padding-left: 12px; }
}
