/* =========================================================
   Nippon Sorocaba — site público
   Índigo (ai-zome), vermelho do hinomaru e papel branco.
   ========================================================= */

:root {
  --ai: #1e2f4f;          /* índigo */
  --ai-deep: #121d33;
  --ai-soft: #e8ecf3;
  --shu: #bc002d;         /* vermelho hinomaru */
  --shu-deep: #96001f;
  --paper: #fcfcfb;
  --washi: #f3f2ee;
  --sumi: #1c1d21;
  --muted: #5b5f6b;
  --line: #dedbd3;
  --white: #fff;

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--sumi);
  font: 400 1.0625rem/1.7 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ai); text-underline-offset: .2em; }
a:hover { color: var(--shu); }
:focus-visible { outline: 3px solid var(--shu); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.2; color: var(--ai-deep); margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 780px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ai); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.3em; border-radius: 999px;
  font: 700 .98rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--shu); color: #fff; }
.btn-primary:hover { background: var(--shu-deep); color: #fff; }
.btn-ghost { border-color: var(--ai); color: var(--ai); background: transparent; }
.btn-ghost:hover { background: var(--ai); color: #fff; }
.btn-light { background: #fff; color: var(--ai-deep); }
.btn-light:hover { background: var(--washi); color: var(--shu); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ai-deep); }
.link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--shu); padding-bottom: 2px; }

