/* ---------- Editorial style: set once, applied to every article ---------- */
:root{
  --ed-title-font:Poppins,Arial,sans-serif;
  --ed-heading-font:Poppins,Arial,sans-serif;
  --ed-body-font:Poppins,Arial,sans-serif;
  --ed-body-size:18px;
  --ed-column:720px;
  --ed-text:#191919;
  --ed-muted:#5c5d61;
}

/* London Art Exchange — lax.art
   Shared styles. Layout styles are still inline in the HTML, as exported from the approved design;
   they move into this file as components once the build stack is confirmed. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0}
img{max-width:100%}
a{color:#191919}
a:hover{color:#5c5d61}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid #191919;outline-offset:3px}
[hidden]{display:none!important}
button{font-family:inherit;cursor:pointer}

/* Images set as backgrounds (hero, exhibition slides, artwork and artist tiles) */
.hero-photo{background-image:linear-gradient(rgba(18,16,14,.66),rgba(18,16,14,.66)),url(../assets/images/hero-private-view.jpg);background-size:cover;background-position:center 36%}
.im-anahita{background-image:url(../assets/images/anahita-v1-gabrielle-malak.jpg);background-size:cover;background-position:center 22%;background-repeat:no-repeat}
.im-grind{background-image:url(../assets/images/the-daily-grind-mr-phantom.jpg);background-size:cover;background-position:center 70%;background-repeat:no-repeat}
.im-peace{background-image:url(../assets/images/peace-offering-mr-phantom.jpg);background-size:cover;background-position:center;background-repeat:no-repeat}
.im-mdportal{background-image:url(../assets/images/portal-miranda-donovan-private-view.jpg);background-size:cover;background-position:center;background-repeat:no-repeat}
.im-mdsup{background-image:url(../assets/images/miranda-donovan-work-01.jpg);background-size:cover;background-position:center;background-repeat:no-repeat}
.im-s-reflection3{background-image:url(../assets/images/reflection-3-dok-hi-kim.jpg);background-size:cover;background-position:center;background-repeat:no-repeat}
.im-s-deborah-jones{background-image:url(../assets/images/artist-deborah-jones.jpg);background-size:cover;background-position:center;background-repeat:no-repeat}
.im-s-presidente2{background-image:url(../assets/images/el-presidente-2-noah-harris.jpg);background-size:cover;background-position:center;background-repeat:no-repeat}
.im-s-todd{background-image:url(../assets/images/todd-goldman-lax-marylebone.jpg);background-size:cover;background-position:center 52%;background-repeat:no-repeat}

/* ---------- Small screens ----------
   The pages carry their layout in the markup, so these rules adjust it by pattern rather than page by page:
   side margins tighten, wide grids fall to one column, and the menu folds behind a Menu button (added by js/site.js). */
