/* Guides c layout for /hire-an-ai-agent-developer (templates/hire-guide.html). The body is plain markdown with no
   wrappers, so each band is drawn from sibling selectors on the page's own headings: a band's elements bleed to the
   window edge with a box-shadow and are clipped to their own height. Colours are the site's nord tokens plus two
   steps (--deep, --step) that exist only here. */

.page.hire-guide {
  --deep: var(--surface);
  --step: var(--surface);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  max-width: none;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 0;
  display: grid;
  grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 74rem) minmax(var(--gutter), 1fr);
}
.hire-guide > * { grid-column: 2; margin: 0; }
.page.hire-guide.hire-guide:not(.ov, .tool) :is(ul, ol):not([class]) { max-width: none; }
.page.hire-guide.hire-guide:not(.ov, .tool) p { max-width: 66ch; }
.hire-guide > p { margin-top: 1rem; }

/* Words on the page. */
.hire-guide h1 { font-size: clamp(2.1rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 20ch; text-wrap: balance; }
.hire-guide .lede { font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.45; max-width: 36ch; margin-top: 1.6rem; color: var(--ink); }
.hire-guide h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: clamp(4rem, 8vw, 6.5rem) 0 1.2rem; letter-spacing: -0.02em; }
.hire-guide h3 { font-size: 1.15rem; }
.hire-guide code { color: var(--head); background: var(--code); font-size: 0.8em; padding: 0.15em 0.5em; }

/* The first screen: the button that answers the question most buyers meet first. */
.hire-guide .lede + p { margin-top: 2.2rem; }
.hire-guide .lede + p a { display: inline-block; background: var(--accent); color: var(--bg); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.35rem); padding: 1.05rem 1.9rem; text-decoration: none; transition: filter 140ms ease-out; }
.hire-guide .lede + p a:hover, .hire-guide .lede + p a:focus-visible { filter: brightness(1.08); text-decoration: none; }
.hire-guide .lede + p a:focus-visible { outline: 2px solid var(--head); outline-offset: 3px; }

/* In short: three tiles in three tones. */
.hire-guide #in-short { margin-top: clamp(3rem, 6vw, 4.5rem); }
.hire-guide #in-short + ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.4rem; }
.hire-guide #in-short + ul li { margin: 0; padding: 2rem 1.8rem 2.2rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.35; color: var(--head); background: var(--surface); }

/* The dark fields: sections the page's front matter lists under `panels:` (sitec wraps each in section.hire-panel). The section carries the
   background and the vertical room; its children are inset to the table cells' padding, and the right padding holds a line to 62ch
   (the 66ch cap on p would otherwise make each piece a different width and step the panel's right edge). The first panel is a heading, an
   intro and a table; the second a heading, a lead, a button paragraph (a second paragraph holding just a link) and a closing paragraph. */
