/* Standalone learning-site tokens; no main-site assets or styles are imported. */
:root {
    --background: #f2f8fc;
    --surface: #ffffff;
    --foreground: #183b50;
    --muted: #5c7484;
    --primary: #075fa5;
    --primary-hover: #034c87;
    --primary-foreground: #ffffff;
    --accent: #138a77;
    --accent-hover: #0c7060;
    --border: #d9e7ef;
    --subtle: #eaf4fa;
    --success: #166c45;
    --success-surface: #edf9f1;
    --danger: #b33842;
    --danger-surface: #fff0f1;
    --warning-surface: #fff8e6;
    --shadow: 0 12px 40px rgba(33, 89, 120, .09);
    --hero-overlay: linear-gradient(110deg, rgba(0, 51, 91, .83), rgba(0, 81, 118, .60));
    --header-height: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, body.bg-blue-50 { margin: 0; background: var(--background); color: var(--foreground); font-family: 'Montserrat', sans-serif; }
button, input, textarea { font: inherit; }
button, a, input, textarea { transition: background-color .18s, border-color .18s, box-shadow .18s, opacity .18s; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, .answer-option:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }
.rinomore-font { font-weight: 700; letter-spacing: 0; }
header.fixed {
    position: fixed; inset: 0 0 auto; z-index: 60;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(33, 89, 120, .04);
}
.header-content { max-width: 1440px; padding: 12px 24px; }
.header-content > .flex { gap: 24px; min-height: 40px; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; gap: 10px; text-decoration: none; }
.logo-img { width: auto; height: 32px; }
.header-title { font-size: 24px; line-height: 1; color: var(--primary); }
.brand-wordmark { display: block; width: 154px; height: 24px; background: var(--primary); mask: url('../assets/images/rinomore-wordmark.png') center / contain no-repeat; -webkit-mask: url('../assets/images/rinomore-wordmark.png') center / contain no-repeat; }
.header-stage { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.slide-clock { display: none; flex: 0 0 64px; align-items: center; gap: 5px; color: var(--primary); }
.presentation-mode .slide-clock { display: flex; }
.slide-clock svg { width: 34px; height: 34px; flex-shrink: 0; overflow: visible; }
.clock-track, .clock-ring, .clock-hands, .clock-check { fill: none; stroke-width: 2; }
.clock-track { stroke: var(--border); }
.clock-ring { stroke: currentColor; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: center; stroke-linecap: round; }
.clock-hands, .clock-check { stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.clock-check { display: none; }
.slide-clock.is-ready { color: var(--success); }
.slide-clock.is-ready .clock-check { display: block; }
.slide-clock.is-ready .clock-hands { display: none; }
.clock-seconds { min-width: 25px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-stage-title { font-size: 12px; line-height: 1.5; font-weight: 600; color: var(--muted); text-align: right; }
.progress-container { position: fixed; top: var(--header-height); left: 0; width: 100%; height: 3px; background: var(--border); z-index: 61; }
.progress-bar { width: 0; height: 100%; background: var(--accent); transition: width .3s; }
.page { display: none; min-height: 100vh; min-height: 100dvh; padding: calc(var(--header-height) + 32px) 24px 32px; }
.page.active { display: flex; align-items: center; justify-content: center; }
.page > .container { width: 100%; }
.page:not(#page4) > .container > .w-full { width: 100%; }
.hero-section { position: relative; background-image: var(--hero-overlay), url('../assets/images/wave-bg.jpg'); background-size: cover; background-position: center; }
.hero-section h1 { font-size: 48px; line-height: 1.2; font-weight: 700; color: var(--primary-foreground); }
.hero-section p { font-size: 20px; line-height: 1.7; color: var(--primary-foreground); }
.form-container, .presentation-container, .test-container, .results-container, .open-question-container, .congrats-container {
    background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
    box-shadow: var(--shadow); padding: 32px; width: 100%;
}
.form-container { max-width: 640px; margin: auto; }
.form-container label { color: var(--foreground); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-input { display: block; width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--background); color: var(--foreground); margin-bottom: 16px; font-size: 16px; }
.form-input::placeholder { color: var(--muted); }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--subtle); background: var(--surface); }
.page button:not(.nav-arrow), .page a.inline-block {
    min-height: 48px; padding: 12px 24px; border-radius: 6px; border: 1px solid transparent;
    background: var(--primary); color: var(--primary-foreground); font-size: 14px; line-height: 1.5; font-weight: 600;
}
.page button:not(.nav-arrow):hover, .page a.inline-block:hover { background: var(--primary-hover); }
.page button.bg-green-500, .page a.bg-green-500 { background: var(--accent); }
.page button.bg-green-500:hover, .page a.bg-green-500:hover { background: var(--accent-hover); }
.page button.secondary-action { background: var(--subtle); color: var(--primary); border-color: var(--border); }
.page button.secondary-action:hover { background: var(--border); }
.page button.bg-gray-400 { background: var(--muted); }
.presentation-container p, .open-question-container p, .congrats-container p { line-height: 1.7; }
#page3 img, #page5 img, #page8 img, #page9 img { border-radius: 6px; }
#page3 .presentation-container > .flex > .flex, #page5 .presentation-container > .flex > .flex,
#page8 .open-question-container > .flex, #page9 .congrats-container > .flex { align-items: center; }
#page9 h2 { color: var(--primary); }
.answer-option { padding: 16px 18px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 12px; cursor: pointer; color: var(--foreground); font-size: 16px; line-height: 1.6; }
.answer-option:hover { background: var(--background); border-color: var(--primary); }
.answer-option.selected { background: var(--subtle); border-color: var(--primary); box-shadow: inset 3px 0 var(--primary); }
.answer-option.correct { background: var(--success-surface); border-color: var(--success); }
.answer-option.incorrect { background: var(--danger-surface); border-color: var(--danger); }
.question-container { margin-bottom: 24px; }
#questionText { line-height: 1.6; color: var(--foreground); }
#questionCounter, .text-counter, .save-status { color: var(--muted); font-size: 13px; line-height: 1.6; }
.text-counter { text-align: right; margin-top: 8px; }
.text-counter.valid { color: var(--success); }
#openAnswer { min-height: 180px; resize: vertical; }
#scoreNotice { background: var(--warning-surface); border-color: var(--border); }
#wrongAnswersContainer .bg-red-50 { background: var(--danger-surface); border-color: var(--border); }
#wrongAnswersContainer .text-red-600 { color: var(--danger); }
#wrongAnswersContainer .text-green-600 { color: var(--success); }
.save-status { margin-bottom: 12px; }
/* One viewport-sized presentation layout, independent of Tailwind or slide ratio. */
body.presentation-mode { overflow: hidden; }
body.presentation-mode #page4.page {
    height: 100vh; height: 100dvh; min-height: 0;
    padding: calc(var(--header-height) + 7px) 8px 8px;
}
#page4 > .container { height: 100%; max-width: none; margin: 0; padding: 0; display: flex; min-height: 0; }
#page4 .presentation-adaptive-width { width: 100%; max-width: none; height: 100%; min-height: 0; }
#page4 .presentation-container { height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
#page4 .presentation-grid { height: 100%; min-height: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-rows: minmax(0, 1fr); gap: 6px; }
#page4 .slide-content { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--surface); border-radius: 4px; }
#page4 #slideImage { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center top; }
#page4 .nav-arrow { display: flex; align-items: center; justify-content: center; width: 44px; height: 100%; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--primary); font-size: 28px; padding: 0; }
#page4 .nav-arrow:hover { background: var(--subtle); }
#page4 .nav-arrow.disabled { color: var(--muted); cursor: not-allowed; }
.arrow-glyph { line-height: 1; }
.slide-status { position: absolute; inset: auto 16px 16px; padding: 12px; background: var(--danger-surface); color: var(--danger); border-radius: 6px; text-align: center; }
.slide-warning-tooltip { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 14px 20px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--foreground); box-shadow: var(--shadow); z-index: 100; font-size: 14px; line-height: 1.6; text-align: center; }
@media (max-width: 768px) {
    .header-content { padding: 10px 16px; }
    .header-content > .flex { gap: 10px; }
    .header-title { font-size: 20px; }
    .brand-wordmark { width: 136px; height: 21px; }
    .logo-img { height: 28px; }
    .header-stage-title { font-size: 11px; }
    .page { padding: calc(var(--header-height) + 24px) 12px 24px; }
    .page > .container { padding: 0; }
    .form-container, .presentation-container, .test-container, .results-container, .open-question-container, .congrats-container { padding: 24px 20px; }
    #page4 .presentation-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 44px; gap: 6px; }
    #page4 .slide-content { grid-column: 1 / -1; grid-row: 1; }
    #page4 .nav-arrow { width: 100%; height: 44px; font-size: 22px; grid-row: 2; }
    #page4 #prevSlide { grid-column: 1; }
    #page4 #nextSlide { grid-column: 2; }
}
@media (max-width: 640px) {
    .header-content > .flex { flex-wrap: wrap; justify-content: center; row-gap: 5px; }
    .header-stage:has(.header-stage-title:not(:empty)) { width: 100%; justify-content: center; }
    .header-stage-title:not(:empty) { text-align: center; }
    .hero-section h1 { font-size: 32px; }
    .hero-section p { font-size: 17px; }
    #page3 .presentation-container .flex.items-center,
    #page5 .presentation-container .flex.items-center,
    #page8 .open-question-container > .flex,
    #page9 .congrats-container > .flex,
    #scoreNotice > .flex { flex-direction: column; gap: 20px; }
    #page3 .presentation-container .flex-1, #page5 .presentation-container .flex-1,
    #page8 .open-question-container .flex-1, #page9 .congrats-container .flex-1 { text-align: left; }
    #page3 img, #page5 img, #page8 img, #page9 img, #scoreNotice img { max-height: 160px; width: 100%; object-fit: cover; object-position: center 25%; }
    #page6 .test-container > .flex { flex-direction: column; align-items: stretch; gap: 12px; }
    #nextQuestion { width: 100%; }
    #page7 .space-x-4 { display: flex; flex-direction: column; gap: 12px; }
    #page7 .space-x-4 > * { margin: 0; }
    .answer-option { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}
