/* Shared responsive layout; desktop presentation stays in the original styles. */
@media (max-width: 1000px) {
  .container > *, .field, .field-grid > *, .employee-admin-grid > * { min-width: 0; }
  .field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
  .main-nav, .site-header.is-scrolled .main-nav { left: auto; right: 0; height: auto; max-height: calc(100dvh - var(--header-height) - 12px); padding: 18px 22px; width: min(340px, calc(100% - 16px)); }
  .main-nav .nav-link { min-height: 46px; font-size: 14px; }
  .main-nav .nav-contact, .main-nav .nav-employee { margin-top: 10px; }
  .main-nav::before { margin-bottom: 8px; }
}
@media (max-width: 760px) {
  :root { --header-height: 70px; --header-height-scrolled: 66px; }
  html { scroll-padding-top: 82px; }
  .container { width: calc(100% - 32px); }
  .site-header .header-inner { width: calc(100% - 28px); }
  .site-header .brand { min-width: 0; max-width: calc(100% - 58px); }
  .site-header .brand img { max-width: 100%; }
  .menu-toggle { flex-shrink: 0; min-width: 44px; min-height: 44px; }
  .site-header.is-scrolled .menu-toggle { color: #303033; border-color: #777; }
  .section, .difference-section { padding-block: 32px; }
  .section-heading { margin-bottom: 22px; }
  .section h2, .difference-intro h2, .cta-content h2 { font-size: clamp(25px, 6.5vw, 32px); line-height: 1.2; }
  .eyebrow { font-size: 10px; letter-spacing: .1em; margin-bottom: 12px; }
  .hero { min-height: auto; }
  .hero-content { padding-block: 100px 36px; gap: 22px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .hero-lede { font-size: 16px; margin-block: 18px; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .button { min-height: 44px; padding: 12px 16px; font-size: 11px; gap: 12px; }
  .hero-proof { position: relative; inset: auto; transform: none; width: 100%; max-width: 100%; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .proof-row { margin: 0; gap: 10px; }
  .proof-row strong { font-size: 44px; }
  .proof-row > span { font-size: 13px; }
  .hero-proof p { padding: 0; margin: 0; border: 0; font-size: 13px; }
  .scroll-cue { display: none; }
  .service-grid { gap: 14px; grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .service-card { min-width: 0; height: auto; perspective: none; }
  .service-card:hover { transform: none; box-shadow: none; }
  .service-card .service-card-inner { display: block; height: auto; transform: none; transition: none; will-change: auto; }
  .service-card-back { padding: 16px; transform: none; }
  .service-card:not(.service-card--flipped) .service-card-back,
  .service-card--flipped .service-card-front { display: none; }
  .service-card-back-button, .service-more-toggle { min-height: 44px; scroll-margin-top: 84px; }
  .service-visual { min-height: 0; height: clamp(120px, 36vw, 190px); padding: 12px; }
  .service-topline { font-size: 9px; }
  .service-round-icon, .service-visual-label { display: none; }
  .service-info { padding: 16px; }
  .service-info h3 { font-size: 21px; line-height: 1.25; margin-block: 0 8px; }
  .service-info > p { font-size: 14px; line-height: 1.5; min-height: 0; margin-block: 10px; }
  .service-info-top { gap: 8px; }
  .service-index { font-size: 8px; letter-spacing: .08em; }
  .service-tags { gap: 5px; margin-block: 12px; flex-wrap: wrap; }
  .service-tags span { font-size: 11px; }
  .service-info .text-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
  .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .metric { min-height: 72px; padding-left: 12px; }
  .metric strong { font-size: 32px; }
  .metric span { font-size: 13px; }
  .difference-layout { gap: 22px; }
  .difference-item { padding-block: 14px; }
  .difference-item h3 { font-size: 17px; }
  .difference-item p { font-size: 14px; line-height: 1.5; }
  .cta-section { min-height: 0; margin-block: 18px; }
  .cta-content { padding-block: 30px; }
  .cta-bottom { gap: 18px; margin-top: 20px; }
  .site-footer { padding-block: 20px 72px; }
  .footer-main { gap: 18px; }
  .footer-brand-column { width: min(100%, 270px); }
  .page-hero { min-height: 0; padding-block: 92px 24px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero-lede { font-size: 15px; }
  .breadcrumbs { margin-bottom: 16px; font-size: 12px; flex-wrap: wrap; }
  .form-section, .contact-section { padding-block: 24px 32px; }
  .form-layout, .contact-layout { display: flex; flex-direction: column; gap: 20px; }
  .form-panel, .contact-form-card { padding: 20px 16px; order: -1; width: 100%; }
  .form-panel h2, .contact-form-card h2, .employee-login-panel h2 { font-size: 24px; }
  .form-aside { position: relative; top: auto; min-height: 0; padding: 20px; width: 100%; }
  .form-aside h2 { margin-block: 12px; max-width: none; font-size: 24px; }
  .form-aside > p { max-width: none; font-size: 14px; }
  .aside-points { margin-top: 16px; gap: 10px; }
  .aside-footer { position: static; margin-top: 16px; }
  .field-grid { gap: 16px; }
  .field > span, .field > label { font-size: 14px; }
  .field input, .field select, .field textarea { font-size: 16px; padding: 11px 12px; }
  .field textarea { min-height: 110px; }
  .form-actions { gap: 12px; flex-wrap: wrap; margin-top: 20px; }
  .form-progress { margin-block: 20px; }
  .employee-layout { grid-template-columns: 1fr; }
  .employee-access { padding-block: 90px 32px; }
  .employee-story { min-height: 0; padding: 22px; }
  .employee-story h1 { font-size: 28px; margin-block: 10px; }
  .employee-story-content > p { font-size: 14px; }
  .employee-story-footer { margin-top: 16px; }
  .employee-login-panel { padding: 24px 20px; }
  .employee-dashboard { padding-top: 86px; }
  .employee-dashboard > .container { display: flex; flex-direction: column; }
  .employee-dashboard-heading { padding: 20px; gap: 16px; margin-bottom: 18px; border-radius: 16px; }
  .employee-dashboard-heading h1 { font-size: 28px; }
  .employee-dashboard-heading > div > p:last-child { font-size: 14px; }
  .employee-dashboard-actions { gap: 10px; flex-wrap: wrap; }
  .employee-admin { order: 1; margin-top: 0; }
  .employee-account-card, .employee-self-records, .employee-password-card { order: 2; }
  .employee-admin > h2 { font-size: 24px; }
  .employee-account-card, .employee-self-records, .employee-password-card, .employee-admin-card, .management-detail-card { padding: 18px 14px; border-radius: 14px; }
  .portal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block: 16px; }
  .portal-metrics article { padding: 14px; gap: 6px; border-radius: 12px; }
  .portal-metrics strong { font-size: 28px; }
  .portal-metrics small { font-size: 12px; line-height: 1.4; }
  .portal-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
  .portal-shortcuts a { padding: 12px; gap: 8px; min-height: 44px; font-size: 13px; }
  .portal-absence-alert { padding: 12px; gap: 4px; }
  .employee-account-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .employee-account-details > div { padding: 12px; overflow-wrap: anywhere; }
  #portal-team .employee-users-table { min-width: 0; width: 100%; }
  #portal-team .employee-users-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #portal-team .employee-users-table tbody { display: block; }
  #portal-team .employee-users-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; border-bottom: 1px solid var(--line); gap: 8px 12px; }
  #portal-team .employee-users-table td { display: block; padding: 0; border: 0; font-size: 14px; overflow-wrap: anywhere; }
  #portal-team .employee-users-table td::before { content: attr(data-label); display: block; color: #626265; font-size: 11px; font-weight: 600; }
  #portal-team .employee-users-table td:first-child, #portal-team .employee-users-table td:last-child, #portal-team td[colspan] { grid-column: 1 / -1; }
  .employee-user-actions { gap: 6px; flex-wrap: wrap; }
  .employee-user-actions button, .employee-user-name { min-height: 44px; font-size: 13px; }
  .employee-absence-badge { margin-top: 4px; }
  .management-tablist { position: sticky; top: 70px; z-index: 2; display: flex; gap: 4px; }
  .management-tablist button { flex: 1; min-width: 0; padding: 10px 6px; font-size: 13px; min-height: 44px; }
  .management-record-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .management-record-summary > div { padding: 12px; }
  .employee-users-wrap { min-width: 0; width: 100%; }
  .employee-self-records .employee-users-table { min-width: 0; table-layout: fixed; }
  .employee-self-records .employee-users-table td, .employee-self-records .employee-users-table th { padding: 10px 6px; overflow-wrap: anywhere; font-size: 12px; }
  .absence-calendar { gap: 4px; }
  .calendar-day { min-height: 40px; }
  [hidden] { display: none !important; }
}
@media (min-width: 540px) and (max-width: 760px) {
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .difference-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 24px); }
  .hero-proof { grid-template-columns: 1fr; }
}
