/* Torvald Auto Service. Website concept by Protean Hollow LLC.
   Self contained stylesheet. No shared assets, no shadows, no radius. */

:root {
  --ink: #0a0a0a;
  --ground: #ffffff;
  --grey: #f4f4f5;
  --grey-2: #e4e4e7;
  --rule: #0a0a0a;
  --rule-soft: #c9c9ce;
  --muted: #52525b;
  --accent: #facc15;
  --accent-2: #eab308;
  --urgent: #c81e1e;
  --container: 1280px;
  --bar-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-bottom: var(--bar-h);
  background: var(--ground);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4, .display, .kicker, .btn, th, .stat-n {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0;
}

h1 { font-size: clamp(34px, 8vw, 76px); line-height: 0.96; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 4.2vw, 38px); line-height: 1.02; }
h3 { font-size: clamp(17px, 2.4vw, 21px); line-height: 1.1; }

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--muted);
}

.rule-top { border-top: 1px solid var(--rule); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid var(--rule);
  background: var(--accent);
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  line-height: 1;
}

.btn:hover { background: var(--accent-2); }

.btn-ghost {
  background: transparent;
  color: var(--ground);
  border-color: var(--ground);
}

.btn-ghost:hover { background: var(--ground); color: var(--ink); }

.btn-ink {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}

.btn-ink:hover { background: #26262b; }

.btn-block { width: 100%; }

/* ---------- top utility bar ---------- */

.util {
  background: var(--ink);
  color: #e7e7ea;
  font-size: 12.5px;
  border-bottom: 1px solid var(--rule);
}

.util .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}

.util b { color: var(--accent); font-weight: 600; }
.util a { text-decoration: none; }
.util a:hover { color: var(--accent); }
.util-sep { display: none; }

/* ---------- masthead ---------- */

.mast { border-bottom: 1px solid var(--rule); background: var(--ground); }

.mast .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { text-decoration: none; display: block; }