/* ---------- Barra do usuário logado ---------- */
.adminbar { background: var(--ai-deep); color: #c9d1e2; font-size: .85rem; display: flex; gap: 1em; justify-content: center; padding: 6px 12px; }
.adminbar a { color: #fff; font-weight: 700; }

/* ---------- Cabeçalho ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ai-deep); flex-shrink: 0; }
.brand-logo { max-height: 52px; width: auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--shu); box-shadow: inset 0 0 0 5px var(--white), 0 0 0 1.5px var(--ai); flex-shrink: 0; }
.brand-mark.lg { width: 56px; height: 56px; box-shadow: inset 0 0 0 7px var(--ai-deep), 0 0 0 1.5px #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 800 1.3rem/1.1 var(--serif); letter-spacing: .02em; }
.brand-text small { font-size: .78rem; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 10px; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: block; white-space: nowrap; padding: 26px 8px; text-decoration: none; color: var(--sumi); font-weight: 500; font-size: .98rem; border-bottom: 3px solid transparent; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.current > a { color: var(--ai); border-bottom-color: var(--shu); }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); margin-left: 7px; opacity: .6; }
.sub { position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--shu); list-style: none; margin: 0; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; box-shadow: 0 18px 40px -20px rgba(18,29,51,.35); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 18px; color: var(--sumi); text-decoration: none; font-size: .95rem; }
.sub a:hover { background: var(--washi); color: var(--shu); }
.sub small { display: block; color: var(--muted); font-size: .78rem; }
.sub-mega { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; padding: 16px 20px; min-width: 520px; left: 50%; margin-left: -260px; }
.sub-mega ul { list-style: none; margin: 0; padding: 0; }
.sub-mega a { padding: 6px 4px; display: flex; align-items: center; gap: 10px; }
.sub-mega .sub-title { font: 800 1rem var(--serif); color: var(--ai-deep); border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 8px; }
.sub-mega .k { font-family: var(--serif); color: var(--shu); width: 2.2em; font-size: .95rem; }

.nav-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.nav-search input { border: 0; background: transparent; padding: 8px 2px 8px 12px; width: 70px; transition: width .2s; font: inherit; font-size: .9rem; }
.nav-search input:focus { outline: none; }
.nav-search:focus-within { border-color: var(--ai); }
.nav-search:focus-within input { width: 140px; }
.nav-search button { border: 0; background: transparent; padding: 8px 12px; color: var(--ai); cursor: pointer; }

.menu-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 24px; height: 2px; background: var(--ai-deep); position: relative; transition: .2s; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -7px; } .menu-toggle .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1220px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; max-height: calc(100vh - 76px); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul > li > a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sub, .sub-mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; margin: 0; padding: 4px 0 8px 12px; display: none; }
  .has-sub.open > .sub { display: block; }
  .has-sub.open > .sub-mega { display: grid; grid-template-columns: 1fr; }
  .nav-search { margin-top: 14px; }
  .nav-search input, .nav-search:focus-within input { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-kicker { color: var(--muted); font-size: .98rem; margin-bottom: 1.2em; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); line-height: .98; letter-spacing: -.01em; margin-bottom: .35em; color: var(--ai-deep); }
.hero-text { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 34em; color: #34373f; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }

.hero-sun { position: relative; display: grid; justify-items: center; padding-right: 2.4em; }
.hero-vertical {
  position: absolute; right: 0; top: 8px; margin: 0;
  writing-mode: vertical-rl; text-orientation: upright; font: 600 clamp(1rem, 1.6vw, 1.25rem)/1 var(--serif);
  letter-spacing: .5em; color: var(--ai); opacity: .85;
}
.sun-slide { margin: 0; display: grid; justify-items: center; gap: 22px; width: 100%; }
.sun-slide[hidden] { display: none; }
.sun {
  width: min(420px, 74vw); aspect-ratio: 1; border-radius: 50%;
  background: var(--shu); display: grid; place-items: center; overflow: hidden; text-decoration: none;
  box-shadow: 0 0 0 10px var(--white), 0 0 0 11px var(--line);
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { transform: translateY(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.sun img { width: 100%; height: 100%; object-fit: cover; }
.sun-date { display: grid; justify-items: center; color: #fff; line-height: 1; }
.sun-day { font: 800 clamp(5rem, 13vw, 9rem)/.9 var(--serif); }
.sun-month { font: 600 clamp(1.1rem, 2vw, 1.5rem) var(--serif); letter-spacing: .08em; margin-top: .3em; }
.sun-slide figcaption { text-align: center; max-width: 380px; display: grid; gap: 4px; }
.sun-label { color: var(--shu); font-weight: 700; font-size: .9rem; }
.sun-slide figcaption strong { font: 800 1.35rem/1.25 var(--serif); color: var(--ai-deep); }
.sun-slide figcaption span:not(.sun-label) { color: var(--muted); }
.sun-slide figcaption a { font-weight: 700; justify-self: center; margin-top: 4px; }
.sun-dots { display: flex; gap: 8px; margin-top: 14px; }
.sun-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ai); background: transparent; padding: 0; cursor: pointer; }
.sun-dots button[aria-current="true"] { background: var(--ai); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sun { padding-right: 1.8em; }
  .hero-vertical { font-size: .9rem; }
  .sun { width: min(280px, 66vw); }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
}

/* ---------- Seções ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding-top: 36px; padding-bottom: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.agenda { background: var(--washi); }
.empty { color: var(--muted); }

/* ---------- Agenda ---------- */
.agenda-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.agenda-list.compact { grid-template-columns: 1fr; }
.event-row { display: grid; grid-template-columns: 66px 1fr; gap: 16px; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
.er-date { display: grid; justify-items: center; align-content: start; border-right: 2px solid var(--shu); padding-right: 14px; line-height: 1; }
.er-day { font: 800 2.2rem/1 var(--serif); color: var(--ai-deep); }
.er-month { font-size: .9rem; color: var(--shu); font-weight: 700; margin-top: 6px; }
.er-body h3 { font-size: 1.12rem; margin-bottom: .3em; }
.er-body h3 a { text-decoration: none; color: var(--ai-deep); }
.er-body h3 a:hover { color: var(--shu); }
.er-when, .er-where { margin: 0; font-size: .92rem; color: var(--muted); }
.er-dept { display: block; }
.month-title { font-size: 1.3rem; margin: 32px 0 8px; }

/* ---------- Notícias ---------- */
.news-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; }
.news-list { display: grid; gap: 0; align-content: start; }
.news-list .post-card { grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-list .post-card:first-child { padding-top: 0; }
.news-list .pc-media { aspect-ratio: 1; }
.news-list .pc-kanji { font-size: 1.5rem; }
.news-list h3 { font-size: 1.02rem; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

.post-card { display: grid; gap: 14px; align-content: start; }
.pc-media { display: grid; place-items: center; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); background: var(--dc, var(--ai)); text-decoration: none; position: relative; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .pc-media img { transform: scale(1.03); }
.pc-media:not(:has(img))::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 30%, rgba(255,255,255,.14) 0 22%, transparent 23%); }
.pc-kanji { font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--serif); color: rgba(255,255,255,.92); letter-spacing: .05em; position: relative; z-index: 1; }
.pc-body h3 { margin: .25em 0 .35em; }
.pc-body h3 a { color: var(--ai-deep); text-decoration: none; }
.pc-body h3 a:hover { color: var(--shu); }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .85rem; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--dc, var(--ai)) 12%, white); color: var(--dc, var(--ai)); font-weight: 700; text-decoration: none; }
.tag:hover { background: var(--dc, var(--ai)); color: #fff; }
.pc-type { color: var(--muted); }
.pc-excerpt { color: #3d4049; font-size: .98rem; margin-bottom: .5em; }
.post-card time { color: var(--muted); font-size: .88rem; }
.post-card.big h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.post-card.big .pc-kanji { font-size: clamp(4rem, 9vw, 6.5rem); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 36px 28px; }
.card-grid.three { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.post-list { display: grid; gap: 28px; }
.post-list .post-card { grid-template-columns: 200px 1fr; gap: 20px; }
@media (max-width: 600px) { .post-list .post-card { grid-template-columns: 1fr; } }
.result-count { color: var(--muted); font-size: .92rem; }

/* ---------- Departamentos ---------- */
.tabs { display: flex; gap: 4px; background: var(--washi); border-radius: 999px; padding: 4px; }
.tabs button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font: 700 .95rem var(--sans); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ai); color: #fff; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dept-tile { background: var(--white); padding: 26px 22px 24px; text-decoration: none; color: var(--sumi); display: grid; align-content: start; gap: 6px; position: relative; transition: background .15s; }
.dept-tile:hover { background: var(--washi); color: var(--sumi); }
.dt-kanji { font: 800 2.9rem/1.1 var(--serif); color: var(--dc); letter-spacing: .04em; min-height: 1.2em; transition: color .15s; }
.dt-kanji.len-3 { font-size: 2.5rem; }
.dt-kanji.len-4, .dt-kanji.long { font-size: 1.75rem; line-height: 1.6; }
.dept-tile:hover .dt-kanji { color: var(--shu); }
.dt-name { font: 800 1.2rem var(--serif); color: var(--ai-deep); margin-top: 8px; }
.dt-desc { font-size: .92rem; color: var(--muted); line-height: 1.55; }
.dept-section + .dept-section { margin-top: 56px; }
.dept-section h2 { margin-bottom: 20px; }

/* ---------- Sobre / linha do tempo ---------- */
.about { background: var(--washi); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-text p { font-size: 1.08rem; max-width: 36em; }
.about-figures { color: var(--ai-deep); }
.about-figures strong { font: 800 1.5rem var(--serif); color: var(--shu); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--ai); }
.timeline li { position: relative; padding: 0 0 22px; color: #3a3d45; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--washi); border: 2px solid var(--ai); }
.timeline li:last-child::before { background: var(--shu); border-color: var(--shu); }
.timeline span { display: block; font: 800 1.25rem var(--serif); color: var(--ai-deep); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Sedes ---------- */
.venue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.venue-card { display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--sumi); padding-top: 18px; border-top: 3px solid var(--ai); }
.venue-card img { aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); margin-bottom: 8px; }
.venue-card:hover strong { color: var(--shu); }
.vc-label { color: var(--shu); font-weight: 700; font-size: .9rem; }
.venue-card strong { font: 800 1.35rem var(--serif); color: var(--ai-deep); }
.vc-desc { color: #3d4049; }
.vc-addr { color: var(--muted); font-size: .9rem; }

/* ---------- Faixa "associe-se" ---------- */
.join {
  background-color: var(--ai);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.5'%3E%3Cpath d='M0 40a40 40 0 0 1 80 0M10 40a30 30 0 0 1 60 0M20 40a20 20 0 0 1 40 0M30 40a10 10 0 0 1 20 0'/%3E%3Cpath d='M-40 20a40 40 0 0 1 80 0M-30 20a30 30 0 0 1 60 0M-20 20a20 20 0 0 1 40 0M-10 20a10 10 0 0 1 20 0M40 20a40 40 0 0 1 80 0M50 20a30 30 0 0 1 60 0M60 20a20 20 0 0 1 40 0M70 20a10 10 0 0 1 20 0'/%3E%3C/g%3E%3C/svg%3E");
  color: #fff; padding: clamp(48px, 7vw, 80px) 0;
}
.join-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; }
.join h2 { color: #fff; }
.join p { color: #d5dbe8; max-width: 38em; margin: 0; font-size: 1.08rem; }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .join-inner { grid-template-columns: 1fr; } }

/* ---------- Cabeçalhos de página ---------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.page-head .lead { max-width: 42em; }
.lead { font-size: 1.15rem; color: #3d4049; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; margin-bottom: 14px; color: var(--muted); }
.crumbs a, .crumbs span { color: var(--muted); text-decoration: none; }
.crumbs > * + *::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a:hover { color: var(--shu); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.filter-chips a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--sumi); font-size: .94rem; background: var(--paper); }
.filter-chips a:hover { border-color: var(--ai); }
.filter-chips a[aria-current] { background: var(--ai); border-color: var(--ai); color: #fff; }

.news-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.news-filter label { display: block; }
.news-filter .grow { flex: 1 1 220px; }
.news-filter select, .news-filter input { width: 100%; min-height: 46px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: .98rem; background: var(--paper); }

.with-aside { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-top: 44px; padding-bottom: 80px; align-items: start; }
.with-aside.right { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 920px) { .with-aside, .with-aside.right { grid-template-columns: 1fr; } }
.side-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); position: sticky; top: 100px; }
.side-nav a { display: block; padding: 8px 16px; text-decoration: none; color: var(--muted); margin-left: -2px; border-left: 2px solid transparent; }
.side-nav a:hover { color: var(--ai); }
.side-nav a[aria-current] { color: var(--ai-deep); font-weight: 700; border-left-color: var(--shu); }
@media (max-width: 920px) { .side-nav ul { position: static; display: flex; flex-wrap: wrap; border: 0; gap: 4px; } .side-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: 0; } .side-nav a[aria-current] { border-color: var(--ai); } }

/* ---------- Conteúdo de texto ---------- */
.prose { font-size: 1.08rem; line-height: 1.8; max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--shu); font-family: var(--serif); font-size: 1.2rem; color: var(--ai-deep); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 2em; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ai-deep); font-weight: 700; width: 34%; }
.prose thead th { border-bottom: 2px solid var(--ai); width: auto; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose small { color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose li[data-list="bullet"] { list-style-type: disc; }
.prose .ql-ui { display: none; }
.prose .ql-indent-1 { margin-left: 1.5em; }
.updated { color: var(--muted); font-size: .9rem; margin-top: 2.5em; }

/* ---------- Página de departamento ---------- */
.dept-head { background: var(--dc); color: #fff; position: relative; overflow: hidden; }
.dh-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.dh-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding-top: 44px; padding-bottom: 40px; }
.dept-head h1 { color: #fff; }
.dept-head .lead { color: rgba(255,255,255,.88); max-width: 36em; margin: 0; }
.dept-head .crumbs a, .dept-head .crumbs span { color: rgba(255,255,255,.75); }
.dept-head .crumbs > * + *::before { color: rgba(255,255,255,.4); }
.dh-kanji { margin: 0; font: 800 clamp(3.5rem, 10vw, 7.5rem)/1 var(--serif); color: rgba(255,255,255,.95); text-align: right; letter-spacing: .04em; }
.dh-kanji small { display: block; font: 500 1rem var(--sans); letter-spacing: .1em; opacity: .75; margin-top: 10px; }
@media (max-width: 700px) { .dh-inner { grid-template-columns: 1fr; } .dh-kanji { text-align: left; order: -1; font-size: 3.4rem; } }

.block { margin-top: 48px; }
.block:first-child { margin-top: 0; }
.info-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--shu); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.info-card h2 { font-size: 1.35rem; }
.info-card h3 { font-size: 1.05rem; margin-top: 26px; }
.info-card dl { margin: 0; display: grid; gap: 4px; }
.info-card dt { font-weight: 700; color: var(--ai-deep); font-size: .9rem; margin-top: 10px; }
.info-card dd { margin: 0; color: #3d4049; }
.info-actions { display: grid; gap: 10px; margin-top: 22px; }
.info-actions .link { justify-self: start; margin-top: 4px; }
@media (max-width: 920px) { .info-card { position: static; } }
.mini-depts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mini-depts.inline { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-depts a { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; color: var(--sumi); }
.mini-depts.inline a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.mini-depts span { font-family: var(--serif); color: var(--shu); width: 2.2em; }
.mini-depts.inline span { width: auto; }
.mini-events { list-style: none; margin: 0; padding: 0; }
.mini-events a { display: flex; gap: 10px; padding: 6px 0; text-decoration: none; color: var(--sumi); }
.mini-events time { color: var(--shu); font-weight: 700; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.amenities li { padding: 12px 16px; background: var(--washi); border-radius: var(--radius); border-left: 3px solid var(--ai); }
.map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }
.venue-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.venue-mini span { display: block; color: var(--muted); font-size: .92rem; }

/* ---------- Artigo / evento ---------- */
.article-head { padding-top: 44px; padding-bottom: 24px; }
.article-head h1 { margin-top: .4em; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .92rem; }
.article-cover { margin: 0 auto 32px; }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.article .prose { margin-bottom: 36px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 0 56px; border-top: 1px solid var(--line); }
.share span { color: var(--muted); font-size: .92rem; margin-right: 6px; }
.share a, .share button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 14px; font: 500 .92rem var(--sans); color: var(--ai); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ai); }
.related { background: var(--washi); }

.event-head { background: var(--white); border-bottom: 1px solid var(--line); }
.eh-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding-top: 40px; padding-bottom: 40px; }
.eh-sun { width: clamp(120px, 16vw, 170px); aspect-ratio: 1; border-radius: 50%; background: var(--shu); color: #fff; display: grid; place-content: center; justify-items: center; line-height: 1; }
.eh-sun .sun-day { font-size: clamp(3rem, 6vw, 4.4rem); }
.eh-sun .sun-month { font-size: 1rem; }
@media (max-width: 600px) { .eh-inner { grid-template-columns: 1fr; } }

.preview-bar { background: #fff4d6; color: #5a4300; text-align: center; padding: 10px var(--gutter); font-size: .95rem; border-bottom: 1px solid #f0d58a; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 18px; max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: .95rem; color: var(--ai-deep); }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfccc3; border-radius: var(--radius); font: inherit; background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 3px var(--ai-soft); }
.field.has-error input, .field.has-error textarea { border-color: var(--shu); }
.field em { color: var(--shu); font-style: normal; font-size: .9rem; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; }
.notice.success { background: #e7f4ec; border-left: 4px solid #2d7a4b; color: #1d4d31; }

/* ---------- Paginação, vazio, erro ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--sumi); }
.pagination [aria-current] { background: var(--ai); color: #fff; border-color: var(--ai); }
.pagination .gap { border: 0; }
.empty-state { text-align: center; padding: 56px 16px; display: grid; justify-items: center; gap: 8px; color: var(--muted); }
.error-page { padding: clamp(60px, 10vw, 120px) 0; text-align: center; }
.error-page .lead { max-width: 34em; margin: 0 auto; }
.error-page .hero-actions { justify-content: center; }
.error-code { width: 150px; aspect-ratio: 1; border-radius: 50%; background: var(--shu); color: #fff; display: grid; place-items: center; font: 800 2.6rem var(--serif); margin: 0 auto 28px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ai-deep); color: #b9c2d6; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb3c2; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-name { font: 800 1.5rem var(--serif); color: #fff; margin: 0; }
.footer-sub { margin: 4px 0 0; }
.footer-jp { font-family: var(--serif); letter-spacing: .2em; color: #8d98b3; margin: 8px 0 0; font-size: .9rem; }
.footer-contact { display: grid; gap: 6px; justify-items: end; text-align: right; }
.social { display: flex; gap: 16px; margin-top: 8px; }
.footer-venues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 32px 0; }
.fv { display: grid; gap: 2px; color: #b9c2d6 !important; }
.fv strong { color: #fff; font: 700 1.05rem var(--serif); }
.fv-label { color: #ff8fa6; font-size: .85rem; font-weight: 700; }
.fv:hover strong { color: #ffb3c2; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.footer-bottom span:last-child { display: flex; gap: 18px; }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-contact { justify-items: start; text-align: left; }
  .footer-venues { grid-template-columns: 1fr; }
}

.sub-mega .k:empty::before, .mini-depts span:empty::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--shu); vertical-align: middle; }
.mini-depts.inline span:empty { display: none; }

/* Botão do fórum no menu */
.main-nav > ul > li.nav-forum { display: flex; align-items: center; margin-left: 6px; }
.main-nav > ul > li.nav-forum > a { padding: 7px 14px; border: 2px solid var(--ai); border-radius: 999px; color: var(--ai); font-weight: 700; }
.main-nav > ul > li.nav-forum > a:hover { background: var(--ai); color: #fff; border-color: var(--ai); }
@media (max-width: 1220px) {
  .main-nav > ul > li.nav-forum { margin: 14px 0 0; }
  .main-nav > ul > li.nav-forum > a { width: 100%; text-align: center; border-bottom: 2px solid var(--ai); }
}
.forum-box { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.forum-box h3 { margin-top: 0; }
.forum-box p { color: #3d4049; font-size: .95rem; }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; gap: 0; height: 60px; min-width: 60px; padding: 0 15px; border-radius: 999px;
  background: #25d366; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transition: transform .2s, box-shadow .2s, gap .25s; }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; flex-shrink: 0; }
.wa-float .wa-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s ease; }
.wa-float:hover, .wa-float:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.28); gap: 10px; }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 140px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25d366; z-index: -1; animation: wa-pulse 2.4s ease-out 3; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.5); opacity: 0; } }
@media (max-width: 600px) { .wa-float { height: 54px; min-width: 54px; padding: 0 12px; right: 16px; bottom: 16px; } .wa-float svg { width: 28px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float .wa-label { transition: none; } .wa-float::before { animation: none; } }
@media print { .wa-float { display: none; } }
