:root { --clinic-green: #387324; --clinic-dark: #222222; --clinic-pale: #f0f6e9; --clinic-border: #dfe8d8; }
body { background: #f8faf6; color: var(--clinic-dark); font-family: Nunito, system-ui, -apple-system, sans-serif; font-size: 18px; line-height: 1.6; }
a { color: var(--clinic-green); text-underline-offset: 4px; overflow-wrap: anywhere; }
a:focus-visible, .btn:focus-visible { outline: 3px solid #b27600; outline-offset: 4px; box-shadow: none; }
.portal-shell { max-width: 960px; padding: 0 24px; }
.portal-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 750; text-decoration: none; line-height: 1.2; }
.brand-logo { width: 64px; height: 64px; object-fit: contain; }
.header-note { font-size: 15px; color: #526d59; }
.welcome-panel { background: #f0f6e9; border: 1px solid var(--clinic-border); border-radius: 12px; padding: 40px; margin: 12px 0 28px; }
.eyebrow { display: block; font-size: 15px; color: #46664e; margin-bottom: 12px; }
h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 700; line-height: 1.18; overflow-wrap: anywhere; }
h2 { font-size: 25px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.welcome-text { max-width: 660px; margin-top: 18px; }
.connect-button { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #6dab3c; color: #142509; border: 2px solid #6dab3c; font-size: 20px; font-weight: 650; text-align: left; min-height: 60px; padding: 16px 24px; border-radius: 12px; margin-top: 28px; max-width: 550px; }
.connect-button:hover { background: #104e2a; color: white; }
.menu-card { display: flex; align-items: center; gap: 18px; padding: 24px; height: 100%; border: 1px solid var(--clinic-border); background: white; border-radius: 10px; text-decoration: none; color: var(--clinic-dark); }
.menu-card:hover { border-color: var(--clinic-green); }
.menu-card strong { display: block; font-size: 22px; line-height: 1.3; }
.menu-card small { display: block; color: #53695a; font-size: 15px; margin-top: 8px; }
.menu-symbol { color: var(--clinic-green); background: var(--clinic-pale); width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-size: 28px; }
.menu-arrow { margin-left: auto; font-size: 30px; }
.portal-footer { padding: 32px 0; margin-top: 28px; border-top: 1px solid var(--clinic-border); font-size: 15px; color: #526d59; }
.footer-links, .card-actions, .pagination-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.back-link { display: inline-block; padding: 12px 0; margin-bottom: 12px; }
.page-title { margin: 8px 0 24px; }
.page-intro { max-width: 640px; }
.content-card, .empty-card { background: white; border: 1px solid var(--clinic-border); border-radius: 10px; overflow: hidden; height: 100%; }
.card-body, .empty-card { padding: 28px; }
.card-image { width: 100%; height: 220px; object-fit: cover; }
.detail-image { width: 100%; height: auto; max-height: 440px; object-fit: contain; background: var(--clinic-pale); }
.outline-button { color: var(--clinic-green); border: 1px solid var(--clinic-green); font-size: 18px; min-height: 48px; padding: 11px 18px; border-radius: 10px; white-space: normal; }
.outline-button:hover { background: var(--clinic-pale); color: var(--clinic-dark); border-color: var(--clinic-green); }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.description { margin: 24px 0; }
.external-note, .date-label { color: #53695a; font-size: 15px; }
.external-note { margin-top: 12px; }
.date-label { font-weight: 600; }
.external-box { margin: 28px 0; }
.pagination-links { margin-top: 24px; justify-content: space-between; }
.skip-link { position: absolute; left: -10000px; padding: 12px; background: white; z-index: 10; }
.skip-link:focus { left: 12px; top: 12px; }
@media (max-width: 575px) {
  .portal-shell { padding: 0 16px; }
  .portal-header { padding: 20px 0; align-items: flex-start; flex-direction: column; gap: 8px; }
  .brand { font-size: 26px; } .brand-logo { width: 48px; height: 48px; }
  .welcome-panel { padding: 24px; border-radius: 18px; }
  .connect-button { font-size: 18px; padding: 14px 18px; }
  .menu-card { padding: 20px; gap: 14px; }
  .menu-card strong { font-size: 21px; }
  .card-body, .empty-card { padding: 22px; }
  .card-actions .btn { width: 100%; }
}

.official-logo { display: block; width: 280px; max-width: 100%; height: auto; }
.brand { max-width: 100%; min-width: 0; }
.menu-card > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.menu-arrow { flex-shrink: 0; }
.welcome-panel { border-top: 4px solid #6dab3c; }
@media (max-width: 575px) { .official-logo { width: 230px; } }
