/* Buildner Tools · shared shell
   Brand: Buildner Brand Guidelines v1.0 (monochrome frame) plus one contrast colour for bnr.ac, Indigo,
   set as --contrast by inc/config.php (--accent is an alias kept for older pages). Warning yellow is
   functional only (notices and warnings). One container, twelve columns, one gutter. */

@font-face { font-family: "Graphik"; src: url("https://architecturecompetitions.com/assets/web/fonts/Graphik/Graphik-Regular-Web.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Graphik"; src: url("https://architecturecompetitions.com/assets/web/fonts/Graphik/Graphik-Medium-Web.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Graphik"; src: url("https://architecturecompetitions.com/assets/web/fonts/Graphik/Graphik-Semibold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("https://architecturecompetitions.com/assets/web/fonts/SF-Pro-Display/SF-Pro-Display-Semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --black: #000000; --white: #FFFFFF; --grey60: #666666; --hair: #E3E3E3; --panel: #F1F1F1; --muted: #8C8C8C; --warn: #FFD400;
  --contrast: #4B2BFF; --accent: var(--contrast);
  --gutter: 24px;
  --body: "Graphik", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--body); font-size: 16px; line-height: 24px; font-variant-numeric: tabular-nums; }
a { color: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

/* The seven type roles */
.h1 { font-family: var(--display); font-weight: 600; font-size: 56px; line-height: 64px; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.h2 { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 48px; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.lead { font-size: 20px; line-height: 28px; margin: 0; }
.name { font-weight: 500; font-size: 20px; line-height: 28px; margin: 0; }
.body { font-size: 16px; line-height: 24px; margin: 0; }
.small { font-size: 14px; line-height: 22px; margin: 0; }
.label { font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.grey { color: var(--grey60); }

/* The grid: twelve columns, one gutter. Place children with grid-column: 1 / 9, 9 / 13, span 3, span 4. */
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); }
.c-8 { grid-column: 1 / 9; }
.c-4 { grid-column: 9 / 13; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: 1 / -1; }
.rule { border-top: 1px solid var(--hair); }

/* Lockup: wordmark | TOOLS over "for architects" */
.lockup { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--black); }
.lockup .wordmark { display: block; height: 18px; width: auto; }
.lockup-rule { width: 1px; height: 30px; background: var(--hair); }
.lockup-text { display: grid; gap: 3px; }
.lockup-tools { font-weight: 700; font-size: 13px; line-height: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--contrast); }
.lockup-sub { font-weight: 500; font-size: 10px; line-height: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--black); }

/* Header and menu */
.top { border-bottom: 1px solid var(--hair); background: var(--white); }
.top-in { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; min-height: 72px; }
.top-in .lockup { align-self: center; }
.nav { display: flex; align-items: stretch; gap: 32px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; color: var(--black); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav-link.is-active { border-bottom-color: var(--contrast); }
.nav-link .ext { width: 10px; height: 10px; }
.crumbs { display: flex; align-items: center; gap: 8px; padding: 16px 0 0; font-size: 13px; line-height: 16px; color: var(--grey60); }
.crumbs a { color: var(--grey60); text-decoration: none; }
.crumbs .sep { width: 8px; height: 8px; flex: none; color: var(--muted); }
.crumbs [aria-current] { color: var(--black); }
.nav-link:focus-visible, a:focus-visible, button:focus-visible, .field:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

/* Buttons and fields: 48 px, 2 px radius */
.btn { height: 48px; padding: 0 20px; border-radius: 2px; font-family: var(--body); font-weight: 500; font-size: 16px; line-height: 46px; cursor: pointer; text-decoration: none; display: inline-block; border: 1px solid transparent; transition: background-color 150ms ease, border-color 150ms ease; white-space: nowrap; }
.btn.primary { background: var(--contrast); color: var(--white); border-color: var(--contrast); }
.btn.primary:disabled { background: var(--panel); color: var(--grey60); border-color: var(--panel); cursor: default; }
.btn.secondary { background: var(--white); color: var(--black); border-color: var(--black); }
.btn.secondary:disabled { color: var(--grey60); border-color: var(--hair); cursor: default; }
.field { height: 48px; width: 100%; min-width: 0; padding: 0 14px; border: 1px solid var(--black); border-radius: 2px; background: var(--white); color: var(--black); font-family: var(--body); font-size: 16px; line-height: 24px; -webkit-appearance: none; appearance: none; }
.field::placeholder { color: var(--grey60); opacity: 1; }
select.field { padding-right: 44px; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.tert { color: var(--black); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.arrow { display: inline-block; transition: transform 150ms ease, color 150ms ease; }

/* Menu page */
.intro { padding-block: 80px 48px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); align-items: end; }
.intro > :first-child { grid-column: 1 / 9; }
.intro > .facts { grid-column: 9 / 13; }
.intro .lead { max-width: 54ch; padding-top: 20px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.fact .h1 { font-size: 56px; line-height: 64px; color: var(--contrast); }
.fact .body { padding-top: 2px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; padding: 1px; margin-top: 24px; }
.tile { position: relative; grid-column: span 4; display: flex; flex-direction: column; gap: 12px; min-height: 300px; padding: 32px 32px 28px; background: var(--white); box-shadow: 0 0 0 1px var(--hair); color: var(--black); text-decoration: none; transition: background-color 150ms ease; }
.tile:focus-visible { outline: 2px solid var(--black); outline-offset: -6px; }
.tile .icon { width: 48px; height: 48px; display: block; color: var(--black); margin: -4px 0 0 -4px; --mark-accent: var(--contrast); }
.tile .name { padding-top: 24px; transition: color 150ms ease; }
.tile .body { color: var(--grey60); max-width: 34ch; }
.tile .foot { margin-top: auto; padding-top: 24px; min-height: 48px; display: flex; align-items: center; }
.note { border-top: 1px solid var(--hair); margin-top: 80px; padding-block: 40px 80px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gutter); align-items: start; }
.note > :nth-child(1) { grid-column: 1 / 9; }
.note > :nth-child(2) { grid-column: 9 / 13; }
.note .body { max-width: 60ch; }

/* Gate page */
.gate-main { padding-block: 56px 96px; }
.col { max-width: 760px; display: grid; gap: 24px; }
.col .lead { padding-top: 4px; max-width: 56ch; }
.notice { background: var(--warn); color: var(--black); border-radius: 2px; padding: 24px; display: grid; gap: 12px; margin-top: 8px; }
.notice .label { font-weight: 700; color: var(--black); }
.notice .body { max-width: 66ch; }
.checks { display: grid; gap: 12px; border-top: 1px solid var(--hair); padding-top: 24px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; cursor: pointer; padding: 8px 0; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.box { width: 24px; height: 24px; border: 1px solid var(--black); border-radius: 2px; background: var(--white); display: grid; place-items: center; }
.box svg { width: 14px; height: 14px; display: none; }
.check input:checked + .box { background: var(--black); border-color: var(--black); }
.check input:checked + .box svg { display: block; }
.check input:focus-visible + .box { outline: 2px solid var(--black); outline-offset: 3px; }
.check .body a { text-decoration: underline; text-underline-offset: 3px; }
.record { border-top: 1px solid var(--hair); padding-top: 24px; }
.record .small { max-width: 66ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; }
.status { min-height: 24px; color: var(--grey60); }
.status.error { color: var(--black); }

/* Footer */
.site-foot { background: var(--black); color: var(--white); }
.site-foot .wrap { display: grid; gap: 40px; padding-block: 56px 40px; }
.site-foot .lockup { color: var(--white); }
.site-foot .lockup-rule { background: rgba(255,255,255,0.25); }
.site-foot .lockup-tools { color: var(--white); }
.site-foot .lockup-sub { color: var(--muted); }
.fhead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gutter); align-items: end; }
.fhead > :first-child { grid-column: 1 / 9; }
.fhead > .fintro { grid-column: 9 / 13; }
.positioning { color: var(--white); margin-top: 20px; }
.fintro { color: var(--muted); max-width: 46ch; }
.fintro a { color: var(--white); text-decoration: none; }
.fcols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); border-top: 1px solid rgba(255,255,255,0.2); padding-top: 40px; }
.fcol { grid-column: span 3; }
.fcol .label { color: var(--muted); }
.fcol ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.fcol a { color: var(--white); text-decoration: none; }
.legal { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 24px; color: var(--muted); font-size: 13px; line-height: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.legal a { color: var(--muted); text-decoration: none; }
.legal-links { display: flex; gap: 20px; }

/* Hover only where a pointer can hover, so tapped tiles do not stick */
@media (hover: hover) {
  .nav-link:hover { border-bottom-color: var(--black); }
  .nav-link.is-active:hover { border-bottom-color: var(--contrast); }
  .crumbs a:hover { color: var(--black); text-decoration: underline; }
  .btn.primary:hover:not(:disabled) { background: var(--black); border-color: var(--black); }
  .btn.secondary:hover:not(:disabled) { background: var(--panel); }
  .tert:hover { color: var(--contrast); }
  a:hover .arrow, .tert:hover .arrow { transform: translateX(4px); color: var(--contrast); }
  .tile:hover { background: var(--panel); }
  .tile:hover .name, .tile:hover .icon { color: var(--contrast); }
  .check .body a:hover { color: var(--contrast); }
  .fintro a:hover, .fcol a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .legal a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
}

@media (max-width: 900px) {
  .intro > :first-child, .intro > .facts, .note > :nth-child(1), .note > :nth-child(2), .fhead > :first-child, .fhead > .fintro, .c-8, .c-4 { grid-column: 1 / -1; }
  .intro, .note, .fhead { align-items: start; }
  .intro { padding-block: 56px 32px; }
  .facts { max-width: 520px; }
  .tile { grid-column: span 6; }
  .fcol { grid-column: span 6; }
  .span-3, .span-4 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .top-in { flex-wrap: wrap; gap: 0 24px; }
  .top-in .lockup { padding-block: 16px; }
  .nav { width: 100%; gap: 24px; border-top: 1px solid var(--hair); }
  .nav-link { padding-block: 12px; margin-bottom: -1px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .h1, .fact .h1 { font-size: 40px; line-height: 48px; }
  .h2 { font-size: 32px; line-height: 40px; }
  .tile { grid-column: 1 / -1; min-height: 0; padding: 28px 24px 24px; }
  .tile .icon { width: 44px; height: 44px; }
  .gate-main { padding-block: 40px 72px; }
  .notice { padding: 20px; }
  .fcol, .span-3, .span-4, .span-6 { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .arrow, .tile, .tile .name, .btn { transition: none; }
  a:hover .arrow, .tert:hover .arrow { transform: none; }
}