.hire-guide .hire-panel { background: var(--deep); margin-top: clamp(4rem, 8vw, 6.5rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
.hire-guide .hire-panel > :is(h2, p, .dt) { margin: 0; }
.hire-guide .hire-panel > h2 { max-width: none; padding: 0 0 1.2rem; padding-inline: 1.4rem max(1.4rem, calc(100% - 62ch)); }
.page.hire-guide.hire-guide:not(.ov, .tool) .hire-panel > p { max-width: none; padding-inline: 1.4rem max(1.4rem, calc(100% - 62ch)); }
.hire-guide .hire-panel > h2 + p { font-size: 1.1rem; }
.hire-guide .hire-panel > h2 + p:has(+ .dt) { font-size: 1.15rem; color: var(--head); padding-bottom: 1.6rem; }
.hire-guide .hire-panel > .dt { --dt-size: clamp(0.95rem, 1.4vw, 1.1rem); }
.hire-guide .hire-panel .dt-grid { grid-template-columns: 26% repeat(2, minmax(0, 1fr)); row-gap: 2px; }
.hire-guide .hire-panel :is(.dt-head, .dt-row) { border: 0; }
.hire-guide .hire-panel :is(.dt-cell, .dt-key, [role="columnheader"]) { padding: 1.25rem 1.4rem; line-height: 1.5; }
.hire-guide .hire-panel [role="columnheader"] { background: var(--code); color: var(--head); font-size: 0.85rem; }
.hire-guide .hire-panel :is(.dt-cell, .dt-key) { background: var(--surface); color: var(--ink); }
.hire-guide .hire-panel .dt-row:nth-child(odd) :is(.dt-cell, .dt-key) { background: var(--step); }
.hire-guide .hire-panel .dt-key { font-weight: 650; color: var(--head); }
.hire-guide .hire-panel > .dt-copy { margin: 0.6rem 1.4rem 0; }
.hire-guide .hire-panel > p + p:has(> a:only-child) { padding-block: 1.2rem 0.4rem; }
.hire-guide .hire-panel > p + p:has(> a:only-child) > a { display: inline-block; background: var(--accent); color: var(--bg); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.35rem); padding: 1.05rem 1.9rem; text-decoration: none; transition: filter 140ms ease-out; }
.hire-guide .hire-panel > p + p:has(> a:only-child) > a:hover, .hire-guide .hire-panel > p + p:has(> a:only-child) > a:focus-visible { filter: brightness(1.08); text-decoration: none; }
.hire-guide .hire-panel > p:last-child { padding-block: 1rem 0; font-size: 1.05rem; }
.hire-guide .hire-panel + .sources { margin-top: clamp(5rem, 9vw, 7rem); }

/* Which fits you: two columns. */
.hire-guide #which-fits-you + ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.4rem; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.hire-guide #which-fits-you + ul li { margin: 0; padding: 2.2rem 2rem 2.4rem; font-size: 1.1rem; line-height: 1.55; background: var(--surface); }
.hire-guide #which-fits-you + ul li + li { background: var(--step); }
.hire-guide #which-fits-you + ul strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--head); margin-bottom: 0.7rem; }

/* The brief. */
.hire-guide #the-brief-to-paste + p, .hire-guide #the-brief-to-paste + p + p { font-size: 1.1rem; max-width: 60ch; }
.hire-guide pre { position: relative; background: var(--code); padding: clamp(1.6rem, 3vw, 2.8rem); padding-bottom: 5rem; margin-top: 1.4rem; font-size: clamp(0.95rem, 1.5vw, 1.2rem); line-height: 1.6; white-space: pre-wrap; overflow-x: visible; color: var(--head); }
.hire-guide pre code { font-size: inherit; padding: 0; background: none; }
.hire-guide .copy-brief { position: absolute; right: 1.4rem; bottom: 1.2rem; background: var(--head); color: var(--bg); font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; padding: 0.8rem 1.4rem; border: 0; cursor: pointer; }
.hire-guide .copy-brief:hover, .hire-guide .copy-brief:focus-visible { filter: brightness(1.08); }
.hire-guide .copy-brief:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The fifteen steps: one row each, the number as large type, rows in two tones. */
.hire-guide #the-fifteen-steps + h3 { margin-top: 1.6rem; }
.hire-guide h3 { margin: clamp(2.6rem, 5vw, 3.6rem) 0 0.6rem; font-size: clamp(1.3rem, 2.4vw, 1.7rem); padding: 0 1.4rem; }
.hire-guide > ol { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.hire-guide > ol > li { position: relative; margin: 0; padding: 1.7rem 1.6rem 1.9rem 5.2rem; font-size: 1.08rem; line-height: 1.6; background: var(--surface); }
.hire-guide > ol > li:nth-child(4n+3), .hire-guide > ol > li:nth-child(4n+4) { background: var(--step); }
.hire-guide > ol > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hire-guide > ol > li::before { content: counter(list-item); position: absolute; left: 1.4rem; top: 1.45rem; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; letter-spacing: -0.03em; color: var(--mute); }
.hire-guide > ol > li > strong { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; color: var(--head); margin-bottom: 0.45rem; }
.hire-guide .cite { white-space: nowrap; }

/* Look at your own plan: two columns of ruled lines. */
.hire-guide #look-at-your-own-plan + p { color: var(--mute); }
.hire-guide #look-at-your-own-plan + p + ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 3.5rem; margin-top: 1.2rem; }
.hire-guide #look-at-your-own-plan + p + ul li { margin: 0; padding: 1.2rem 0; border-top: 1px solid var(--line); font-size: 1.1rem; line-height: 1.5; }


@media (max-width: 820px) {
  .hire-guide #in-short + ul, .hire-guide #which-fits-you + ul, .hire-guide #look-at-your-own-plan + p + ul { grid-template-columns: 1fr; }
  .hire-guide #in-short + ul li { padding: 1.4rem 1.2rem; }
  .hire-guide #which-fits-you + ul li { padding: 1.6rem 1.2rem; }
  .hire-guide > ol { grid-template-columns: 1fr; }
  .hire-guide > ol > li, .hire-guide > ol > li:nth-child(4n+3), .hire-guide > ol > li:nth-child(4n+4) { padding: 1.3rem 1rem 1.4rem 1rem; background: var(--surface); }
  .hire-guide > ol > li:nth-child(even) { background: var(--step); }
  .hire-guide > ol > li::before { position: static; display: block; font-size: 1.6rem; margin-bottom: 0.4rem; }
  .hire-guide h3 { padding: 0 1rem; }
  .hire-guide pre { padding-bottom: 4.6rem; }
}

.hire-guide .sources { margin-top: clamp(4rem, 8vw, 6rem); font-size: 0.95rem; }
.hire-guide .sources h2 { margin-top: 0; }
.hire-guide .sources ol { padding-left: 1.4rem; }
.hire-guide .sources li { margin-top: 0.8rem; overflow-wrap: anywhere; }
.hire-guide #which-fits-you + ul li, .hire-guide > ol > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

