/*
 * Contact as a desk (inc/contact.php), 0.13.0: what happens next beside the form; offices without map embeds.
 * Lists are divs with role=list (content list rules would reach a <ul>/<ol>).
 */

.entry-content--canvas :is(.agk-desk, .agk-offices) .agk-desk__kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick-ink);
}
.entry-content--canvas :is(.agk-desk, .agk-offices) .wp-block-heading { margin: 0 0 clamp(24px, 3vw, 40px); }
.entry-content--canvas :is(.agk-desk__next, .agk-offices) > * + * { margin-block-start: 0; }
.entry-content--canvas .agk-desk__next > .agk-desk__direct { margin-top: 28px; }

/* ------------------------------------------------------------------ desk ---- */

.agk-desk__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.agk-desk__steps { display: grid; gap: 22px; }
.agk-desk__step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
}
.agk-desk__no {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--brand);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.agk-desk__t { font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--navy); }
.agk-desk__d { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.agk-desk__direct { display: grid; gap: 6px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--agk-line); }
.entry-content--canvas .agk-desk__direct p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.agk-desk__direct a { color: var(--navy); font-weight: 500; }

.agk-desk__form {
  padding: clamp(24px, 3vw, 40px);
  background: var(--white);
  border-top: 4px solid var(--brick);
  box-shadow: 0 0 0 1px var(--agk-line), 0 24px 48px -32px rgba(0, 20, 35, 0.45);
}
.agk-desk__form > :first-child { margin-top: 0; }
.agk-desk__form > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- offices ---- */

.agk-offices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--agk-line);
  border-left: 1px solid var(--agk-line);
}
.agk-office {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 26px 26px 22px;
  background: var(--white);
  border-right: 1px solid var(--agk-line);
  border-bottom: 1px solid var(--agk-line);
}
.agk-office__country { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.agk-office__city { font-size: 26px; line-height: 1.2; font-weight: 500; color: var(--navy); }
.agk-office__addr { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.agk-office__time { margin-top: 2px; font-size: 14px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.agk-office__time[hidden] { display: none; }
.agk-office__time b { font-weight: 500; color: var(--navy); }
.agk-office__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; padding-top: 14px; font-size: 14.5px; }
.agk-office__links a { font-weight: 500; color: var(--brick-ink); text-decoration: none; overflow-wrap: anywhere; }
.agk-office__links a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.agk-office__links a:focus-visible,
.agk-desk__direct a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.entry-content--canvas .agk-offices .agk-offices__follow { margin: 20px 0 0; font-size: 15px; color: var(--ink-soft); }
.agk-offices__follow a { font-weight: 500; color: var(--navy); }

@media (max-width: 1000px) {
  .agk-desk__grid { grid-template-columns: minmax(0, 1fr); }
  .agk-offices__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .agk-offices__grid { grid-template-columns: minmax(0, 1fr); }
}
