/* ==========================================================================
   portfolios.docksurge.com: what only this site has. Everything else (type,
   colours, header, footer, buttons, forms, motion) is docksurge.com's own
   site.css, which build.mjs copies from the DockSurge-Website project.
   ========================================================================== */

/* The logo carries the product's name, so this site is never taken for
   docksurge.com itself. */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-tag { padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 500; line-height: 1.2; }
@media (max-width: 380px) { .brand-tag { display: none; } }

/* ------------------------------------------------------------------ portfolio websites */

/* The catalogue (/portfolios/): chips for the kind of professional and a
   menu for the style, then a grid of designs, each with its thumbnail and two
   buttons. site.js does the filtering. */
.section.section-tight { padding: 104px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; color: var(--ink); font: 500 14.5px/1 var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.filter-chip span { color: var(--faint); font-size: 12.5px; }
.filter-chip:hover { border-color: var(--ink); }
.filter-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.filter-chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .6); }
.filter-style select { min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font: 500 14.5px/1 var(--font); cursor: pointer; }
.design-count { margin: 28px 0 22px; color: var(--muted); font-size: 15px; }
.design-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.design-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; transition: transform .5s var(--ease), box-shadow .4s, border-color .3s; }
.design-card[hidden] { display: none; }
.design-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 30px 60px -36px rgba(2, 23, 60, .4); }
.design-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.design-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale .8s var(--ease); }
.design-card:hover .design-shot img { scale: 1.04; }
.design-meta { padding: 20px 22px 0; }
.design-no { color: var(--blue); font-size: 13px; font-weight: 500; letter-spacing: .06em; }
.design-meta h3 { margin-top: 4px; font-size: 1.35rem; letter-spacing: -.025em; }
.design-meta p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.design-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 18px 22px 22px; }
.design-none { margin-top: 24px; color: var(--muted); }

/* The brief form (/portfolios/start/): the chosen design and the form's
   parts beside one card of numbered parts. site.js adds rows, keeps the
   answers in this browser, and sends them as one brief. */
.page-hero-sm { padding-bottom: 56px; }
.page-hero-sm h1 { max-width: 14em; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.section.section-brief { padding: 24px 0 136px; }
.brief-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.brief-side { position: sticky; top: calc(var(--header) + 28px); display: grid; gap: 22px; }
.brief-design { display: grid; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.brief-design-shot { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, var(--blue-soft), var(--bg-soft)); color: var(--blue); }
.brief-design-shot .icon { width: 34px; height: 34px; }
.brief-design-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.brief-design-label { color: var(--faint); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.brief-design-name { margin-top: 4px; color: var(--ink); font-weight: 500; line-height: 1.35; }
.brief-design-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 14.5px; }
.brief-design-links a { display: inline-flex; align-items: center; gap: 6px; }
.brief-design-links a[hidden] { display: none; }
.brief-design-links .icon { width: 15px; height: 15px; }
.brief-steps { display: grid; gap: 2px; counter-reset: part; }
.brief-steps a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; color: var(--muted); font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.brief-steps a::before { content: counter(part, decimal-leading-zero); counter-increment: part; color: var(--faint); font-size: 12.5px; font-weight: 500; }
.brief-steps a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.brief-steps a.is-here { background: var(--blue-soft); color: var(--ink); }
.brief-steps a.is-here::before { color: var(--blue); }
.brief-steps a.is-done::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #1FA463; }
.brief-note { color: var(--muted); font-size: 14.5px; }
.brief-form { padding: 40px; }
.brief-form .form-fields { gap: 0; margin-top: 0; }
.brief-part { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 34px 0; border: 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 24px); }
.brief-part:first-child { padding-top: 0; border-top: 0; }
/* A floated legend is laid out like any other item, so it sits in the grid. */
.brief-part legend { float: left; display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 0; color: var(--ink); font-size: 1.45rem; font-weight: 460; letter-spacing: -.03em; }
.brief-part legend span { color: var(--blue); font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.brief-part legend em { color: var(--faint); font-size: 15px; font-style: normal; font-weight: 400; letter-spacing: 0; }
.part-lead { margin-top: -4px; color: var(--muted); font-size: 15.5px; }
.field-label { margin-top: 6px; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.field-label em { color: var(--faint); font-style: normal; font-weight: 400; }
.rows { display: grid; gap: 12px; }
.row { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-soft); }
.rows-work .row { grid-template-columns: 1.3fr 1.7fr .8fr .55fr; }
.rows-offer .row { grid-template-columns: 1fr 1.6fr; }
.rows-exp .row { grid-template-columns: .7fr 1.2fr 1.2fr; }
.row .field { gap: 5px; }
.row .field > span { color: var(--muted); font-size: 13px; font-weight: 400; }
.row .field input { min-height: 44px; }
.add-row { justify-self: start; }
.add-row[hidden] { display: none; }
.check { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; transition: background .2s, border-color .2s, color .2s; }
.choice input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 500; }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.field[hidden] { display: none; }
.photo-list { margin: 2px 0 4px; }
.brief-noscript { margin-bottom: 20px; padding: 16px 18px; border-radius: 16px; background: #FFF6E0; color: #6B4A00; }
.brief-form .form-foot { margin-top: 0; padding-top: 30px; border-top: 1px solid var(--line); }
.brief-sent-actions { margin-top: 16px; }

@media (max-width: 1120px) {
  .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 960px) {
  .section.section-tight { padding: 88px 0; }
  .section.section-brief { padding-bottom: 104px; }
  .brief-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .brief-side { position: static; }
  .brief-steps { display: none; }
  .brief-design { grid-template-columns: 180px minmax(0, 1fr); align-items: center; }
  .rows-work .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .design-grid { grid-template-columns: minmax(0, 1fr); }
  .filter-style, .filter-style select { width: 100%; }
  .brief-form { padding: 26px 18px; }
  .brief-design { grid-template-columns: minmax(0, 1fr); }
  .rows-offer .row, .rows-exp .row { grid-template-columns: minmax(0, 1fr); }
  /* Kind and year share a line on a phone; title and description take the whole width. */
  .rows-work .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows-work .row .field:nth-child(-n + 2) { grid-column: 1 / -1; }
}
