/* Pilot layout for InPost. Rules come from guides/dpd-tracking-not-updating-uk/index.html.
   Load guide-cta.css after this file for the shared CTA component. */

:root{
  --ink:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --soft:#f8fafc;
  --green:#059669;
  --green-dark:#047857;
  --amber:#92400e;
  --amber-bg:#fffbeb;
  --red:#b91c1c;
  --red-bg:#fef2f2;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
}

body{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

a{
  color:var(--green);
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

header{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,0.94);
  backdrop-filter:saturate(180%) blur(10px);
  -webkit-backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}

.header-inner{
  max-width:980px;
  margin:0 auto;
  padding:14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.logo-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
}

.logo{
  width:32px;
  height:32px;
  border-radius:8px;
  background:var(--green);
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:18px;
}

.header-nav{
  display:flex;
  align-items:center;
  gap:18px;
  margin-left:auto;
}

.header-nav a{
  color:#475569;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
}

.header-nav a:hover{
  color:var(--green-dark);
  text-decoration:none;
}

.pill{
  background:var(--green);
  color:#fff;
  padding:9px 14px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  white-space:nowrap;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(5,150,105,.18);
}

.pill:hover{
  background:var(--green-dark);
  text-decoration:none;
}

@media(max-width:700px){
  .header-inner{
    gap:10px;
    padding:13px 14px;
  }
  .header-nav{
    display:none;
  }
  .pill{
    padding:8px 11px;
    font-size:13px;
  }
}

main{
  max-width:760px;
  margin:0 auto;
  padding:32px 20px 64px;
}

h1{
  font-size:34px;
  line-height:1.16;
  margin:0 0 8px;
  letter-spacing:-0.025em;
  font-weight:800;
}

.byline{
  color:var(--muted);
  font-size:14px;
  margin-bottom:24px;
}

h2{
  font-size:22px;
  line-height:1.3;
  margin:34px 0 12px;
  letter-spacing:-0.01em;
  font-weight:800;
}

h3{
  line-height:1.35;
}

p{
  margin:0 0 16px;
}

ul,ol{
  margin:0 0 16px 20px;
  padding:0;
}

li{
  margin:6px 0;
}

strong{
  font-weight:700;
}

.key-point{
  background:var(--amber-bg);
  border:1px solid #fde68a;
  border-left:4px solid #f59e0b;
  padding:14px 16px;
  border-radius:8px;
  margin:20px 0;
  color:var(--amber);
}

.info-box{
  background:#f0fdf4;
  border:1px solid #bbf7d0;
  border-left:4px solid var(--green);
  padding:14px 16px;
  border-radius:8px;
  margin:20px 0;
}

.info-box ul{
  margin-bottom:0;
}

.cta{
  background:linear-gradient(135deg,#ecfdf5 0%,#f0fdf4 100%);
  border:1px solid #a7f3d0;
  border-radius:16px;
  padding:28px;
  text-align:center;
  margin:36px 0 12px;
}

.cta h3{
  margin:0 0 8px;
  font-size:22px;
}

.cta p{
  color:var(--muted);
  margin:0 0 18px;
}

.related{
  margin-top:28px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--soft);
  font-size:14px;
}

.related a{
  display:inline-block;
  margin:3px 0;
}

.faq{
  border-top:1px solid var(--line);
  margin-top:40px;
  padding-top:16px;
}

.faq-item{
  border-bottom:1px solid var(--line);
  padding:18px 0;
}

.faq-q{
  font-weight:800;
  margin:0 0 6px;
}

.faq-a{
  color:var(--muted);
  margin:0;
}

table{
  width:100%;
  border-collapse:collapse;
  margin:20px 0;
  font-size:15px;
}

th,td{
  padding:12px;
  text-align:left;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}

th{
  background:var(--soft);
  font-weight:800;
}

.site-footer{
  margin-top:42px;
  padding-top:24px;
  border-top:1px solid var(--line);
  color:var(--muted);
}

.footer-intro{
  border:1px solid var(--line);
  background:linear-gradient(180deg,#ffffff 0%,var(--soft) 100%);
  border-radius:16px;
  padding:16px;
  margin-bottom:14px;
  text-align:left;
}

.footer-intro strong{
  display:block;
  color:var(--ink);
  font-size:15px;
  margin-bottom:5px;
  letter-spacing:-.01em;
}

.footer-intro p{
  font-size:13px;
  color:#475569;
  line-height:1.55;
  margin:0;
}

.footer-nav{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:14px;
  text-align:left;
}

.footer-card{
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  padding:14px;
  box-shadow:0 1px 2px rgba(15,23,42,.03);
}

.footer-card h3{
  font-size:13px;
  color:var(--ink);
  font-weight:800;
  margin:0 0 9px;
  letter-spacing:-.01em;
}

.footer-card a{
  display:block;
  color:#475569;
  text-decoration:none;
  font-size:13px;
  line-height:1.35;
  padding:5px 0;
}

.footer-card a:hover{
  color:var(--green-dark);
  text-decoration:underline;
}

.footer-card a.priority{
  color:#0f172a;
  font-weight:800;
}

.footer-trust{
  margin-top:14px;
  border:1px solid #d1fae5;
  background:#ecfdf5;
  border-radius:14px;
  padding:13px 14px;
  text-align:left;
  font-size:12px;
  color:#065f46;
  line-height:1.55;
}

.footer-trust strong{
  color:#064e3b;
}

.footer-trust a{
  color:#064e3b;
  text-decoration:underline;
  font-weight:800;
}

.footer-bottom{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--line);
  font-size:12px;
  color:var(--muted);
  text-align:center;
  line-height:1.65;
}

.footer-bottom a{
  color:var(--muted);
  text-decoration:underline;
}

@media(max-width:900px){
  .footer-nav{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:640px){
  h1{
    font-size:30px;
  }
  main{
    padding-left:16px;
    padding-right:16px;
  }
  .footer-nav{
    grid-template-columns:1fr;
  }
  .footer-intro,.footer-card,.footer-trust{
    text-align:left;
  }
}

/* Keep in-page actions below the sticky header and retain accessible table captions. */
html{scroll-padding-top:84px}
caption{text-align:left;font-weight:600;margin-bottom:6px}
tbody th{background:transparent}
