/* Flat editorial layout inspired by Aircare; preserve the Vietnamese brand. */
:root { --ink:#242c34; --muted:#59636d; --paper:#fff; --surface:#fff; --line:#e1e4e8; --gold:#edc34b; --gold-soft:#fbefc7; --jade:#8f271f; --vermillion:#8f271f; --night:#242c34; --red-deep:#8f271f; --red-warm:#8f271f; --sky:#f5f6f7; --shadow:none; }
body { background:#fff; font-family:Arial,"Segoe UI",sans-serif; line-height:1.65; }
h1,h2,h3,h4,.today-date { font-family:inherit !important; letter-spacing:-.025em; }
a,button,input,select { -webkit-tap-highlight-color:transparent; }
button,a,input,select { touch-action:manipulation; }
:focus-visible { outline:3px solid #226bb6; outline-offset:4px; }
[id] { scroll-margin-top:24px; }
.skip-link { position:absolute; top:-100px; left:16px; z-index:100; padding:12px 20px; background:#fff; color:#242c34; }
.skip-link:focus { top:10px; }
.site-header { position:relative; background:#fff; border-bottom:0; backdrop-filter:none; box-shadow:none; }
.top-ribbon { min-height:34px; padding:6px 16px; background:#f4f5f6; color:#59636d; font-weight:400; font-size:.8rem; }
.header-inner { min-height:96px; }
.brand-logo img { width:240px; height:60px; max-width:62vw; object-fit:contain; }
.header-description { margin-left:auto; color:#59636d; font-size:.9rem; text-align:right; }
.header-description strong { display:block; color:#8f271f; font-size:1rem; }
.nav-bar { background:#8f271f; }
.nav-inner { width:min(1180px,calc(100% - 32px)); margin:auto; display:flex; align-items:stretch; justify-content:space-between; }
.site-nav { gap:0; }
.site-nav a { display:flex; align-items:center; color:#fff; border-radius:0; min-height:56px; padding:12px 22px; font-size:.9rem; }
.site-nav a:hover,.site-nav a[aria-current="page"] { background:#722018; color:#fff; }
.nav-cta { display:flex; align-items:center; padding:12px 26px; background:#edc34b; color:#242c34; font-weight:700; font-size:.9rem; }
.nav-toggle { border-radius:0; background:transparent; color:#fff; border-color:#ffffff80; margin:7px 0; }
.hero { color:#242c34; background:#f5f3ee; padding:64px 0; border-bottom:1px solid #e1e4e8; }
.hero::before,.hero-card::before,.moon { display:none; }
.hero-inner { grid-template-columns:1.05fr 1fr; gap:60px; }
.eyebrow { padding:0; border:0; background:none; border-radius:0; color:#8f271f; font-size:.78rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.hero h1 { font-size:clamp(2.1rem,3.6vw,3.5rem); line-height:1.18; margin:18px 0 22px; max-width:620px; }
.hero-copy { color:#59636d; font-size:1.03rem; margin-bottom:26px; }
.hero-note { display:block; margin:22px 0 0; color:#59636d; font-size:.86rem; }
.button,.button.secondary,.mini-action,.icon-button,.segmented,.segmented button,.converter-tabs,.converter-tabs button,.field input,.field select,.converter-fields input,.converter-fields select { border-radius:0; box-shadow:none; }
.button { background:#8f271f; color:#fff; padding:12px 24px; }
.button.secondary { color:#242c34; background:#fff; border:1px solid #bcc2c8; }
.button:hover { transform:none; background:#722018; color:#fff; }
.button.secondary:hover { background:#f4f5f6; color:#242c34; }
.hero-card { width:100%; padding:0; background:#fff; border:1px solid #d7dbe0; box-shadow:none; backdrop-filter:none; }
.hero-card-header { margin:0; padding:14px 20px; background:#8f271f; color:#fff; letter-spacing:.04em; }
.hero-card-header strong { color:#fff; }
.today-panel { background:#fff; color:#242c34; }
.today-top { padding:24px; border-bottom:1px solid #e1e4e8; align-items:center; }
.today-kicker,.small-label { color:#59636d; letter-spacing:.06em; }
.today-date { font-size:clamp(1.7rem,2.8vw,2.6rem); margin:8px 0 12px; }
.today-score { background:#fbefc7; border-radius:0; box-shadow:none; width:72px; height:72px; font-size:.72rem; }
.today-body { background:#e1e4e8; }
.today-item { background:#fff; min-height:92px; }
.today-item strong { font-size:.92rem; font-weight:600; }
.utility-dock { background:#fff; border-bottom:1px solid #e1e4e8; }
.utility-inner { top:0; border:0; box-shadow:none; }
.utility-item { min-height:90px; padding:20px 16px; }
.utility-item:hover { background:#f5f6f7; }
.utility-icon,.tool-icon { color:#8f271f; background:#f5f3ee; border-radius:0; }
.section,.section.alt { padding:58px 0; }
.section.alt { background:#f6f7f8; }
.section-heading { gap:28px; margin-bottom:28px; align-items:start; }
.section-heading h2,.section-heading.compact h2 { font-size:clamp(1.65rem,2.4vw,2.2rem); line-height:1.25; }
.section-heading h2::after { content:""; display:block; width:48px; height:3px; background:#8f271f; margin-top:16px; }
.section-heading p { font-size:.94rem; }
.lookup-grid { gap:24px; }
.lookup-form,.result-panel,.calendar-panel,.tool-card,.ritual-panel { border:1px solid #e1e4e8; border-radius:0; box-shadow:none; background:#fff; }
.lookup-form { padding:28px; }
.result-panel { overflow:hidden; }
.result-grade { background:#8f271f; color:#fff; }
.grade-ring { background:#fbefc7 !important; border-radius:0; width:84px; height:84px; }
.grade-ring span { border-radius:0; background:#fbefc7; color:#242c34; }
.result-status { background:none; border-radius:0; color:#fff; }
.result-details { background:#fff; }
.detail-list span { color:#59636d; }
.detail-list strong { color:#242c34; }
.tools-section { background:#fff; }
.tools-grid { grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-areas:"converter ages stars" "converter direction direction"; gap:20px; }
.tool-card,.converter-card { padding:24px; background:#fff; }
.converter-card { background:#f5f3ee; }
.tools-grid .tool-card:nth-child(n),.tools-grid .tool-card:not(.converter-card) { background:#fff; color:#242c34; }
.tools-grid .tool-card:not(.converter-card) h3,.tools-grid .tool-card:not(.converter-card) .tool-result,.converter-card h3 { color:#242c34; }
.tools-grid .tool-card:not(.converter-card) p,.converter-card p { color:#59636d; }
.tools-grid .tool-card:not(.converter-card) .tool-icon,.converter-card .tool-icon { color:#8f271f; background:#f5f3ee; }
.converter-card .tool-result { color:#242c34; border-radius:0; background:#fbefc7; }
.converter-tabs { padding:0; border:1px solid #d7dbe0; background:#fff; gap:0; }
.converter-tabs button { color:#59636d; min-height:44px; }
.converter-tabs button.is-active,.segmented button.is-active { background:#8f271f; color:#fff; }
.mini-action,.converter-card .mini-action { background:#8f271f; color:#fff; }
.page-hero { background:#f5f3ee; color:#242c34; padding:40px 0; }
.page-hero h1 { color:#242c34; font-size:clamp(1.9rem,3vw,2.8rem); }
.page-hero p { color:#59636d; }
.calendar-panel-large { background:#fff; border-radius:0; }
.calendar-title { font-size:1.5rem; }
.day-cell { border-radius:0; box-shadow:none; text-align:left; }
.day-cell:hover { transform:none; }
.day-cell.is-today { outline:2px solid #8f271f; outline-offset:-2px; }
.day-pill,.today-tag { border-radius:0; }
.calendar-grid-large .day-cell { min-width:0; }
.ritual-panel { padding:32px; background:#f5f3ee; }
.ritual-copy h2 { color:#242c34; font-size:2rem; }
.ritual-copy p,.timeline li { color:#59636d; }
.timeline time { color:#8f271f; }
.ritual-art { background:#fbefc7; border-radius:0; box-shadow:none; }
.compass { background:#8f271f; box-shadow:none; }
.content-note { color:#59636d; font-size:.85rem; border-left:3px solid #edc34b; padding:10px 16px; margin:24px 0 0; background:#fff; }
.guide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.guide-card { display:block; padding:28px; border:1px solid #e1e4e8; border-top:3px solid #8f271f; }
.guide-card h3 { font-size:1.2rem; margin:0 0 14px; }
.guide-card p { color:#59636d; margin:0 0 20px; font-size:.93rem; }
.guide-card span { color:#8f271f; font-weight:700; font-size:.86rem; }
.guide-card:hover { background:#f5f6f7; }
.faq-list details { border-bottom:1px solid #e1e4e8; padding:20px 0; }
.faq-list summary { font-weight:700; cursor:pointer; }
.faq-list p { color:#59636d; max-width:900px; }
.breadcrumbs { padding-top:22px; font-size:.85rem; color:#59636d; }
.breadcrumbs a,.article-content a,.post-list a { color:#8f271f; text-decoration:underline; text-underline-offset:3px; }
.article-content { max-width:820px; font-size:1.05rem; }
.article-content h2 { margin-top:36px; line-height:1.35; font-size:1.65rem; }
.article-content li { margin-bottom:10px; }
.post-meta { color:#59636d; font-size:.88rem; }
.post-list { display:grid; gap:24px; }
.post-list article { border-bottom:1px solid #e1e4e8; padding-bottom:24px; }
.article-content img { max-width:100%; height:auto; }
main article > img { max-width:100%; height:auto; }
.search-form { display:flex; flex-wrap:wrap; gap:12px; margin:24px 0; }
.search-form input { padding:12px; border:1px solid #bcc2c8; max-width:100%; }
.site-footer { background:#242c34; color:#fff; border-top:4px solid #edc34b; }
.footer-brand p,.footer-note p,.footer-bottom { color:#cbd0d5; }
.footer-links h2,.footer-note h2 { color:#fff; font-size:1rem; }
.footer-links a { color:#e0e3e6; }
.footer-links a:hover { color:#edc34b; }
.footer-logo { background:#fff; padding:8px; width:240px; height:76px; object-fit:contain; border-radius:0; }
.footer-bottom { border-top:1px solid #ffffff26; }
@media(max-width:920px) {
 .header-description { display:none; }
 .header-inner { min-height:80px; }
 .site-nav { position:absolute; inset:100% 0 auto; border:0; border-radius:0; background:#8f271f; padding:0; z-index:20; box-shadow:none; }
 .site-nav a { color:#fff; padding:12px 24px; }
 .nav-inner { position:relative; }
 .nav-cta { margin-left:auto; }
 .hero-inner { grid-template-columns:1fr; gap:32px; }
 .hero { padding:40px 0; }
 .tools-grid { grid-template-columns:1fr 1fr; grid-template-areas:"converter converter" "ages stars" "direction direction"; }
 .guide-grid { grid-template-columns:1fr; }
 .utility-inner { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .utility-item:last-child { grid-column:1 / -1; }
}
@media(max-width:640px) {
 .nav-inner { width:calc(100% - 24px); }
 .hero h1 { font-size:2.15rem; line-height:1.2; }
 .hero-actions .button { width:auto; flex:1; font-size:.86rem; padding:12px; }
 .today-top { display:flex; gap:12px; padding:20px; }
 .today-score { width:62px; height:62px; }
 .today-body { grid-template-columns:1fr 1fr; }
 .today-item { padding:14px; }
 .utility-item { grid-template-columns:32px 1fr; gap:8px; padding:14px 8px; min-height:76px; }
 .utility-icon { width:30px; height:36px; }
 .utility-item strong { font-size:.85rem; }
 .utility-item small { font-size:.72rem; }
 .section,.section.alt { padding:36px 0; }
 .tools-grid { grid-template-columns:1fr; grid-template-areas:"converter" "ages" "stars" "direction"; }
 .converter-tabs { grid-template-columns:1fr 1fr; }
 .lookup-form,.tool-card,.ritual-panel { padding:20px; }
 .calendar-panel-large { padding:10px; }
 .calendar-grid-large .day-cell { padding:5px; min-height:76px; }
 .can-chi-note,.day-score { display:none; }
 .day-pill,.lunar-note { font-size:.6rem; }
 .calendar-title { font-size:1.1rem; }
}
.calendar-caption { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.calendar-caption p,.calendar-tap-hint { margin:0; font-size:.82rem; color:var(--muted); }
.calendar-today-button { min-height:44px; padding:8px 14px; border:1px solid var(--line); background:#fff; color:var(--vermillion); font-weight:700; cursor:pointer; white-space:nowrap; }
.calendar-today-button:hover { background:#f5f3ee; }
.calendar-tap-hint { margin-top:16px; }
.calendar-month-page .calendar-legend span { border-radius:0; background:#fff; font-weight:500; }
.calendar-month-page .legend-dot.today { background:#fff; border:2px solid #8f271f; border-radius:0; }
@media(max-width:640px) {
 .calendar-month-page .page-hero { padding:22px 0; }
 .calendar-month-page .page-hero h1 { font-size:1.55rem; line-height:1.3; margin:10px 0; }
 .calendar-month-page .page-hero p { font-size:.87rem; margin:0; }
 .calendar-month-page .calendar-page-section { padding:20px 0 32px; }
 .calendar-month-page .calendar-panel-large { padding:14px 10px; }
 .calendar-month-page .calendar-toolbar { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; gap:8px; margin-bottom:8px; }
 .calendar-month-page .calendar-heading { min-width:0; }
 .calendar-month-page .calendar-title { font-size:1.25rem; line-height:1.3; }
 .calendar-month-page .calendar-caption { flex-wrap:wrap; gap:6px 10px; margin-bottom:10px; }
 .calendar-month-page .calendar-caption p { font-size:.72rem; }
 .calendar-month-page .calendar-today-button { min-height:44px; padding:8px 10px; font-size:.74rem; margin-left:auto; }
 .calendar-month-page .calendar-legend { display:flex; justify-content:flex-start; gap:6px 12px; margin:0 0 14px; }
 .calendar-month-page .calendar-legend span { min-height:20px; padding:0; border:0; gap:5px; font-size:.69rem; }
 .calendar-month-page .legend-dot { width:7px; height:7px; flex:none; }
 .calendar-month-page .weekday-row { gap:0; margin-bottom:0; font-size:.73rem; color:#59636d; border:1px solid #e1e4e8; border-bottom:0; }
 .calendar-month-page .weekday-row span { padding:10px 0; background:#f5f6f7; }
 .calendar-month-page .weekday-row span:last-child { color:#8f271f; }
 .calendar-month-page .calendar-grid-large { gap:1px; background:#e1e4e8; border:1px solid #e1e4e8; }
 .calendar-month-page .day-cell { grid-template-rows:28px 18px; align-content:start; justify-items:center; gap:3px; height:76px; min-height:76px; padding:7px 1px 12px; border:0; box-shadow:none; background:#fff; text-align:center; }
 .calendar-month-page .day-topline { display:block; }
 .calendar-month-page .day-number { width:28px; height:28px; border-radius:0; background:none; font-size:1.15rem; font-weight:700; }
 .calendar-month-page .lunar-note { margin:0; font-size:.68rem; line-height:18px; white-space:nowrap; font-weight:500; color:#59636d; }
 .calendar-month-page .lunar-prefix { display:none; }
 .calendar-month-page .day-cell.is-good { background:#f0f8f3; }
 .calendar-month-page .day-cell.is-caution { background:#fcf2ef; }
 .calendar-month-page .day-cell.is-muted { background:#f5f6f7; opacity:1; }
 .calendar-month-page .day-cell.is-muted .day-number,.calendar-month-page .day-cell.is-muted .lunar-note { color:#9299a1; }
 .calendar-month-page .day-cell.is-today { outline:2px solid #8f271f; outline-offset:-2px; z-index:1; }
 .calendar-month-page .day-cell.is-today .day-number { background:#8f271f; color:#fff; }
 .calendar-month-page .day-pill { width:6px; height:6px; padding:0; bottom:8px; left:calc(50% - 3px); right:auto; border-radius:50%; font-size:0; max-width:none; overflow:visible; }
 .calendar-month-page .today-tag { display:none; }
 .calendar-month-page .day-cell:focus-visible { outline:3px solid #226bb6; outline-offset:-3px; z-index:2; }
 .calendar-month-page .calendar-tap-hint { font-size:.75rem; line-height:1.5; margin-top:14px; }
 .calendar-month-page .content-note { font-size:.75rem; padding:10px 12px; margin-top:16px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none !important; transition:none !important; } }
.feature-page h2 { font-size:1.6rem; line-height:1.35; }
.feature-page h3 { font-size:1.13rem; line-height:1.4; }
.feature-page a:not(.day-cell):not(.icon-button) { color:#8f271f; }
.feature-page .button { color:#fff; }
.plain-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:9px 14px; border:1px solid #d7dbe0; background:#fff; color:#8f271f; font:inherit; font-size:.86rem; cursor:pointer; }
.plain-button:hover { background:#f5f3ee; }
.feature-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:20px 0; }
.feature-actions a { padding:8px 0; margin-right:12px; font-size:.9rem; font-weight:600; }
.today-detail-link { color:#8f271f; font-size:.78rem; white-space:nowrap; }
.result-day-link { display:block; margin-top:16px; color:#fff; text-decoration:underline; font-size:.85rem; }
.period-picker,.year-picker { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-bottom:24px; }
.period-picker label,.year-picker label { display:grid; gap:6px; font-size:.88rem; }
.period-picker input,.period-picker select,.year-picker input { width:150px; padding:10px; min-height:46px; border:1px solid #c9ced3; font:inherit; }
.year-grid,.finder-results,.compare-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:24px; }
.year-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.year-card,.finder-card { border:1px solid #e1e4e8; background:#fff; padding:24px; margin:0; min-width:0; }
.year-card h2,.finder-card h2,.finder-card h3 { margin:0 0 14px; }
.year-card p,.finder-card p { color:#59636d; }
.mini-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px; font-size:.72rem; text-align:center; }
.mini-calendar a { display:grid; gap:3px; padding:7px 0; background:#f5f6f7; min-height:44px; }
.mini-calendar strong { color:#242c34; font-size:.9rem; }
.mini-calendar small { color:#59636d; font-size:.6rem; }
.day-detail { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.day-detail > div { min-width:0; padding:28px; border:1px solid #e1e4e8; }
.day-detail h2 { margin:12px 0 18px; }
.lunar-big { font-size:1.25rem; font-weight:600; }
.hour-grid { padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; list-style:none; }
.hour-grid li { display:grid; gap:5px; background:#f5f3ee; padding:14px; }
.hour-grid li span { font-size:.9rem; }
.holiday-label { color:#8f271f; font-weight:600; }
.countdown-card { border-left:4px solid #8f271f; padding:28px; background:#f5f3ee; margin-bottom:24px; }
.finder-form,.personal-form { padding:24px; background:#f5f6f7; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:20px; }
.finder-form .field,.personal-form .field { margin:0; }
.finder-form .button,.personal-form .button { align-self:end; }
.finder-form input,.finder-form select,.personal-form input,.personal-form select,.report-form input,.report-form textarea { width:100%; min-width:0; border:1px solid #c9ced3; padding:11px; font:inherit; color:#242c34; background:#fff; border-radius:0; }
.check-label { align-self:center; display:flex; gap:10px; align-items:center; font-size:.9rem; }
.check-label input { width:20px; height:20px; }
.hours-summary { font-size:.85rem; line-height:1.7; }
.report-form { max-width:720px; }
.report-form .field { margin-bottom:20px; }
.honeypot { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.form-message { padding:12px 16px; border-left:3px solid #edc34b; background:#fbf8ef; }
.form-message:empty { display:none; }
.lunar-event-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.lunar-event-fields label { display:grid; gap:5px; font-size:.88rem; }
.lunar-event-fields label:last-child { grid-column:1/-1; }
[hidden] { display:none !important; }
[data-event-list] { display:grid; gap:16px; }
[data-event-list] .plain-button { margin-right:10px; }
[data-saved-days] p { display:flex; align-items:center; gap:18px; }
.feature-toast { position:fixed; z-index:100; bottom:16px; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 24px); padding:12px 18px; background:#242c34; color:#fff; font-size:.88rem; box-shadow:0 2px 10px #0002; }
.feature-toast button { margin-left:12px; }
.compare-shortcut { position:fixed; right:16px; bottom:90px; z-index:90; background:#8f271f; color:#fff; padding:12px 18px; }
.feature-page .calendar-heading p { display:block; }
.feature-page .calendar-panel .day-number { background:none; border-radius:0; }
.feature-page .calendar-panel .day-cell.is-good { background:#f0f8f3; }
@media(max-width:920px) { .year-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .day-detail { grid-template-columns:1fr; gap:20px; } .site-nav a { padding-inline:14px; } }
@media(max-width:640px) {
 .finder-results,.compare-grid,.year-grid,.finder-form,.personal-form { grid-template-columns:1fr; }
 .finder-form,.personal-form,.finder-card,.year-card,.day-detail > div { padding:20px; }
 .period-picker { gap:10px; }
 .period-picker label { flex:1; min-width:100px; }
 .period-picker input,.period-picker select { width:100%; }
 .period-picker .button { width:100%; }
 .feature-page .calendar-toolbar { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; }
 .today-top { flex-wrap:wrap; }
 .timeline li { grid-template-columns:1fr; }
 .hour-grid li { padding:12px; }
 .feature-page .calendar-panel .day-cell.is-today .day-number { background:#8f271f; }
 .feature-page .calendar-panel .day-cell.is-today { z-index:1; }
}
@media print {
 .site-header,.site-footer,.breadcrumbs,.feature-actions,.period-picker,.year-picker,.finder-form,.personal-form,.feature-toast,.compare-shortcut,.report-form,.skip-link,.nav-cta { display:none !important; }
 body { background:#fff; color:#000; }
 .section,.page-hero { padding:8px 0; }
 .section-inner { width:100%; }
 .calendar-panel-large,.year-card,.finder-card { break-inside:avoid; }
 .year-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 a { color:#000 !important; }
}
