/* Portal overview: compact navigation and clear project order on every screen. */
.topbar { position: sticky; grid-template-columns: auto 1fr auto; gap: 20px; padding: 12px max(20px, calc((100vw - 1280px)/2)); min-height: 76px; }
.nav { justify-content: center; gap: 18px; flex-wrap: wrap; min-width: 0; }
.nav a { white-space: nowrap; font-size: 13px; }
.language-switcher { gap: 3px; padding: 3px; border-radius: 10px; overflow: visible; }
.language-switcher button { border: 0; border-radius: 6px; min-width: 32px; height: 32px; padding: 0 6px; font-size: 12px; }
.language-switcher button.active { color: #062336; background: #b5efff; box-shadow: 0 1px 6px #0002; }
.hero { min-height: 370px; }
.hero-content { width: min(1120px, 100%); max-width: 1120px; padding: 40px 20px; margin: auto; }
.hero-content::before { display: none; }
.hero h1 { font-size: clamp(34px, 4.5vw, 58px); }
.hero .lead { margin-bottom: 12px; }
.portal-intro { max-width: 670px; font-size: 17px; line-height: 1.65; color: #d0dfed; margin: 16px 0 22px; }
.hero-actions { gap: 9px; }
.hero-actions a { padding: 10px 16px; font-size: 13px; }
.band { padding: 46px max(24px, calc((100vw - 1280px)/2)); }
.section-head { margin-bottom: 25px; }
.section-head h2 { max-width: 850px; font-size: clamp(24px, 3vw, 34px); }
.project-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card { border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; padding: 0; }
.project-shot { aspect-ratio: 16/9; min-height: 0; height: auto; margin: 0; overflow: hidden; background: #e2ebf4; flex: 0 0 auto; }
.project-shot img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: top; }
.project-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.project-body h3 { font-size: 20px; margin: 8px 0; }
.project-body p { font-size: 14px; }
.project-status { align-self: start; font-size: 11px; letter-spacing: .04em; color: #24643e; }
.upcoming { background: #eaf4ff; border-block: 1px solid #d8e6f5; }
.upcoming .project-status { color: #855900; }
.development .project-status { color: #52697d; }
.project-actions { margin-top: auto; padding-top: 15px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.project-domain { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.project-actions .surface-action { min-height: 38px; padding: 8px 11px; }
.mobile-header { position: sticky; top: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 16px; }
.mobile-header .brand { min-width: 0; gap: 8px; }
.mobile-header .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
.mobile-header .brand-copy strong { font-size: 13px; }
.mobile-header .brand-copy small { font-size: 9px; }
.mobile-header-actions { display: contents; }
.mobile-header-actions .language-switcher { grid-row: 2; grid-column: 1/-1; width: auto; justify-self: center; grid-template-columns: repeat(6, 38px); }
.mobile-header-actions .language-switcher button { height: 32px; font-size: 12px; }
.mobile-header-actions .mobile-switch { grid-row: 1; grid-column: 2; width: auto; min-height: 34px; padding: 6px 10px; font-size: 12px; }
.mobile-header-actions .mobile-switch[href*="surface=desktop"] { display: none; }
.mobile-services-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; padding: 10px 14px; }
.mobile-services-nav a { font-size: 12px; }
.mobile-hero { min-height: 0; padding: 32px 20px; }
.mobile-hero h1 { font-size: 32px; }
.mobile-hero .portal-intro { font-size: 15px; line-height: 1.6; }
.mobile-hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
.mobile-hero-actions :is(.primary-action,.secondary-action) { width: auto; min-width: 0; font-size: 12px; padding: 10px; text-align: center; }
.mobile-section { padding: 28px 18px; }
.mobile-section h2 { font-size: 24px; line-height: 1.25; }
.mobile-projects { display: grid; gap: 12px; }
.mobile-project-card { min-width: 0; border-radius: 12px; padding: 18px; }
.mobile-project-card h3 { margin: 6px 0; }
.mobile-project-card p { margin-bottom: 10px; font-size: 14px; }
.mobile-project-card .project-actions { padding-top: 4px; }
.owner-account-card { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 26px; }
.owner-login { display: grid; gap: 16px; }
.owner-login label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.owner-login input { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px; font: inherit; background: #fff; color: var(--ink); }
.owner-login .primary-action { justify-self: start; cursor: pointer; }
.owner-account-note { margin: 0; color: var(--muted); }
.owner-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.owner-tools a { padding: 10px 14px; font-size: 14px; }
.owner-signed-in { color: #9df2d4 !important; }
[data-owner-account] .section-head h2 { color: #e8f4ff; }
[data-owner-account] .section-head p:not(.eyebrow) { color: #c6d9e8; }
.mobile-site [data-owner-account] .section-head h2 { color: #19354a; }
.mobile-site [data-owner-account] .section-head p:not(.eyebrow), [data-owner-status], [data-owner-email] { color: #435d70; }
[data-owner-account] .secondary-action { color: #19354a; background: #edf4f8; border-color: #b2c6d4; cursor: pointer; }
[data-owner-status] { overflow-wrap: anywhere; }
[data-owner-account] [hidden] { display: none !important; }
@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; gap: 12px; padding: 12px 20px; }
  .topbar .language-switcher { grid-column: 2; grid-row: 1; }
  .topbar .nav { grid-column: 1/-1; grid-row: 2; justify-content: start; }
  .project-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .project-grid,.project-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { gap: 10px; padding: 10px 14px; }
  .topbar .brand-copy small { display: none; }
  .topbar .brand-copy strong { font-size: 12px; }
  .topbar .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .topbar .brand { gap: 7px; min-width: 0; }
  .topbar .language-switcher { grid-template-columns: repeat(6, 27px); }
  .topbar .language-switcher button { min-width: 0; padding: 0; }
  .topbar .nav { gap: 8px 14px; }
  .hero-content { padding: 35px 20px; }
  .band { padding: 32px 18px; }
}
@media (max-width: 520px) {
  .topbar { grid-template-columns: 1fr; }
  .topbar .language-switcher { grid-column: 1; grid-row: 2; justify-self: start; grid-template-columns: repeat(6, 34px); }
  .topbar .nav { grid-row: 3; }
  .project-grid,.project-grid.compact { grid-template-columns: 1fr; }
  .hero-content { padding-top: 28px; }
}
