/* Shared ONH presentation. Page behavior and role checks remain in their owners. */
:root {
  --ink: #163c30;
  --muted: #60746a;
  --line: #dce6df;
  --paper: #f6f8f6;
  --onh-green: #176646;
  --onh-soft: #edf4ee;
  --onh-shadow: 0 8px 30px #163c3008;
}
body { color: var(--ink); background: var(--paper); font-family: 'DM Sans', system-ui, sans-serif; line-height: 1.55; }
[hidden] { display: none !important; }
button, a, input, select, textarea { touch-action: manipulation; }
button, input, select, textarea { font-family: inherit; }
button, a { transition: background-color .16s, border-color .16s, box-shadow .16s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid #237956; outline-offset: 3px;
}
h1, h2, h3 { text-wrap: balance; }
h1 { font-weight: 750; letter-spacing: -.045em; }
h2 { font-weight: 700; letter-spacing: -.035em; }
h3 { line-height: 1.35; }
body > header:not(.auth-header):not(.notifications-header) { min-height: 80px; height: auto; padding-block: 16px; gap: 20px; }
.brand { flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; }
.brand-wordmark { font-size: 23px; }
body > header .header-notifications { background: #f3f7f3; border: 1px solid #e4ece5; }
.primary, .outline { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center; }
.primary { background: var(--onh-green); color: #fff; }
.primary:hover { background: #104f35; }
.outline { background: #fff; border-color: #ccdcd0; color: var(--ink); }
.outline:hover { background: #edf4ee; border-color: #a7c3af; }
.outline.danger, .listing-delete-action { color: #9b302b; border-color: #dfbab5; }
button:disabled { cursor: wait; }
.notice, .review-note { border-radius: 12px; padding: 14px 18px; line-height: 1.6; }
.notice:empty { display: none; }
.workspace { width: 100%; max-width: 1200px; padding: 32px 32px 60px; }
.workspace-tabs { width: fit-content; max-width: 100%; margin: 0 0 24px; padding: 5px; height: auto; gap: 5px; border: 1px solid var(--line); background: #fff; border-radius: 14px; }
.workspace-tabs a { min-height: 44px; border-radius: 10px; padding: 10px 24px; font-weight: 650; }
.workspace-tabs a[aria-current='page'] { background: var(--onh-green); color: white; box-shadow: none; }
.workspace-title { margin-bottom: 24px; }
.workspace-title h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 8px 0 14px; }
.workspace-title .workspace-subtitle { max-width: 550px; font-size: 15px; line-height: 1.65; margin: 0; }
.listings-workspace-title { padding: 32px; border-radius: 22px; background: radial-gradient(ellipse at top right, #3b7654, transparent 75%), #163e30; }
.listings-workspace-title #add { background: #d8f36a; color: #163c30; flex-shrink: 0; }
.listings-workspace-title .eyebrow { color: #d2e3d4; font-size: 11px; letter-spacing: 1.8px; }
.panel { border-radius: 18px; padding: 28px; box-shadow: var(--onh-shadow); }
.panel > h2:first-child { margin-top: 0; }
.panel p { max-width: 70ch; }
input:not([type='checkbox']):not([type='radio']), select, textarea { min-width: 0; }
.workspace :is(input:not([type='checkbox']):not([type='radio']),select,textarea) { border-color: #cddbd2; border-radius: 10px; line-height: 1.5; }
.workspace label { font-weight: 600; line-height: 1.5; }
.workspace label :is(small,.small) { font-weight: 400; }
.workspace input[type='checkbox'], .workspace input[type='radio'] { accent-color: var(--onh-green); }
.document-row { margin-top: 12px; border-radius: 14px; padding: 18px; }
.document-row h3 { margin-top: 0; }
.document-row :is(.actions,.document-actions) { gap: 10px; flex-wrap: wrap; }
#editor, #review { border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 80px #10342438; }
#editor::backdrop, #review::backdrop { background: #102d24a6; backdrop-filter: blur(5px); }
#editor .listing-form-section { border-radius: 16px; padding: 22px; margin-bottom: 18px; }
#editor .listing-form-section h3 { font-size: 20px; margin-bottom: 10px; }
#editor .listing-form-section h3 b { border-radius: 12px; }
#editor .listing-form-section label { font-weight: 550; }
#editor .required-mark { display: inline; align-self: auto; margin: 0; line-height: inherit; }
#editor .section-help { color: var(--muted); line-height: 1.6; }
#editor .listing-field-error { font-size: 14px; font-weight: 600; line-height: 1.6; }
.listing-row { border-radius: 18px; box-shadow: var(--onh-shadow); }
.listing-row h3 { font-weight: 700; }
.listing-row .listing-price { color: var(--ink); font-weight: 750; }
.status { border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 650; letter-spacing: .01em; }
.empty, #noListings { background: #fff; border: 1px dashed #bacdc0; border-radius: 18px; padding: 36px 24px; }
.empty h3 { font-size: 21px; }
.enquiry-row, .admin-lead { border-radius: 16px; padding: 22px; }
/* Public search, results and property details */
.marketplace { --ink: #163c30; font-family: 'DM Sans', system-ui, sans-serif; }
.marketplace .search-hero { margin-top: 24px; border-radius: 26px; padding: clamp(20px, 3.5vw, 44px); }
.marketplace .intro h1 { max-width: 760px; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.12; font-weight: 800; }
.marketplace .intro p { font-size: 16px; }
.marketplace .search-bar { border-radius: 18px; box-shadow: 0 12px 30px #0d2c2314; }
.marketplace .search-purposes { gap: 8px; }
.marketplace .search-purposes button { min-height: 44px; border-radius: 10px; }
.marketplace .search-purposes button[aria-pressed='true'] { background: #eaf3e7; color: #176646; }
.marketplace .search-bar :is(input,.custom-select-trigger) { line-height: 1.5; }
.marketplace .results-heading h2 { font-size: clamp(26px, 3vw, 34px); }
.marketplace .card { border-radius: 18px; box-shadow: var(--onh-shadow); }
.marketplace .card h3 { font-weight: 650; }
.marketplace .card-body { padding: 22px; }
.marketplace .features { flex-wrap: wrap; gap: 8px 16px; }
.marketplace .save { width: 44px; height: 44px; display: grid; place-items: center; }
.marketplace .chip { min-height: 40px; font-size: 13px; }
#details { --detail-surface: #f6f8f6; --detail-text: #163c30; }
#details .property-detail-header { background: #fff; border-bottom: 1px solid var(--line); }
#details .property-section { border-color: var(--line); }
#details .property-description { line-height: 1.75; }
#details .contact-actions .property-call { background: #163c30; }
/* Account and activity use the same quiet surfaces as the workspace. */
.account-workspace, .notifications-workspace { width: 100%; max-width: 800px; margin: 32px auto; padding: 0 24px 40px; }
.account-workspace h1 { font-weight: 750; font-size: 34px; margin-bottom: 24px; }
.account-identity { border-radius: 20px; padding: 28px; gap: 20px; box-shadow: var(--onh-shadow); }
.account-identity h2 { line-height: 1.3; }
#accountPortrait { width: 72px; height: 72px; background: #e5f1e7; }
.account-destinations { border-radius: 18px; box-shadow: var(--onh-shadow); }
.account-destinations a { min-height: 92px; padding: 22px; }
.account-destinations a strong { font-size: 17px; }
.account-destinations a span { line-height: 1.55; }
.account-destinations a > svg { background: #edf4ee; padding: 9px; width: 44px; height: 44px; border-radius: 12px; }
.account-destinations a { grid-template-columns: 44px minmax(0,1fr) auto; }
.notifications-header { min-height: 80px; padding-inline: max(20px, calc((100vw - 1120px) / 2)); }
.notifications-header h1 { font-weight: 750; font-size: 25px; }
#notificationsRead { min-height: 44px; }
.notification-item { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 16px !important; margin-bottom: 12px; gap: 16px; }
.notification-item:hover { border-color: #a8c6af; }
.notification-item.unread { background: #edf6ef; }
.notification-item.unread::after { content: ''; position: absolute; top: 16px; right: 16px; width: 7px; height: 7px; background: #237956; border-radius: 50%; }
.notification-item > div { min-width: 0; }
.notification-item p { color: #476354; font-size: 15px; }
.notification-item strong { font-size: 17px; padding-right: 10px; display: block; }
/* Administration prioritizes pending work, with infrastructure below the queue. */
.admin-workspace .workspace-title { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.admin-workspace .workspace-title h1 { font-size: 36px; }
.admin-summary article { border-radius: 16px; padding: 22px; }
.admin-summary strong { font-size: 32px; font-variant-numeric: tabular-nums; }
.admin-summary span { color: #526b5d; font-size: 13px; }
.admin-tabs { width: fit-content; padding: 5px; border-radius: 14px; }
.admin-tabs button { min-height: 44px; font-size: 13px; padding-inline: 20px; }
.review-row { box-shadow: var(--onh-shadow); }
.review-row > button { min-height: 46px; }
.review-layout { padding: 32px; }
.review-layout h2 { padding-right: 26px; }
.review-layout .verification-review label { align-items: flex-start; }
.review-layout .verification-review input { margin-top: 2px; }
.review-layout .decision-box { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #f7faf7; }
.review-layout .reject-form label { font-weight: 600; }
.review-layout .review-feedback-submit { background: var(--onh-green); color: white; }
.admin-storage { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.admin-storage summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 8px 0 16px; }
.admin-storage-grid article { border-radius: 16px; }
/* Authentication and public lister profile */
.auth-page .auth-card { padding: clamp(28px, 4vw, 60px); }
.auth-page .auth-card h1 { font-weight: 750; line-height: 1.2; }
.auth-page .auth-card :is(input,#google,#submit) { border-radius: 12px; min-height: 50px; }
.auth-page .auth-links button { min-height: 44px; font-size: 14px; }
.auth-page .welcome h2 { line-height: 1.18; letter-spacing: -.035em; }
.lister-page main.results { padding-top: 32px; }
.lister-page .lister-card { border-radius: 22px; border: 1px solid var(--line); background: #fff; box-shadow: var(--onh-shadow); padding: 32px; }
.lister-page .lister-card h1 { font-weight: 750; font-size: clamp(28px,4vw,42px); letter-spacing: -.04em; }
.lister-page .lister-card p { overflow-wrap: anywhere; line-height: 1.7; }
@media (min-width: 741px) {
  .mobile-navigation { display: none; }
  .marketplace .search-hero .intro { gap: 32px; }
}
@media (max-width: 740px) {
  body > header:not(.auth-header):not(.notifications-header) { padding: 14px 18px; min-height: 72px; gap: 12px; }
  body > header .brand-mark { width: 35px; height: 35px; }
  body > header .brand-wordmark { font-size: 20px; }
  .marketplace > header:not(.auth-header) { flex-wrap: wrap; padding-bottom: 0; }
  .marketplace > header > nav { height: 46px; margin-top: 4px; justify-content: center; }
  .marketplace > header > nav button { min-height: 44px; font-size: 14px; }
  .workspace { padding: 22px 18px 36px; }
  .workspace-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; margin-bottom: 20px; }
  .workspace-tabs a { padding: 10px 8px; font-size: 14px; justify-content: center; }
  .workspace-title { gap: 18px; }
  .listings-workspace-title { padding: 24px; border-radius: 20px; flex-wrap: wrap; }
  .listings-workspace-title #add { width: 100%; }
  .workspace-title h1 { font-size: 32px; margin: 8px 0 12px; }
  .workspace-title .workspace-subtitle { font-size: 14px; }
  .panel { padding: 22px 18px; border-radius: 16px; }
  .panel h2 { font-size: 24px; }
  .workspace :is(input:not([type='checkbox']):not([type='radio']),select,textarea) { font-size: 16px; }
  .workspace .numbers { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #editor { width: calc(100% - 20px); max-height: calc(100dvh - 24px); }
  #editor .listing-editor { padding: 22px 16px; }
  #editor .listing-form-section { padding: 18px 16px; }
  #editor .listing-form-section h3 { font-size: 19px; gap: 10px; }
  #editor .listing-footer .primary, #editor .listing-footer .outline { flex: 1 1 140px; }
  .marketplace main { padding-inline: 16px; }
  .marketplace .search-hero { margin-top: 16px; padding: 24px 16px 16px; border-radius: 22px; }
  .marketplace .search-hero .intro { padding-bottom: 24px; }
  .marketplace .intro h1 { font-size: clamp(32px,8.5vw,40px); letter-spacing: -.04em; margin-block: 16px; }
  .marketplace .intro p { font-size: 14px; line-height: 1.65; }
  .marketplace .intro .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .marketplace .search-hero .search-bar { border-radius: 16px; padding: 12px; }
  .marketplace .search-purposes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding-bottom: 14px; }
  .marketplace .search-purposes button { font-size: 14px; padding: 10px 8px; justify-content: center; min-height: 44px; }
  .marketplace .search-purposes svg { width: 18px; height: 18px; }
  .marketplace .search-bar .search-field, .marketplace .search-bar label:not(.search-field), .marketplace #shortletPrice { padding: 16px 8px; min-height: 88px; }
  .marketplace .search-bar label > span, .marketplace #shortletPrice summary > span { font-size: 11px; letter-spacing: 1.1px; }
  .marketplace .search-hero .search-bar :is(.search-field input,.custom-select-trigger,#shortletPriceSummary) { font-size: 17px; font-weight: 700; }
  .marketplace .search-bar .primary { min-height: 48px; font-size: 15px; margin-top: 12px; }
  .marketplace .results-heading { align-items: flex-start; gap: 12px; }
  .marketplace .results-heading h2 { font-size: 25px; max-width: 230px; }
  .marketplace .sort { flex-direction: column; align-items: flex-end; gap: 3px; }
  .marketplace .sort select { max-width: 116px; min-height: 34px; }
  .marketplace .card-body { padding: 20px; }
  .account-workspace, .notifications-workspace { margin-top: 24px; padding-inline: 18px; }
  .account-workspace h1 { font-size: 30px; }
  .account-identity { padding: 22px 18px; gap: 16px; }
  #accountPortrait { width: 58px; height: 58px; font-size: 24px; }
  .account-identity h2 { font-size: 21px; }
  .account-identity p { font-size: 14px; }
  .account-destinations a { padding: 20px 16px; gap: 5px 12px; }
  .account-destinations a strong { font-size: 16px; }
  .account-destinations a span { font-size: 13px; }
  .notification-item { padding: 20px 16px; gap: 12px; }
  .notification-item strong { font-size: 16px; }
  .notification-item p { font-size: 14px; }
  .notification-symbol { width: 36px; height: 36px; font-size: 19px; }
  .admin-workspace .workspace-title { padding: 22px; }
  .admin-workspace .workspace-title h1 { font-size: 30px; }
  .admin-summary { gap: 8px; }
  .admin-summary article { padding: 16px 10px; }
  .admin-summary strong { font-size: 27px; }
  .admin-summary span { font-size: 11px; }
  .admin-tabs { width: 100%; }
  .admin-tabs button { padding: 10px 8px; font-size: 12px; }
  .review-layout { padding: 24px 18px; }
  .review-layout .decision-box { padding: 18px 14px; }
  .admin-page #review { max-height: calc(100dvh - 24px); }
  .auth-page main { margin-inline: 16px; }
  .auth-page .auth-card { padding: 28px 22px; }
  .lister-page .lister-card { padding: 24px 18px; flex-wrap: wrap; }
  .mobile-navigation:not([hidden]) { padding-top: 8px; min-height: calc(76px + env(safe-area-inset-bottom,0px)); }
  .mobile-navigation a { border-radius: 12px; font-size: 12px; }
  .mobile-navigation a[aria-current='page'] { background: #edf5ef; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* Finishing alignment across page-specific layouts. */
.workspace-tabs a { display: inline-flex; align-items: center; gap: 9px; }
.workspace-tabs a > svg { width: 19px; height: 19px; flex: none; }
.workspace label > .field-label { display: block; }
.workspace .field-label .required-mark { display: inline; margin-left: 3px; color: #a1372e; }
.workspace-header .workspace-links { margin-left: auto; }
body > header .header-notifications { order: 20; margin-left: auto; }
.workspace-header > .outline, .marketplace #listProperty { margin-left: auto; }

.lister-page main.results { max-width: 1200px; margin: auto; padding: 32px; }
.lister-page .lister-card { margin: 0 0 28px; }
.lister-page .card { border-radius: 18px; }
.lister-page .grid { margin-top: 20px; }
@media (max-width: 740px) {
  .marketplace > header > nav { order: 30; }
  .lister-page main.results { padding: 24px 18px 36px; }
  .lister-page .lister-card { gap: 16px; }
  .lister-page .lister-card h1 { font-size: 28px; }
  .lister-page .lister-card + h2 { font-size: 25px; }
  .workspace label > .field-label { line-height: 1.5; }
  .auth-page .auth-card h1 { font-size: 27px; }
}
@media (min-width: 741px) {
  body > header > .account-menu { order: 10; margin-left: 0; }
  body > header > a[data-header-browse] { margin-left: auto; }
  body > header:has(> .account-menu:not([hidden])) > .header-notifications,
  .workspace-header > .outline ~ .header-notifications,
  .workspace-header .workspace-links ~ .header-notifications,
  .marketplace #listProperty ~ .header-notifications,
  .lister-page a[data-header-browse] ~ .header-notifications { margin-left: 0; }
}

/* Touch-return focus stays quiet; keyboard navigation keeps a visible focus ring. */
.custom-select-trigger.select-touch-return:focus{outline:none!important;box-shadow:none!important}
@media(max-width:740px){
 body>header.directional-header{position:sticky;top:0;z-index:32;transition:transform .18s ease;will-change:transform;box-shadow:0 2px 10px #163c3008}
 body>header.directional-header.header-scrolled-away{transform:translateY(-110%);pointer-events:none}
 body>header.search-results-header{gap:10px;min-height:66px;padding:10px 16px;align-items:center}
 .search-results-header .search-back{width:38px;height:42px;border-radius:10px;background:#f4f8f4;font-size:27px}
 .search-results-header #searchPageTitle{font-size:20px;line-height:1.25;font-weight:700;letter-spacing:-.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .search-results-page #searchOptionsToggle,body>.search-results-header .header-notifications{width:42px;height:42px;flex:0 0 42px;border:1px solid #dfe8e1;border-radius:12px;background:#f6f9f6;margin-left:0}
}
@media(prefers-reduced-motion:reduce){body>header.directional-header{transition:none}}

/* Soft ONH green is limited to the mobile search-results header. */
@media(max-width:740px){
 .search-results-page>header.search-results-header.directional-header{background:#e8f2e6;border-bottom:1px solid #d3e3d2;color:#173e31;min-height:78px!important;padding:16px 18px!important;gap:10px;flex-wrap:nowrap;box-shadow:0 3px 12px #173e3108}
 .search-results-page>header.search-results-header #searchPageTitle{color:#173e31;font-size:20px;line-height:1.3;margin:0}
 .search-results-page>header.search-results-header #searchOptionsToggle,.search-results-page>header.search-results-header .header-notifications,.search-results-page>header.search-results-header .search-back{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;margin:0;padding:10px;background:#f8fcf7;border:1px solid #cbdcc9;border-radius:12px;color:#236548;box-sizing:border-box}
 .search-results-page>header.search-results-header .search-back{width:36px;flex-basis:36px;padding:0;font-size:28px;background:transparent;border-color:transparent}
 .search-results-page>header.search-results-header #searchOptionsToggle[aria-expanded=true]{background:#cfe4c9;border-color:#9fbea0}
 .search-results-page>header.search-results-header .header-notifications:hover,.search-results-page>header.search-results-header #searchOptionsToggle:hover{background:#dcecd7;color:#173e31}
 .search-results-page>header.search-results-header .notification-dot:not([hidden]){top:6px;right:6px;border-color:#f8fcf7}
}
