*{box-sizing:border-box}
body{margin:0;background:#f4f7f6;color:#153338;font:16px/1.5 system-ui,sans-serif}
a{color:#075970;text-underline-offset:3px}
header{background:white;border-bottom:1px solid #cfdddc}
nav,main{width:100%;max-width:none;margin:0;padding:16px clamp(12px,1.25vw,50px)}
nav,.heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:750;color:#103b43}
.brand img{width:36px;height:36px}
.heading{margin:16px 0 24px}
h1,h2,h3,p{overflow-wrap:anywhere}
h1{font-size:clamp(30px,4vw,48px);line-height:1.1;margin:.35em 0;letter-spacing:-.045em}
h2{font-size:19px;margin:0 0 14px}
h3{font-size:23px;line-height:1.25;margin:5px 0}
section,.detail,.cards article,.submit{background:white;border:1px solid #d3dfdd;border-radius:12px;padding:clamp(16px,3vw,28px)}
.editor,.detail{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
label{display:block;font-weight:600;font-size:14px;margin:10px 0}
.check{display:flex;align-items:flex-start;gap:10px}
.check input{margin-top:3px;width:auto}
input,textarea,select{font:inherit;color:inherit;width:100%;min-width:0;padding:10px;border:1px solid #9ab5b3;border-radius:6px;display:block;background:white;font-size:16px;margin-top:4px}
textarea{resize:vertical}
button,.action{display:inline-block;padding:11px 18px;border:1px solid #07585b;border-radius:7px;background:#07585b;color:white;font:600 15px/1.3 system-ui,sans-serif;cursor:pointer;text-decoration:none}
button:disabled{opacity:.6}
.secondary{background:#fff;color:#07585b}
.submit{margin-top:16px}
.submit button{margin-top:8px}
.status{color:#405d61;min-height:1em}
.preview-title{margin-top:24px}
details{margin-top:14px}
summary{cursor:pointer;color:#07585b;font-weight:600}
fieldset{border:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
legend{font-size:13px;margin:8px 0}
.tile{position:relative;margin:0;cursor:pointer}
.tile input{width:16px;position:absolute;left:5px;top:4px}
.tile img{width:100%;aspect-ratio:4/3;object-fit:cover;border:2px solid transparent;border-radius:5px}
.tile input:checked+img{border-color:#05767c}
.tile span{display:block;font-size:11px;line-height:1.2}
.preview{background:#f6f9f8;border:1px solid #d8e3e1;border-radius:8px;overflow:hidden}
.preview div{padding:16px}
.preview img,.cards img{width:100%;aspect-ratio:16/10;object-fit:cover}
.preview p{margin:5px 0;white-space:pre-line}
.detail{margin-top:16px}
.detail figure{margin:0}
.detail img{width:100%;max-height:55vh;object-fit:contain;background:#f1f5f5}
.description{white-space:pre-wrap}
.detail time,figcaption,small{font-size:13px;color:#486063}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,clamp(16rem,18vw,32rem)),1fr));gap:16px}
.cards article{padding:12px}
.cards a{text-decoration:none}
.cards h2,.cards p{margin:4px 0}
.cards img{border-radius:6px}
.seller{font-weight:650}
.check,input[type=radio]{accent-color:#07585b}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #0088ae;outline-offset:2px}

.editor { align-items: start; }
.editor > :first-child { grid-row: span 2; }
.editor section { min-width: 0; }
.preview p, .description { max-width: 78ch; overflow-wrap: anywhere; }
fieldset { min-width: 0; grid-template-columns: repeat(auto-fill,minmax(min(100%,6.5rem),1fr)); }
nav:has(> :nth-child(3)) { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
nav > :last-child { justify-self: end; }
@media (min-width: 1500px) {
  .editor { grid-template-columns: minmax(0,1.3fr) minmax(0,.85fr) minmax(0,1fr); }
  .editor > :first-child { grid-row: auto; }
}
@media (max-width: 760px) {
  .editor, .detail { grid-template-columns: minmax(0,1fr); }
  .editor > :first-child { grid-row: auto; }
}
@media (max-width: 480px) {
  .pair { grid-template-columns: minmax(0,1fr); }
  nav:has(> :nth-child(3)) { display: flex; gap: .6rem 1rem; }
  nav .brand { flex-basis: 100%; }
}

dialog { color: inherit; width: min(32rem, calc(100% - 2rem)); max-height: 90dvh; padding: clamp(1rem,3vw,2rem); border: 1px solid #aac1bd; border-radius: 12px; }
dialog::backdrop { background: rgb(13 42 44 / 52%); }
dialog button { margin-block: .3rem; }
dialog p { line-height: 1.5; }

.editor {grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start}
.editor > :first-child {grid-row:auto}
.editor .media-panel {display:grid;gap:1.1rem}
.media-panel > div {min-width:0}
.media-panel .preview-panel {border-top:1px solid #d0dfdd;padding-top:1rem}
.preview img {display:block;max-height:42vh;object-fit:contain;background:#eaf0ee}
.preview img[hidden],#errors[hidden] {display:none}
#preview-specs {margin:0}
#preview-specs dt {font-weight:650}
#preview-specs dd {margin:0 0 .4rem}
#errors {background:#fff0ee;color:#7e241e;border:1px solid #bb6155;padding:.8rem;margin-bottom:.8rem;border-radius:.4rem}
#errors a {color:inherit}
#errors ul {margin:.35rem 0 0}
#post-form [aria-invalid=true] {outline:2px solid #ad3029}
@media(min-width:1500px){.editor{grid-template-columns:minmax(0,1.15fr) minmax(0,1.7fr)}.editor .media-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.media-panel .preview-panel{border:0;border-inline-start:1px solid #d0dfdd;padding:0 0 0 1.1rem}}
@media(max-width:760px){.editor{grid-template-columns:minmax(0,1fr)}}
@media (min-width:761px) and (max-width:1499px) {
  .media-panel {position:sticky;top:.75rem}
  .media-panel #gallery {max-height:11rem;overflow-y:auto}
}

#gallery-tools {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.65rem}
#gallery-status {font-size:.875rem;margin:.4rem 0}
#gallery-status:empty {display:none}
#gallery-pages {margin-top:.5rem}
#gallery .tile input:focus-visible + img {outline:3px solid #056b79}
#gallery .tile:has(:checked) span {color:#065f65;font-weight:700}
#gallery-selection {display:block;color:#375d62}

.company-links a{display:inline-block;margin:.35rem 1rem .35rem 0}.cards figure{margin:0}.cards figcaption,.trade-role,figure figcaption{font-size:.875rem}.trade-role{margin-inline-start:.4em}.run{border-inline-start:3px solid #146866;padding-inline-start:1rem}.run h2,.company-links h2{font-size:1.15rem}#production{margin-block:1rem}#production[hidden],#run-fields[hidden]{display:none}

[data-offer][hidden]{display:none}

.post-category {margin:10px 0}
.post-category > label {margin:0}
#category-picker {position:relative;margin:.25rem 0 0}
#category-trigger {
  display:flex;align-items:center;justify-content:space-between;gap:.75rem;
  padding:10px;border:1px solid #9ab5b3;border-radius:6px;
  background:white;color:inherit;cursor:pointer;list-style:none;font:inherit;
}
#category-trigger::-webkit-details-marker {display:none}
#category-trigger::after {
  content:"";flex:none;width:.45rem;height:.45rem;margin-inline-end:.25rem;
  border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);
}
#category-picker[open] > summary::after {transform:rotate(225deg)}
.category-menu {
  position:absolute;inset-inline:0;top:calc(100% + .25rem);z-index:5;
  padding:.5rem;border:1px solid #adc4c0;border-radius:8px;
  background:white;box-shadow:0 5px 18px rgb(18 57 54 / 10%);
}
#category-query {margin:0}
#category-matches {
  margin:.45rem 0 0;padding:0;border:0;border-radius:2px;
  font-size:.9375rem;max-height:13rem;overflow-y:auto;overscroll-behavior:contain;
}
#category-matches option {padding:.38rem .5rem}
#category-empty {margin:.5rem;color:#49635f;font-size:.875rem}
@media (max-width:600px), (max-height:520px) {
  .category-menu {position:static;margin-top:.25rem;box-shadow:none}
}

.seller-consent {
  display:flex;align-items:flex-start;gap:.5rem;max-width:100ch;
  margin:.8rem 0 .45rem;color:#215749;font-size:.875rem;line-height:1.5;
}
.seller-consent input {
  flex:none;width:1rem;height:1rem;padding:0;margin:.15rem 0 0;accent-color:#226c58;
}
.seller-consent label {display:inline;margin:0;font:inherit;cursor:pointer}
#terms-open, #terms-dialog button {
  color:#0a5c96;text-decoration:underline;text-underline-offset:2px;
}
#terms-open {white-space:nowrap}
#terms-dialog {
  width:min(29rem,calc(100% - 2rem));max-height:min(23rem,70vh);max-height:min(23rem,70dvh);
  padding:1rem 1.15rem;border:1px solid #cddad7;border-radius:9px;
  background:white;color:#2d4e47;box-shadow:0 5px 24px rgb(23 62 53 / 12%);
}
#terms-dialog[open] {display:flex;flex-direction:column}
#terms-dialog::backdrop {background:rgb(24 58 50 / 14%)}
#terms-dialog .terms-heading {display:flex;align-items:baseline;justify-content:space-between;gap:1rem}
#terms-dialog h2 {margin:0;font-size:1rem}
#terms-dialog form {margin:0}
#terms-dialog button {
  margin:0;padding:.2rem 0;min-height:24px;border:0;border-radius:2px;
  background:transparent;font:inherit;font-size:.875rem;
}
#terms-dialog .terms-copy {overflow:auto;overscroll-behavior:contain}
#terms-dialog p {margin:.6rem 0 0;font-size:.9rem;line-height:1.5}

.editing-post main {max-width:112rem;margin-inline:auto}
.editing-post [hidden],#edit-toolbar[hidden],#edit-feedback[hidden],#edit-contacts[hidden],#edit-terms[hidden],#edit-cancel[hidden] {display:none}
#edit-toolbar {display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
#edit-message {margin:.25rem 0 0;color:#42645f;font-size:.9rem}
#edit-feedback {margin-block:1rem;padding:.85rem 1rem;background:#fff;border:1px solid #a7bfbd;border-inline-start:3px solid #30736b;border-radius:.4rem}
.editing-post .heading {gap:.7rem 1.5rem}
.editing-post #edit-cancel {display:inline-block;margin-inline-start:1.1rem}
.editing-post .contact-editor {display:block;margin:1rem 0}
.contact-editor legend {font-size:1rem;font-weight:650}
.contact-row {display:grid;grid-template-columns:minmax(7rem,.6fr) minmax(10rem,1.4fr) auto;gap:.7rem;align-items:end;border-bottom:1px solid #e1e9e7;padding-block:.25rem .65rem}
.contact-row label {margin:.2rem 0}
.text-button {display:inline-block;background:transparent;color:#075970;border:0;text-decoration:underline;text-underline-offset:3px;padding:.5rem;font:inherit}
.editing-post #status:empty {display:none}
@media(max-width:600px){.contact-row{grid-template-columns:minmax(0,1fr)}.contact-row button{justify-self:start}.editing-post .heading{align-items:start}.editing-post #edit-toolbar{width:100%;justify-content:space-between}}

#preview-links:empty {display:none}
#preview-links {display:flex;gap:.35rem .8rem;flex-wrap:wrap;font-size:.875rem}

.edit-business {margin-top:1.2rem;border-top:1px solid #d4e2de;padding-top:.9rem}
.edit-business>summary {font-size:1rem}
#use-category-photo {margin:0 0 .15rem;padding-inline:0;font-size:.9rem}

#use-category-photo[hidden] {display:none}

.heading-actions {display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem}
.directory-return {
  display:inline-flex;align-items:center;gap:.5rem;min-height:36px;padding:.3rem .75rem;
  border:1px solid #b6cdca;border-radius:6px;background:#fff;color:#135b60;
  font-size:.875rem;font-weight:650;text-decoration:none
}
.directory-return span {font-size:1.1rem;line-height:1}
.directory-return:hover {background:#e9f4f1;border-color:#76a7a0}
.directory-return:focus-visible {outline:2px solid #076b71;outline-offset:3px}
@media(max-width:600px) {.heading-actions {width:100%}}
.studio-showcase{margin-top:32px;border-top:1px solid #cfdfd8;padding-top:16px}.studio-showcase iframe{display:block;width:100%;border:1px solid #d6e1dc;border-radius:10px;background:#f6f9f7}
#lookup.secondary{background:#164fc1;color:white;border:1px solid #103fa3;font-weight:700;box-shadow:0 2px 5px #163d7d24}#lookup.secondary:hover{background:#103e9d}#lookup.secondary:focus-visible{outline:3px solid #598aee;outline-offset:3px}
.studio-processing{display:flex;align-items:center;gap:14px;padding:12px 16px;margin:10px 0;background:#f1f7fa;color:#163d51;border-radius:10px}.studio-rings{position:relative;display:inline-grid;place-items:center;width:82px;height:82px;flex:none}.studio-rings i{position:absolute;inset:0;border-radius:50%;border:2px solid transparent;border-top-color:#2167b3;animation:studio-turn 2.8s linear infinite}.studio-rings i:nth-child(2){inset:5px;border-top-color:#078778;animation-duration:2.1s;animation-direction:reverse}.studio-rings i:nth-child(3){inset:10px;border-top-color:#8562aa;animation-duration:2.7s}.studio-rings i:nth-child(4){inset:15px;border-top-color:#b57517;animation-duration:2s;animation-direction:reverse}.studio-rings i:nth-child(5){inset:20px;border-top-color:#318996;animation-duration:1.7s}.studio-rings b{border-radius:50%;background:white;font:700 11px/32px system-ui;text-align:center;min-width:32px;color:#234859;font-variant-numeric:tabular-nums}@keyframes studio-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.studio-rings i{animation:none;transform:rotate(40deg)}}
.studio-published{background:#eff9f3;border:1px solid #b6dcc9;border-radius:14px;padding:clamp(18px,3vw,36px);margin:18px 0;color:#184937}.studio-published h2{margin-top:0}.studio-published a{display:inline-block;margin:6px 16px 0 0}.studio-published a:first-of-type{background:#09614e;color:white;border-radius:7px;padding:10px 16px;text-decoration:none;font-weight:700}