.brand-name {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-name span {
  border-bottom: 4px solid var(--accent);
  padding-bottom: 1px;
}

.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

/* ---------- focus, visible on every interactive element ---------- */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* on dark grounds the ink ring would vanish */
.util a:focus-visible,
.hero a:focus-visible,
.foot a:focus-visible,
.actionbar a:focus-visible {
  outline-color: var(--accent);
}

.urgent a:focus-visible,
.urgent-tag:focus-visible { outline-color: #fff; }

/* a yellow button on a dark ground needs a ring that clears both */
.hero .btn:focus-visible,
.actionbar .btn:focus-visible { outline-color: #ffffff; }

.btn-ghost:focus-visible { outline-color: var(--accent); }

/* ---------- nav ---------- */

.nav { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.08em;
  background: var(--ground);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 10px 14px;
  cursor: pointer;
  line-height: 1;
}

.nav-toggle:hover { background: var(--accent); }

.nav-toggle-bars {
  display: inline-block;
  width: 16px;
  height: 12px;
  position: relative;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] { background: var(--accent); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.nav.open {
  display: block;
  width: 100%;
  order: 3;
  border-top: 1px solid var(--rule);
  margin-top: 12px;
}

.nav.open a {
  display: block;
  padding: 13px 2px;
  border-bottom: 1px solid var(--rule-soft);
  border-left: 4px solid transparent;
  padding-left: 10px;
}

.nav.open a:hover,
.nav.open a:focus-visible {
  border-left-color: var(--accent);
  background: var(--grey);
}

.nav a {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}

.nav a:hover { border-bottom-color: var(--accent); }

.mast-call { display: none; }

/* ---------- urgency strip. red is reserved for this ---------- */

.urgent {
  background: var(--urgent);
  color: #fff;
  border-bottom: 1px solid var(--rule);
}

.urgent .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 13.5px;
}

.urgent-tag {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  border: 1px solid #fff;
  padding: 2px 7px;
}

.urgent a { color: #fff; font-weight: 700; }

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--ground);
  border-bottom: 1px solid var(--rule);
}

.hero .wrap { padding-top: 30px; padding-bottom: 0; }

.hero h1 { color: var(--ground); max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-lede {
  margin-top: 14px;
  max-width: 62ch;
  color: #d4d4d8;
  font-size: 15.5px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.facts {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid #3f3f46;
  margin-top: 24px;
}

.fact {
  padding: 12px 14px;
  border-bottom: 1px solid #3f3f46;
}

.fact:last-child { border-bottom: 0; }

.fact-k {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #a1a1aa;
}

.fact-v {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-top: 3px;
}

.fact-v a { text-decoration: none; }
.fact-v a:hover { color: var(--accent); }
.fact-note { font-size: 12px; color: #a1a1aa; text-transform: none; letter-spacing: 0; font-family: Inter, Arial, sans-serif; }

.hero-band {
  margin-top: 26px;
  aspect-ratio: 1536 / 1024;
  width: 100%;
  border-top: 1px solid #3f3f46;
  background: var(--grey);
  overflow: hidden;
}

.hero-band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- generic section ---------- */

.sec { border-bottom: 1px solid var(--rule); }
.sec .wrap { padding-top: 34px; padding-bottom: 34px; }
.sec-grey { background: var(--grey); }

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 20px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.sec-head p { font-size: 14px; color: var(--muted); max-width: 52ch; }

/* ---------- appointment form ---------- */

.book { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--rule); background: var(--ground); }

.book-form { padding: 18px 16px 20px; }

.book-side {
  padding: 18px 16px 20px;
  background: var(--grey);
  border-top: 1px solid var(--rule);
}

.fields { display: grid; grid-template-columns: 1fr; gap: 12px; }

.field { display: block; }

.field > span {
  display: block;
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
}

.req { color: var(--urgent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 11px 12px;
  appearance: none;
}

.field textarea { min-height: 108px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: -1px;
}

.field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a0a0a' stroke-width='2'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-size: 12px 8px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.veh { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.veh .field:first-child { grid-column: 1 / -1; }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }

.choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--rule);
  padding: 9px 12px;
  font-size: 14px;
  cursor: pointer;
}

.choice input { accent-color: var(--ink); margin: 0; }

.form-foot {
  margin-top: 16px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 14px;
  display: grid;
  gap: 12px;
}

.form-note { font-size: 12.5px; color: var(--muted); }

.form-status {
  display: none;
  border: 1px solid var(--rule);
  border-left: 6px solid var(--accent);
  background: var(--grey);
  padding: 12px 14px;
  font-size: 14px;
}

.form-status.on { display: block; }

.form-status strong {
  display: block;
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.02em;
  margin-bottom: 5px;
}

.side-list { list-style: none; margin: 0; padding: 0; }

.side-list li {
  border-top: 1px solid var(--rule-soft);
  padding: 9px 0;
  font-size: 14px;
  display: flex;
  gap: 10px;
}

.side-list li:first-child { border-top: 0; }

.side-list b {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-width: 26px;
}

.hours-table { width: 100%; border-collapse: collapse; margin-top: 12px; }

.hours-table th,
.hours-table td {
  border: 1px solid var(--rule);
  padding: 7px 10px;
  font-size: 14px;
  text-align: left;
}

.hours-table th {
  font-size: 12px;
  letter-spacing: 0.1em;
  width: 45%;
  background: var(--ground);
}

.hours-table tr.today td,
.hours-table tr.today th { background: var(--accent); }

/* ---------- services table ---------- */

.svc { width: 100%; border-collapse: collapse; background: var(--ground); }

.svc caption { text-align: left; font-size: 12.5px; color: var(--muted); padding-bottom: 8px; }

.svc th,
.svc td {
  border: 1px solid var(--rule);
  padding: 12px;
  vertical-align: middle;
  text-align: left;
}

.svc thead th {
  background: var(--ink);
  color: var(--ground);
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.svc tbody tr:nth-child(even) { background: var(--grey); }

.svc .c-icon { width: 68px; }
.svc .c-price { width: 168px; white-space: nowrap; }

.svc-icon { display: block; width: 44px; height: 44px; object-fit: contain; }

.svc-name {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.svc-desc { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

.price {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1;
}

.price small {
  display: block;
  font-family: Inter, Arial, sans-serif;
  text-transform: none;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 3px;
}

.svc-foot { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ---------- reviews ---------- */

.reviews { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }

.review {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 16px;
  background: var(--ground);
}

.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; fill: var(--accent-2); stroke: var(--ink); stroke-width: 1.2; }
.stars svg.off { fill: var(--ground); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.review blockquote { margin: 10px 0 12px; font-size: 15px; }

.review cite {
  font-style: normal;
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.review .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

.rev-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: baseline;
  margin-bottom: 18px;
}

.stat-n { font-size: 30px; line-height: 1; }
.stat-l { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- two up blocks ---------- */

.duo { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--rule); }

.duo > div { padding: 18px 16px; border-top: 1px solid var(--rule); }
.duo > div:first-child { border-top: 0; }

.terms { list-style: none; margin: 12px 0 0; padding: 0; }

.terms li {
  border-top: 1px solid var(--rule-soft);
  padding: 9px 0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.terms li:first-child { border-top: 0; }

.terms span:last-child {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
}

.fine { font-size: 11.5px; color: var(--muted); margin-top: 14px; }

.badge {
  display: inline-block;
  border: 1px solid var(--rule);
  background: var(--accent);
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  margin-bottom: 10px;
}

/* ---------- shop photos ---------- */

.shots { display: grid; grid-template-columns: 1fr; gap: 16px; }

.shot { border: 1px solid var(--rule); background: var(--ground); }

.shot-img { aspect-ratio: 1 / 1; width: 100%; background: var(--grey); overflow: hidden; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; }

.shot-cap { border-top: 1px solid var(--rule); padding: 12px 14px; }
.shot-cap p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- location ---------- */

.loc { display: grid; grid-template-columns: 1fr; border: 1px solid var(--rule); }
.loc > div { padding: 18px 16px; border-top: 1px solid var(--rule); }
.loc > div:first-child { border-top: 0; }

.addr {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1.2;
  margin-top: 8px;
}

.big-phone {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  border-bottom: 4px solid var(--accent);
}

/* ---------- footer ---------- */

.foot { background: var(--ink); color: #d4d4d8; font-size: 13.5px; }
.foot .wrap { padding-top: 26px; padding-bottom: 26px; }

.foot-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  border-bottom: 1px solid #3f3f46;
  padding-bottom: 18px;
}

.foot h4 { color: var(--ground); font-size: 14px; letter-spacing: 0.1em; font-weight: 500; margin-bottom: 8px; }

.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 3px 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }

.credit { margin-top: 16px; display: grid; gap: 6px; }
.credit a { color: var(--accent); text-decoration: underline; }
.disclaimer { font-size: 12px; color: #a1a1aa; }

/* ---------- sticky action bar. this site only ---------- */

.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--ink);
  border-top: 4px solid var(--accent);
  color: var(--ground);
}

.actionbar .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.ab-text { display: none; }

.ab-text strong {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: -0.01em;
  display: block;
}

.ab-text span { font-size: 12.5px; color: #a1a1aa; }

.actionbar .btn { flex: 1 1 0; padding: 12px 10px; font-size: 14px; }

@media (min-width: 480px) {
  .actionbar .btn { font-size: 15px; }
}

/* ---------- responsive ---------- */

@media (min-width: 720px) {
  :root { --bar-h: 72px; }

  .wrap { padding: 0 24px; }

  .util-sep { display: inline; color: #52525b; }

  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { border-bottom: 0; border-right: 1px solid #3f3f46; }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid #3f3f46; }

  .veh { grid-template-columns: repeat(4, 1fr); }
  .veh .field:first-child { grid-column: auto; }

  .fields { grid-template-columns: repeat(2, 1fr); }
  .fields .span-2 { grid-column: 1 / -1; }

  .form-foot { grid-template-columns: 1fr auto; align-items: center; }

  .reviews { grid-template-columns: repeat(2, 1fr); }

  .shots { grid-template-columns: repeat(2, 1fr); }

  .duo { grid-template-columns: 1fr 1fr; }
  .duo > div { border-top: 0; border-left: 1px solid var(--rule); }
  .duo > div:first-child { border-left: 0; }

  .loc { grid-template-columns: 1.2fr 1fr; }
  .loc > div { border-top: 0; border-left: 1px solid var(--rule); }
  .loc > div:first-child { border-left: 0; }

  .foot-top { grid-template-columns: repeat(4, 1fr); }

  .ab-text { display: block; flex: 1 1 auto; }
  .actionbar .btn { flex: 0 0 auto; }
}

@media (min-width: 1000px) {
  .nav,
  .nav.open {
    display: flex;
    gap: 22px;
    align-items: center;
    width: auto;
    order: 0;
    border-top: 0;
    margin-top: 0;
  }

  .nav.open a {
    display: inline-block;
    padding: 6px 0;
    border-bottom: 3px solid transparent;
    border-left: 0;
    background: none;
  }

  .nav.open a:hover { border-bottom-color: var(--accent); background: none; }

  .nav-toggle { display: none; }
  .mast-call { display: inline-flex; }

  .hero .wrap { padding-top: 48px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact { border-bottom: 0 !important; border-right: 1px solid #3f3f46; }
  .fact:last-child { border-right: 0; }
  .fact:nth-child(2n) { border-right: 1px solid #3f3f46; }

  .hero-band { aspect-ratio: auto; height: 320px; }

  .book { grid-template-columns: 1.9fr 1fr; }
  .book-side { border-top: 0; border-left: 1px solid var(--rule); }
  .book-form { padding: 22px 22px 24px; }
  .book-side { padding: 22px; }

  .sec .wrap { padding-top: 44px; padding-bottom: 44px; }
}

@media (max-width: 719px) {
  /* services table becomes stacked bordered rows, still a list not a card grid */
  .svc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .svc,
  .svc tbody,
  .svc tr,
  .svc td { display: block; width: auto; }

  .svc tr {
    border: 1px solid var(--rule);
    margin-bottom: -1px;
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
  }

  .svc td { border: 0; padding: 10px 12px; }
  .svc .c-icon { grid-row: span 2; padding-right: 0; }
  .svc .c-price { grid-column: 2; padding-top: 0; white-space: normal; }
  .svc .price { font-size: 18px; }
  .svc .price small { display: inline; margin-left: 6px; }
  .svc-icon { width: 38px; height: 38px; }
}

@media print {
  .actionbar { display: none; }
}

/* Concept backlink. Deliberately foreign to this site's design system: it is a
   frame around the demonstration, not part of it, so it uses none of the type,
   colour or radius above. Fixed because the footer credit sits at the bottom of
   a long page, which in practice means a visitor has no route back at all. */
.ph-backlink {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 12.5px;
  line-height: 1;
  color: #d4d4d8;
  text-decoration: none;
}

.ph-backlink strong { color: #fff; font-weight: 600; }
.ph-backlink:hover { background: rgba(18, 18, 20, 0.98); color: #fff; }
.ph-backlink:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 480px) {
  .ph-backlink { right: 10px; bottom: 10px; padding: 8px 12px; font-size: 11.5px; }
}

/* Clears the sticky action bar, which owns the bottom edge on this site. */
.ph-backlink { bottom: calc(var(--bar-h) + 14px); }
