/* Shell adaptado do DIROS Coreano F14. */
:root {
    --dc-navy: #0d1f36;
    --dc-blue: #1763a3;
    --dc-cyan: #16bdd8;
    --dc-surface: #f3f6fa;
    --dc-line: #dbe4ee;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: #172c43; font: 1rem/1.6 system-ui, sans-serif; }
a { color: #155784; text-underline-offset: .2em; }
button { font: inherit; }
:focus-visible { outline: 3px solid #177ba8; outline-offset: 4px; }
.dc-shell { min-height: 100vh; background: var(--dc-surface); }
.dc-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    height: 100dvh;
    background: var(--dc-navy);
    color: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
}
.dc-brand {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid #ffffff24;
    color: white;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .06em;
}
.dc-brand small { display: block; color: #b6c9db; font-size: .72rem; }
.dc-nav { padding: 1rem .65rem; min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.dc-nav a { color: #e4edf6; text-decoration: none; border-radius: 8px; padding: .65rem .75rem; display: block; font-weight: 600; font-size: .9rem; }
.dc-nav a:hover, .dc-nav a[aria-current="page"] { background: #ffffff18; box-shadow: inset 3px 0 0 var(--dc-cyan); }
.dc-sidebar :focus-visible { outline-color: var(--dc-cyan); outline-offset: -3px; }
.dc-section { margin: 1.15rem .75rem .3rem; color: #b6c9db; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.dc-side-bottom { padding: 1rem; font-size: .7rem; color: #b6c9db; border-top: 1px solid #ffffff24; }
.dc-main { margin-left: 250px; min-width: 0; }
.dc-topbar { min-height: 60px; background: white; border-bottom: 1px solid var(--dc-line); display: flex; align-items: center; gap: .9rem; padding: .5rem 1.5rem; }
.dc-topbar button { min-height: 44px; border: 1px solid var(--dc-line); background: white; border-radius: 8px; padding: .35rem .75rem; color: var(--dc-navy); cursor: pointer; }
.dc-content { padding: clamp(1rem, 3vw, 2rem); max-width: 1200px; margin: auto; }
.dc-card { background: white; border: 1px solid var(--dc-line); border-radius: 12px; padding: clamp(1rem, 3vw, 1.5rem); }
.dc-content > .dc-card + .dc-card { margin-top: 1rem; }
.dc-skip { position: fixed; left: -9999px; }
.dc-skip:focus { left: 10px; top: 10px; z-index: 20; background: white; padding: 10px; }
.dc-shell.menu-desktop-closed .dc-main { margin-left: 0; }
h1, h2, h3 { line-height: 1.18; margin-block: 0 .65em; }
h1 { font-size: clamp(1.9rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
p { margin-block: 0 1em; }
li + li { margin-top: .3rem; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    background: #102942;
    color: white;
    padding: clamp(1.25rem, 4vw, 3.25rem);
    margin-bottom: 2rem;
}
.hero p { color: #d8e9f8; max-width: 32ch; }
.hero-script { text-align: center; font-size: clamp(2rem, 6vw, 5rem); letter-spacing: .03em; color: #e4f3ff; }
.hero-script span { color: #5fdef1; }
.button { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; padding: .55rem 1rem; background: var(--dc-blue); color: white; text-decoration: none; font-weight: 700; }
.hero .button { background: var(--dc-cyan); color: var(--dc-navy); }
.hero .button:focus-visible { outline-color: #fff; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.glyph { display: inline-grid; place-items: center; min-width: 3rem; min-height: 3rem; margin-bottom: .8rem; border-radius: 8px; background: #e6f3fa; color: #155784; font-size: 1.65rem; }
.examples { padding: 0; list-style: none; }
.examples li { display: grid; gap: .15rem; border-top: 1px solid var(--dc-line); padding: .85rem 0; }
.japanese { font-size: 1.8rem; }
.romaji { color: #455c73; }
ruby rt { font-size: .56em; }
fieldset { display: flex; flex-wrap: wrap; gap: .25rem 1rem; border: 1px solid var(--dc-line); border-radius: 8px; }
fieldset label { display: flex; align-items: center; min-height: 44px; gap: .35rem; }
@media (max-width: 900px) {
    .dc-main { margin-left: 0; }
    .dc-sidebar { position: static; width: auto; height: auto; }
    .dc-shell.menu-ready .dc-sidebar { position: fixed; top: 60px; bottom: 0; width: min(250px, 90vw); height: auto; }
    .dc-shell.menu-ready .dc-topbar { position: sticky; top: 0; z-index: 11; }
    .dc-topbar { padding-inline: 1rem; }
}
@media (max-width: 540px) {
    .hero { grid-template-columns: 1fr; }
    .hero-script { text-align: left; }
}