.menu-btn{display:none}
.menu-extra{display:none}
@media (max-width: 900px) {
  header > div:first-child{padding:8px 20px !important}
  header > div:first-child > nav{gap:20px !important}
  header > div:first-child > div{display:none !important}
  header > div:nth-child(2){padding:14px 20px !important;gap:10px 12px !important}
  header > div:nth-child(2) > a:first-child img{height:30px !important}
  header > div:nth-child(2) > a[href$="enquire.html"]{margin-left:auto;padding:12px 12px !important;letter-spacing:.12em !important}
  .menu-btn{display:inline-flex;align-items:center;gap:10px;min-height:40px;padding:0 11px;background:#ffffff;color:#191919;border:1px solid #191919;font:inherit;font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:500;cursor:pointer}
  .menu-btn span{display:block;width:16px;height:9px;border-top:1px solid #191919;border-bottom:1px solid #191919}
  header nav[aria-label="Main"]{display:none !important;order:5;flex:1 0 100%;flex-direction:column;flex-wrap:nowrap !important;gap:0 !important;font-size:13px !important;border-top:1px solid #dcdde0;margin-top:4px}
  header.menu-open nav[aria-label="Main"]{display:flex !important}
  header nav[aria-label="Main"] > a,header nav[aria-label="Main"] > span{display:block !important;padding:16px 0;border-bottom:1px solid #f4f4f6}
  header nav[aria-label="Main"] svg{display:none}
  .menu-extra{display:flex;flex-wrap:wrap;gap:14px 24px;padding:18px 0 6px;font-size:11px;font-weight:400;color:#5c5d61}
  .menu-extra a{text-decoration:none;color:#5c5d61}
}
@media (max-width: 720px) {
  [style*="padding:"][style*="px 40px"]{padding-left:20px !important;padding-right:20px !important}
  [style*="padding:"][style*="px 44px"],[style*="padding:"][style*="px 48px"],[style*="padding:"][style*="px 56px"],[style*="padding:"][style*="px 64px"],[style*="padding:"][style*="px 72px"],[style*="padding:"][style*="px 80px"]{padding-left:22px !important;padding-right:22px !important}
  [style*="margin: 0 40px"]{margin-left:20px !important;margin-right:20px !important}
  [style*="minmax(3"],[style*="minmax(4"],[style*="minmax(5"],[style*="repeat(3,"],[style*="repeat(4,"],[style*="repeat(5,"]{grid-template-columns:minmax(0,1fr) !important}
  [style*="grid-template-columns: minmax(0, 1"],[style*="grid-template-columns: minmax(0, 2"],[style*="grid-template-columns: 1fr 1fr"],[style*="grid-template-columns: 2fr"],[style*="grid-template-columns: 1.2fr"],[style*="grid-template-columns: 1.5fr"]{grid-template-columns:minmax(0,1fr) !important}
  [style*="padding:"][style*="px 60px"]{padding-left:22px !important;padding-right:22px !important}
  img[style*="height: 5"],img[style*="height: 6"],img[style*="height: 7"]{height:auto !important;aspect-ratio:4 / 3}
  [style*="min-height: 980px"],[style*="min-height: 900px"],[style*="min-height: 820px"]{min-height:0 !important}
  [style*="position: sticky"]{position:static !important}
  form[role="search"]{flex-wrap:wrap}
  a[style*="min-width: 1"],a[style*="min-width: 2"]{min-width:0 !important}
  img,video,iframe{max-width:100%}
  .detail{padding:28px 20px 72px}.detail-text{position:static}.filters .count{margin-left:0}
}
@media (max-width: 480px) {
  [style*="repeat(2,"]{grid-template-columns:minmax(0,1fr) !important}
  [style*="flex: 1 1 4"],[style*="flex: 1 1 5"],[style*="flex: 1.2 1 4"],[style*="flex: 1.2 1 5"],[style*="flex: 1.5 1 5"],[style*="flex: 1 1 3"],[style*="flex: 1.2 1 3"]{flex-basis:100% !important;min-width:0}
  [style*="min-width: 3"],[style*="min-width: 4"],[style*="min-width: 5"]{min-width:0 !important}
}

/* Artworks listing, artwork pages and Artists page (generated by tools/build.py) */
.tag{flex:0 0 auto;display:inline-block;padding:3px 8px;border:1px solid #191919;font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:500;line-height:1.4}
.filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px 28px;padding:20px 0;border-top:1px solid #191919;border-bottom:1px solid #dcdde0}
.filters label{display:flex;flex-direction:column;gap:6px;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:#5c5d61}
.filters select{min-height:44px;min-width:220px;padding:0 12px;border:1px solid #b8bac1;background:#ffffff;font-family:inherit;font-size:14px;color:#191919;border-radius:0}
.status-buttons{display:flex;flex-wrap:wrap;gap:8px}
.status-buttons button{min-height:44px;padding:0 18px;border:1px solid #191919;background:#ffffff;color:#191919;font-size:13px}
.status-buttons button[aria-pressed="true"]{background:#191919;color:#ffffff}
.filters .count{margin-left:auto;font-size:13px;color:#5c5d61;padding-bottom:12px}
.linklike{border:0;background:none;padding:0;font-size:inherit;color:#191919;text-decoration:underline;text-underline-offset:5px}
.work-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:56px 28px}
.work{display:flex;flex-direction:column;gap:6px}
.work[hidden]{display:none}
/* Works sit bottom-left in an invisible 4:5 frame, so mixed shapes share a baseline and nothing is cropped */
.work-frame{display:block;position:relative;aspect-ratio:4/5;margin-bottom:10px}
.work-frame img{display:block;position:absolute;left:0;bottom:0;max-width:100%;max-height:100%;width:auto;height:auto}
.work-artist{font-size:14px}
.work-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.work-head h3{margin:0;font-family: Montserrat, Arial, sans-serif;font-size:20px;font-weight: 500;font-style:italic;line-height:1.25}
.work-head a{text-decoration:none}
.work-meta{font-size:13px;color:#5c5d61}
.work-price{font-size:13px;color:#191919;margin-top:4px}
.detail{display:flex;flex-wrap:wrap;gap:48px 64px;padding:40px 40px 110px;align-items:flex-start}
.detail-image{flex:1.4 1 480px;min-width:0}
.detail-image img{display:block;width:auto;max-width:100%;height:auto;max-height:86vh}
.detail-text{flex:1 1 360px;display:flex;flex-direction:column;gap:20px;position:sticky;top:32px}
.detail-desc{margin:0;color:#191919;max-width:520px}
.detail-table{margin:0;border-top:1px solid #191919}
.detail-row{display:flex;justify-content:space-between;gap:24px;padding:12px 0;border-bottom:1px solid #dcdde0;font-size:14px}
.detail-row dt{color:#5c5d61}
.detail-row dd{margin:0;text-align:right}
.btn{display:inline-block;padding:17px 30px;font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:500;text-decoration:none;border:1px solid #191919}
.btn-solid{background:#191919;color:#ffffff}
.btn-solid:hover{background:#191919;color:#ffffff}
.btn-line{background:transparent;color:#191919}
.artist-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:48px 28px}
.artist-tile{display:flex;flex-direction:column;gap:10px;text-decoration:none}
.artist-frame{display:block;aspect-ratio:1/1;overflow:hidden;background:#f4f4f6;margin-bottom:6px}
.artist-frame img{display:block;width:100%;height:100%;object-fit:cover}

/* Images awaiting a high-resolution original: shown as a neutral block until supplied */
img.needs-image{background:#dcdde0}

/* ---------- Articles ---------- */
.article-lead{margin:0 auto;padding:0 40px;max-width:850px}
.article-lead img{display:block;width:100%;height:auto;max-height:820px;object-fit:contain}
.article-lead figcaption{padding-top:12px;font-size:12px;line-height:1.5;color:#5c5d61}
.article-title{margin:0;max-width:980px;font-family:var(--ed-title-font);font-weight:600;font-size:clamp(32px,3.9vw,56px);line-height:1.08;letter-spacing:-0.03em}
.article-body{max-width:var(--ed-column);margin:0 auto;padding:72px 40px 80px;font-family:var(--ed-body-font);font-size:var(--ed-body-size);line-height:1.7;color:var(--ed-text)}
.article-figure{margin:44px 0}
.article-figure img{display:block;width:100%;height:auto}
.article-figure figcaption{padding-top:10px;font-size:12px;line-height:1.5;color:var(--ed-muted)}
.article-film{max-width:850px;margin:18px auto 0;padding:0 40px;font-size:14px}
.article-film a{color:#191919;text-underline-offset:4px}
.article-body > *{margin:0 0 26px}
.article-body h2{margin:44px 0 18px;font-family:var(--ed-heading-font);font-weight:600;letter-spacing:-0.02em;font-size:28px;line-height:1.25;color:#191919}
.article-body h3{margin:34px 0 14px;font-family:var(--ed-heading-font);font-weight:600;letter-spacing:-0.02em;font-size:21px;line-height:1.3;color:#191919}
.article-body h4,.article-body h5{margin:28px 0 12px;font-family:var(--ed-heading-font);font-weight:600;letter-spacing:-0.02em;font-size:18px;color:#191919}
.article-body ul,.article-body ol{padding-left:22px}
.article-body li{margin:0 0 10px}
.article-body a{color:#191919;text-underline-offset:4px}
.article-body b,.article-body strong{font-weight:600}
.article-body img{display:block;max-width:100%;height:auto;margin:8px 0}
.article-body table{width:100%;border-collapse:collapse;font-size:16px}
.article-body td,.article-body th{padding:12px 10px;border-bottom:1px solid #dcdde0;text-align:left;vertical-align:top}
.article-body .article-note{margin-top:48px;padding-top:24px;border-top:1px solid #dcdde0;font-size:13px;line-height:1.6;color:#5c5d61}
.article-body .article-cta{font-size:16px}
.story-cats{display:flex;flex-wrap:wrap;gap:8px}
.story-cats button{min-height:44px;padding:0 18px;background:#ffffff;color:#191919;border:1px solid #b8bac1;font-family:inherit;font-size:13px;cursor:pointer}
.story-cats button[aria-pressed="true"]{background:#191919;color:#ffffff;border-color:#191919}
.story-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:48px 32px}
.story{display:flex;flex-direction:column;gap:10px;text-decoration:none;color:#191919;padding-top:18px;border-top:1px solid #dcdde0}
.story[hidden]{display:none}
.story-frame{display:block;aspect-ratio:850/460;overflow:hidden;background:#f4f4f6;margin-bottom:6px}
.story-frame img{display:block;width:100%;height:100%;object-fit:cover}
.story-frame.is-art{background:#f4f4f6}
.story-frame.is-art img{object-fit:contain}
.story-title{font-family: Poppins, Arial, sans-serif; letter-spacing: -0.02em; font-weight: 600;font-size:20px;line-height:1.25}
.story-desc{font-size:14px;color:#5c5d61;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width:640px){.article-lead{padding:0 20px}.article-body{padding:48px 20px 60px;font-size:17px}}

/* ---------- Watch ---------- */
.film-feature{position:relative;display:block;aspect-ratio:16/9;max-height:640px;width:100%;overflow:hidden;background-color:#191919}
.film-feature img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.film-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:48px 24px}
.film{display:flex;flex-direction:column;gap:8px;text-decoration:none;color:#191919}
.film[hidden]{display:none}
.film-frame{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;background:#191919;margin-bottom:12px;overflow:hidden}
.film-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.film-frame svg{position:relative}
.film-time{position:absolute;right:8px;bottom:8px;padding:2px 6px;background:rgba(17,17,17,0.78);color:#ffffff;font-size:12px}

/* ---------- Stories page ---------- */
.story-feature{display:flex;flex-wrap:wrap;background:#ffffff;text-decoration:none;color:#191919}
.story-feature-frame{position:relative;flex:1.4 1 520px;min-height:520px;overflow:hidden;background:#f4f4f6}
.story-feature-frame img{position:absolute;inset:0;width:100%;height:100%}
.story-feature-text{flex:1 1 380px;padding:64px 56px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:18px}
.story-bar{display:flex;flex-wrap:wrap;align-items:center;gap:0 36px;border-bottom:1px solid #dcdde0;margin-bottom:40px}
.story-tabs,.film-tabs{display:flex;flex-wrap:wrap;gap:0 36px}
.story-tabs button,.film-tabs button{min-height:54px;padding:0;background:transparent;border:0;border-bottom:2px solid transparent;color:#5c5d61;font-family:inherit;font-size:14px;cursor:pointer}
.story-tabs button[aria-pressed="true"],.film-tabs button[aria-pressed="true"]{border-bottom-color:#191919;color:#191919}
.story-search{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:13px;color:#5c5d61}
.story-search input{min-height:40px;width:220px;box-sizing:border-box;padding:0 12px;background:#ffffff;border:1px solid #b8bac1;border-radius:0;font-family:inherit;font-size:14px}
.story-date{font-size:12px;color:#5c5d61}
.film-bar{display:flex;flex-wrap:wrap;align-items:center;gap:0 36px;border-bottom:1px solid #dcdde0;margin-bottom:24px}
.film-bar select{margin-left:auto;min-height:40px;padding:0 10px;background:#ffffff;border:1px solid #b8bac1;border-radius:0;font-family:inherit;font-size:14px;color:#191919}
@media (max-width:640px){.story-feature-frame{min-height:300px}.story-feature-text{padding:36px 24px}.story-search{margin-left:0}.film-bar select{margin-left:0}}

/* ---------- Publications ---------- */
.pub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:64px 32px}
.pub{display:flex;flex-direction:column;gap:8px;color:#191919}
.pub[hidden]{display:none}
.pub-cover{display:flex;align-items:center;justify-content:center;aspect-ratio:3/4;background:#f4f4f6;margin-bottom:12px;overflow:hidden}
.pub-cover img{display:block;max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 10px 30px rgba(0,0,0,0.12)}
.pub-cover-text{flex-direction:column;gap:14px;padding:28px;box-sizing:border-box;text-align:center;border:1px solid #dcdde0}
.pub-actions{display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:8px}
.pub-link{padding:0;background:transparent;border:0;font-family:inherit;font-size:13px;font-weight:500;color:#191919;text-decoration:underline;text-underline-offset:5px;cursor:pointer}
[data-pub-panel][hidden]{display:none !important}
[data-pub-done][hidden],[data-pub-form][hidden]{display:none !important}

/* ---------- Search results ---------- */
.sr{padding:8px 40px 0}
.sr-group{padding-top:48px}
.sr-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px}
.sr-head h2{margin:0;font-family: Poppins, Arial, sans-serif; letter-spacing: -0.02em;font-weight: 600;font-size:clamp(24px,2.4vw,33px);line-height:1.15}
.sr-head h2 span{font-size:14px;color:#5c5d61}
.sr-more{background:none;border:0;padding:0;font:inherit;font-size:13px;color:#191919;text-decoration:underline;text-underline-offset:5px;cursor:pointer}
.sr-rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:0 40px}
.sr-row{display:flex;align-items:center;gap:20px;padding:18px 0;border-top:1px solid #dcdde0;text-decoration:none;color:#191919}
.sr-row img{width:132px;height:88px;object-fit:cover;flex:none;background:#f4f4f6}
.sr-text{display:flex;flex-direction:column;gap:5px;min-width:0}
.sr-eye{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#5c5d61}
.sr-title{font-family: Poppins, Arial, sans-serif; letter-spacing: -0.02em; font-weight: 600;font-size:18px;line-height:1.25}
.sr-sub{font-size:13px;color:#5c5d61}
.sr-works{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:48px 24px}
.sr-work{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:#191919}
.sr-work-img{display:block;aspect-ratio:4 / 5;margin-bottom:12px;background:left bottom / contain no-repeat}
.sr-work-line{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;color:#5c5d61}
.sr-tag{font-size:10px;letter-spacing:.14em;text-transform:uppercase;border:1px solid;padding:3px 8px}
.sr-work-title{font-family: Montserrat, Arial, sans-serif; font-weight: 500;font-size:20px;font-style:italic}
.sr-none{padding:48px 0 0;max-width:760px;display:flex;flex-direction:column;gap:16px}
.sr-none h2{margin:0;font-family: Poppins, Arial, sans-serif; letter-spacing: -0.03em;font-weight: 600;font-size:clamp(27px,2.8vw,39px);line-height:1.1}
.sr-none p{margin:0;font-size:17px;color:#191919}
.sr-none-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}
.sr-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 24px;border:1px solid #191919;background:#ffffff;color:#191919;font-size:13px;text-decoration:none}
.sr-btn-dark{background:#191919;color:#ffffff;font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:500;padding:0 28px}
@media (max-width:560px){.sr{padding:8px 20px 0}.sr-rows{grid-template-columns:1fr}.sr-row img{width:96px;height:64px}}

/* Overlays, cookie notice and settings */
.ck-switch { background: #b8bac1; transition: background 0.15s; }
.ck-switch > span { left: 3px; transition: left 0.15s; }
.ck-switch[aria-checked="true"] { background: #191919; }
.ck-switch[aria-checked="true"] > span { left: 23px; }
.lax-overlay button:focus-visible, .lax-overlay a:focus-visible, [data-cookie-notice] button:focus-visible, [data-cookie-notice] a:focus-visible { outline: 2px solid #191919; outline-offset: 3px; }
@media (max-width: 560px) {
  .lax-overlay > div { padding: 36px 22px 26px !important; }
  .lax-overlay .ck-actions { grid-template-columns: 1fr !important; }
  [data-cookie-notice] { left: 16px !important; bottom: 16px !important; padding: 22px 20px 18px !important; }
}
@media (prefers-reduced-motion: reduce) { .ck-switch, .ck-switch > span { transition: none; } }

/* Client portal */
.portal { padding: 64px 40px 96px; max-width: 1360px; margin: 0 auto; box-sizing: border-box; }
.portal-narrow { max-width: 520px; }
.portal-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 40px; border-bottom: 1px solid #dcdde0; background: #ffffff; font-size: 13px; }
.portal-bar-links { display: flex; gap: 22px; overflow-x: auto; font-size: 12.5px; }
.portal-bar a { display: block; padding: 20px 0 18px; text-decoration: none; color: #5c5d61; white-space: nowrap; border-bottom: 2px solid transparent; }
.portal-bar a[aria-current="page"] { color: #191919; border-bottom-color: #191919; }
.portal-link { background: none; border: 0; padding: 0; font: inherit; color: #5c5d61; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; white-space: nowrap; }
.portal-eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #5c5d61; }
.portal-title { margin: 14px 0 0; font-family: Poppins, Arial, sans-serif; letter-spacing: -0.03em; font-weight: 600; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; }
.portal-intro { margin: 18px 0 0; max-width: 640px; color: #191919; }
.portal h2 { margin: 56px 0 0; padding-bottom: 14px; border-bottom: 1px solid #191919; font-family: Poppins, Arial, sans-serif; letter-spacing: -0.02em; font-weight: 600; font-size: 22px; }
.portal-form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; max-width: 520px; }
.portal-field { display: flex; flex-direction: column; gap: 7px; }
.portal-field > span { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #5c5d61; }
.portal-field input, .portal-field select, .portal-field textarea { min-height: 50px; padding: 0 14px; border: 1px solid #b8bac1; background: #ffffff; font: inherit; color: #191919; border-radius: 0; box-sizing: border-box; width: 100%; }
.portal-field input:focus-visible, .portal-field select:focus-visible { outline: 2px solid #191919; outline-offset: 2px; }
.portal-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #191919; }
.portal-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: #191919; }
.portal-notice { margin: 24px 0 0; padding: 14px 18px; border: 1px solid #b8bac1; background: #ffffff; font-size: 14px; max-width: 640px; }
.portal-notice-error { border-color: #191919; color: #191919; }
.portal-notice-ok { border-color: #191919; }
.portal-hint { font-size: 13px; color: #5c5d61; margin: 0; }
.portal-tabs { display: flex; gap: 28px; border-bottom: 1px solid #dcdde0; margin-top: 30px; font-size: 13px; }
.portal-tabs a { padding: 0 0 12px; text-decoration: none; color: #5c5d61; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.portal-tabs a[aria-current="page"] { color: #191919; border-bottom-color: #191919; }
.portal-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.portal-stat { background: #ffffff; padding: 28px 26px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; border: 1px solid #dcdde0; }
.portal-stat b { font-family: Poppins, Arial, sans-serif; letter-spacing: -0.03em; font-weight: 600; font-size: 31px; line-height: 1; }
.portal-stat span { font-size: 13px; color: #5c5d61; }
.portal-rows { list-style: none; margin: 0; padding: 0; }
.portal-rows > li { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; padding: 22px 0; border-bottom: 1px solid #dcdde0; }
.portal-meta { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #5c5d61; }
.portal-tag { display: inline-block; padding: 4px 9px; border: 1px solid #191919; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.portal-empty { margin-top: 28px; padding: 44px 32px; background: #f4f4f6; color: #191919; }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; margin-top: 32px; }
.portal-card { display: flex; flex-direction: column; gap: 10px; }
.portal-card-image { background: #dcdde0; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.portal-card-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.portal-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
@media (max-width: 900px) { .portal { padding: 44px 20px 72px; } .portal-bar { padding: 0 20px; } .portal-stats { grid-template-columns: 1fr 1fr; } .portal-split { grid-template-columns: 1fr; } }

/* Client portal: conversations, updates, first-look */
.portal-badge { display: inline-block; min-width: 18px; padding: 2px 7px; border-radius: 10px; background: #191919; color: #ffffff; font-size: 10px; letter-spacing: 0.06em; text-align: center; vertical-align: middle; box-sizing: border-box; }
.portal-waiting { margin-top: 36px; padding: 28px 30px; background: #191919; color: #ffffff; }
.portal-waiting ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.portal-waiting a { color: #ffffff; text-underline-offset: 5px; }
.portal-thread { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; max-width: 720px; }
.portal-msg { padding: 18px 20px; max-width: 86%; background: #ffffff; border: 1px solid #dcdde0; }
.portal-msg p { margin: 8px 0 0; color: #191919; overflow-wrap: anywhere; }
.portal-msg-client { align-self: flex-end; background: #f4f4f6; border-color: #f4f4f6; }
.portal-msg-gallery { align-self: flex-start; }
.portal-first { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 36px; align-items: center; margin-top: 36px; padding: 28px; background: #ffffff; border: 1px solid #dcdde0; }
.portal-first-open { border-color: #191919; }
.portal-countdown { margin: 18px 0 0; font-size: 13px; color: #5c5d61; }
.portal-countdown [data-reply-by] { color: #191919; font-weight: 500; }
@media (max-width: 760px) { .portal-first { grid-template-columns: 1fr; padding: 20px; } .portal-msg { max-width: 100%; } }

/* A work whose only picture is the admin's small one (about 400px wide) is shown at its true size on a
   quiet mount, so it reads as a deliberate small plate and is never stretched. Used by artwork.php. */
.detail-image--small{display:flex;align-items:center;justify-content:center;background:#f4f4f6;padding:clamp(32px,7vw,110px) clamp(24px,5vw,80px)}

/* The menu has seven items when LAX Museum is switched on (LAX_MUSEUM_URL in inc/config.php). On
   laptop-width screens the spacing between them tightens a little, and a little more on the
   narrowest (a tablet held sideways, 1024 wide), so the menu still sits on one line beside the logo
   and the Enquire button, as it does in the design. Measured with the brand's Poppins: one line from
   995px up; between 901 and 995 the Enquire button drops to a second row. */
@media (min-width: 901px) and (max-width: 1340px) {
  header nav[aria-label="Main"]{gap:12px 18px !important;letter-spacing:.09em !important}
}
@media (min-width: 901px) and (max-width: 1120px) {
  header nav[aria-label="Main"]{gap:10px 11px !important;letter-spacing:.03em !important;font-size:11px !important}
}

/* ---------- invoices, basket and staff panels ---------- */
.portal-work-title { font-family: Montserrat, Arial, sans-serif; font-size: 17px; font-style: italic; }
.portal-panel { margin-top: 24px; padding: 24px 26px; background: #ffffff; border: 1px solid #b8bac1; }
.portal-panel .portal-form { margin-top: 18px; gap: 14px; }
.invoice-actions { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 24px 0 0; font-size: 13px; }
.invoice-actions a { color: #191919; text-underline-offset: 4px; }
.invoice { margin-top: 32px; max-width: 860px; padding: 56px 56px 44px; background: #ffffff; border: 1px solid #b8bac1; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.invoice-logo { height: 46px; width: auto; display: block; }
.invoice-word { font-family: Poppins, Arial, sans-serif; font-weight: 600; font-size: 34px; letter-spacing: -0.03em; line-height: 1; text-transform: uppercase; }
.invoice-facts { display: flex; flex-wrap: wrap; gap: 14px 48px; margin: 44px 0 0; padding: 20px 0; border-top: 1px solid #191919; border-bottom: 1px solid #b8bac1; }
.invoice-facts dt, .invoice-parties h3 { margin: 0; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #191919; }
.invoice-facts dd { margin: 6px 0 0; font-size: 15px; font-weight: 600; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: 32px; }
.invoice-parties p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.invoice-bank { padding-top: 10px; border-top: 1px solid #b8bac1; }
.invoice-lines { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 14px; }
.invoice-lines th, .invoice-lines td { padding: 14px 0; border-bottom: 1px solid #b8bac1; text-align: left; vertical-align: top; font-weight: 400; }
.invoice-lines thead th { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; border-bottom-color: #191919; }
.invoice-lines td:last-child, .invoice-lines th:last-child { text-align: right; white-space: nowrap; padding-left: 24px; }
.invoice-lines tfoot th { text-align: right; }
.invoice-balance th, .invoice-balance td { font-family: Poppins, Arial, sans-serif; font-weight: 600 !important; font-size: 20px; letter-spacing: -0.02em; border-bottom: 2px solid #191919; }
.invoice-detail { font-size: 12px; }
.invoice-due { margin: 12px 0 0; text-align: right; font-size: 13px; font-weight: 600; }
.invoice-note { margin: 22px 0 0; font-size: 13px; line-height: 1.6; }
.invoice-terms { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid #b8bac1; font-size: 11px; line-height: 1.6; }
.invoice-terms a { color: #191919; }
.invoice-actions-form { margin-top: 44px; }
.portal button[disabled] { opacity: 0.35; cursor: not-allowed; }
@media (max-width: 760px) { .invoice { padding: 28px 20px; } .invoice-parties { grid-template-columns: 1fr; } .invoice-word { font-size: 26px; } }
@media print {
  body > div > header, body > div > footer, .portal-bar, .invoice-actions, .invoice-actions-form, .portal-notice, .portal-eyebrow, .portal-title, [data-cookie-notice] { display: none !important; }
  .portal { padding: 0 !important; } .invoice { border: 0; padding: 0; margin: 0; max-width: none; }
}

.portal-basket-total { margin: 22px 0 0; text-align: right; font-size: 15px; }
.portal-basket-total strong { font-family: Poppins, Arial, sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin-left: 10px; }
.catalogue-row { display: grid; grid-template-columns: 64px minmax(180px, 1.4fr) minmax(120px, 170px) auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid #dcdde0; }
.catalogue-row img, .catalogue-row .catalogue-none { width: 64px; height: 64px; object-fit: contain; background: #f4f4f6; display: block; }
.catalogue-row input[type=text] { min-height: 44px; width: 100%; padding: 0 12px; border: 1px solid #b8bac1; font: inherit; border-radius: 0; }
@media (max-width: 760px) { .catalogue-row { grid-template-columns: 64px 1fr; } }
