/* Owner portal: shared navigation and compact, accessible task surfaces.
   Loaded last so the imported production stylesheet remains recoverable. */
:root { --portal-accent: #0e5946; --portal-link: #075f9c; --portal-border: #dce3df; }
body { background: #f6f7f4; color: #20352d; line-height: 1.55; }
html, body { overflow-x: clip; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #076db7; outline-offset: 4px; }
[id] { scroll-margin-top: 150px; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .75rem 1rem; background: white; color: #173d31; border: 2px solid currentColor; border-radius: 8px; }
.skip-link:focus { top: .5rem; }
.site-header { grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: .7rem max(1rem, calc((100vw - 1180px) / 2)); background: #fff; box-shadow: none; backdrop-filter: none; border-color: var(--portal-border); }
.site-header .brand { grid-column: 1; grid-row: 1; width: max-content; }
.brand-mark { background: #0e5946; box-shadow: none; border-radius: 12px; }
.brand small { color: #56655e; }
.site-header .lang-switch { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: .65rem; }
.site-header .lang-select { display: block !important; width: auto; min-height: 44px; max-width: 185px; border-radius: 10px; font-weight: 550; }
.site-header .lang-select-label { display: inline !important; font-size: .85rem; }
.site-header .top-nav { grid-column: 1 / -1; grid-row: 2; gap: .3rem; flex-wrap: wrap; justify-content: flex-start; padding-top: .35rem; border-top: 1px solid #edf0ed; }
.nav-link { color: #3b5046; padding: .5rem .8rem; border-radius: 8px; font-size: .93rem; font-weight: 600; }
.nav-link[aria-current="page"] { background: #e6f0ea; color: #0b4b38; }
.nav-link:hover { background: #edf3ef; color: #0b4b38; }
main { padding-top: 1.5rem; }
.hero-shell, .compact-hero { margin-top: 0; padding-top: 0; gap: 1.5rem; align-items: start; }
.hero-copy, .compact-hero .hero-copy { padding: 1.6rem; background: #fff; border: 1px solid var(--portal-border); border-radius: 18px; box-shadow: none; }
.hero-copy h1, .compact-hero .hero-copy h1 { max-width: 24ch; font-size: clamp(1.85rem, 3.2vw, 2.7rem); line-height: 1.12; letter-spacing: -.035em; color: #203b2e; margin-bottom: .85rem; }
.hero-copy p, .compact-hero .hero-copy p { font-size: 1rem; line-height: 1.6; color: #53645a; }
.eyebrow { background: transparent; color: #426753; padding: 0; font-size: .75rem; letter-spacing: .1em; font-weight: 750; }
.hero-actions { margin-top: 1.1rem; }
.btn, .ticket-btn { border-radius: 10px; font-weight: 650; box-shadow: none; }
.btn-primary, .ticket-btn.primary { background: var(--portal-accent); box-shadow: none; }
.btn-primary:hover, .ticket-btn.primary:hover { background: #084735; }
.btn-secondary, .ticket-btn.secondary { background: #fff; color: #0e5946; border: 1px solid #bccdc2; }
.hero-card.note-card, .hero-card.home-summary, .note-card, .home-summary { min-height: 0; height: auto; padding: 1.4rem; background: #edf3ee; border: 1px solid var(--portal-border); border-radius: 18px; box-shadow: none; }
.home-summary h2 { margin: 0 0 .6rem; font-size: 1.2rem; }
.summary-list { margin-top: .5rem; gap: .35rem; }
.summary-list a { padding: .7rem 0; border-bottom: 1px solid #d5e2d8; border-radius: 0; background: none; color: #124d39; font-weight: 600; }
.summary-list a:last-child { border-bottom: 0; }
.summary-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-summary .micro-note { font-size: .85rem; margin-bottom: 0; }
.focus-strip { background: none; color: #203b2e; padding: .75rem 0; margin: .25rem 0 .75rem; box-shadow: none; }
.focus-strip h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.02em; }
.focus-strip p { color: #57665e; max-width: 70ch; }
.action-grid { gap: .9rem; }
.action-card { min-height: 205px; padding: 1.25rem; border-radius: 16px; border: 1px solid var(--portal-border); box-shadow: none; gap: .5rem; }
.action-card.primary { background: #fff; border-top: 3px solid #0e5946; }
.action-card strong { font-size: 1.2rem; letter-spacing: -.02em; }
.action-card p { font-size: .95rem; }
.action-card span { font-size: .75rem; color: #6b7a70; }
.action-card em { color: #0e5946; font-weight: 650; }
.action-card:hover { border-color: #789b86; box-shadow: 0 5px 18px #203b2e0a; transform: translateY(-2px); }
.portal-context { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.4rem 0; }
.portal-context .info-panel { background: #edf3ee; border: 1px solid var(--portal-border); border-radius: 16px; box-shadow: none; }
.portal-context h2 { font-size: 1.1rem; }
.portal-context a { color: #0e5946; font-weight: 650; text-underline-offset: 3px; }
.availability-label { display: inline-block; margin-bottom: .7rem; padding: .2rem .6rem; border: 1px solid #d4c39a; border-radius: 6px; background: #fff8e8; color: #725618; font-size: .8rem; }
.portal-context .initiative-note { margin-top: .75rem; padding: 0; background: none; border: 0; color: #56635d; font-size: .9rem; }
.open-door-board { box-shadow: none; background: #fff; border-color: var(--portal-border); border-radius: 18px; margin-top: 1.5rem; }
.open-door-copy h2 { font-size: 1.75rem; }
.open-door-poster { max-width: 280px; justify-self: center; }
.open-door-poster img { border-radius: 12px; box-shadow: none; }
.board-list li { box-shadow: none; border-radius: 8px; }
.info-grid.compact-info { grid-template-columns: 1fr; }
.info-panel, .ticket-model-panel { border-radius: 16px; box-shadow: none; }
.ticket-model-panel { border-color: var(--portal-border); }
.ticket-model-panel h2 { letter-spacing: -.025em; font-size: 1.45rem; }
.ticket-form textarea { resize: vertical; }
.ticket-form .check-row input[type="checkbox"] { width: 24px !important; height: 24px !important; inline-size: 24px !important; block-size: 24px !important; min-width: 24px !important; flex: 0 0 24px !important; accent-color: #0e5946; }
.ticket-form .check-row { min-height: 48px; }
.ticket-note { font-size: .9rem; }
.library-panel { border: 1px solid var(--portal-border); background: #fff; }
.library-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .4fr) auto; gap: .8rem; align-items: end; }
.library-toolbar label { display: grid; gap: .4rem; color: #3b5046; font-size: .9rem; font-weight: 600; }
.library-toolbar input, .library-toolbar select { width: 100%; min-width: 0; min-height: 46px; border-radius: 10px; font-weight: 400; }
.library-toolbar button { min-height: 46px; cursor: pointer; }
.library-status { min-height: 1.5em; color: #53645a; font-size: .9rem; margin: 1rem 0 .5rem; }
.doc-card { box-shadow: none; border-radius: 12px; border-color: var(--portal-border); }
.doc-card h3 { font-size: 1.1rem; }
.doc-meta { margin-top: .75rem; }
.doc-actions a { color: #0e5946; background: #edf3ee; border-radius: 8px; font-weight: 650; }
.empty-state { border: 1px dashed #b4c5b8; background: #f6f8f5; border-radius: 10px; padding: 1.2rem; }
.site-footer { margin-top: 1rem; padding-left: 0; padding-right: 0; font-size: .9rem; }
@media (min-width: 981px) { .site-header .menu-toggle { display: none !important; } }
@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; padding: .6rem 1rem; gap: .4rem; }
  .site-header .menu-toggle { grid-column: 2; grid-row: 1; display: none; border-radius: 8px; background: #fff; }
  .js .site-header .menu-toggle { display: inline-flex; }
  .site-header .lang-switch { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .site-header .lang-select { min-height: 40px; }
  .site-header .top-nav { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; overflow: visible; }
  .js .site-header .top-nav { display: none; }
  .js .nav-open .top-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-shell, .compact-hero { grid-template-columns: 1fr; gap: 1rem; }
  .home-hero { grid-template-columns: minmax(0, 1.1fr) minmax(230px, .8fr); }
  .site-header .top-nav .nav-link { text-align: left; justify-content: flex-start; }
}
@media (max-width: 620px) {
  main { width: calc(100% - 2rem); padding-top: 1rem; }
  .home-hero { grid-template-columns: 1fr; }
  .hero-copy, .compact-hero .hero-copy { padding: 1.2rem; }
  .hero-copy h1, .compact-hero .hero-copy h1 { max-width: none; font-size: 1.9rem; line-height: 1.15; }
  .hero-copy p, .compact-hero .hero-copy p { font-size: .97rem; }
  .hero-card.home-summary { padding: 1.2rem; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { flex: 1 1 auto; }
  .portal-context, .library-toolbar { grid-template-columns: 1fr; }
  .action-card { min-height: 0; }
  .library-toolbar { gap: .65rem; }
  .library-toolbar button { justify-self: start; }
  .library-panel { padding: 1rem; }
  .doc-card { grid-template-columns: 1fr; }
  .doc-icon { display: none; }
  .site-footer { width: calc(100% - 2rem); }
}

.home-search { display: grid; gap: .65rem; margin-top: .9rem; }
.home-search label { font-size: .9rem; color: #3b5046; }
.home-search input[type="search"] { min-width: 0; width: 100%; min-height: 46px; padding: .65rem .8rem; border: 1px solid #bbcbbf; border-radius: 8px; background: #fff; }
.home-search button { cursor: pointer; }
.hero-actions .btn { border-radius: 10px; }

.ticket-pipeline { grid-template-columns: 1fr; gap: .5rem; }
.ticket-step { padding: .7rem .85rem; border-radius: 8px; background: #edf3ee; text-align: left; font-weight: 600; }
.calendar-linked-grid { grid-template-columns: 1fr; }
.ticket-form label { text-transform: none; letter-spacing: 0; font-weight: 650; font-size: .95rem; }
.ticket-form input, .ticket-form select, .ticket-form textarea { font-weight: 400; font-size: 1rem; }
.ticket-form textarea { resize: vertical !important; }
.ticket-note { margin-top: 1rem; font-weight: 500; }

body[data-page="library"] .hero-shell { grid-template-columns: 1fr; }
body[data-page="library"] .hero-copy h1 { max-width: none; }
.library-help { margin-top: 1rem; }
@media (max-width:620px) {
  .home-summary .micro-note { margin-top: .75rem; }
  .home-search { gap: .5rem; }
}
