/* Tech Drive Solution policies (techdrive.lk/policies). Colours and type from the website: primary #1D6096, secondary #32CBD8, Inter, Rowdies. */
:root {
  --blue: #1d6096; --blue-2: #154b77; --teal: #32cbd8; --ink: #14212e; --ink-2: #3c4a58; --muted: #6a7887;
  --line: #e2e8ef; --tint: #f3f8fc; --card: #ffffff; --navy: #0d2639;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.7 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-2); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* header */
.bar { height: 4px; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.top .logo { display: block; line-height: 0; }
.top .logo img { height: 52px; width: auto; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.top nav a:hover { background: var(--tint); color: var(--blue); }
.top nav a[aria-current="page"] { color: var(--blue); background: var(--tint); }

/* title band */
.hero { background: linear-gradient(180deg, var(--tint), #fff); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-block: 48px 40px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; }
h1 { font-family: "Rowdies", "Inter", system-ui, sans-serif; font-weight: 300; font-size: clamp(32px, 5vw, 46px); line-height: 1.15; color: var(--blue); margin: 0 0 14px; text-wrap: balance; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 64ch; margin: 0; }
.meta { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.meta b { color: var(--ink-2); font-weight: 600; }

/* body */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 44px 64px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px; }
.toc p { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc li a:hover { color: var(--blue); border-left-color: var(--teal); }
article { max-width: 70ch; min-width: 0; }
article section { padding-top: 6px; margin-bottom: 34px; scroll-margin-top: 20px; }
h2 { font-size: 21px; font-weight: 700; line-height: 1.3; margin: 0 0 12px; color: var(--ink); text-wrap: balance; display: flex; gap: 12px; align-items: baseline; }
h2 .n { font-size: 13px; font-weight: 600; color: var(--blue); background: var(--tint); border: 1px solid #d6e6f3; border-radius: 6px; padding: 1px 7px; flex: none; font-variant-numeric: tabular-nums; }
h3 { font-size: 16px; font-weight: 600; margin: 20px 0 6px; color: var(--ink); }
p { margin: 0 0 14px; color: var(--ink-2); }
ul, ol.steps { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
li { margin-bottom: 6px; }
li::marker { color: var(--blue); }
strong { color: var(--ink); font-weight: 600; }
.note { background: var(--tint); border: 1px solid #d6e6f3; border-left: 4px solid var(--teal); border-radius: 10px; padding: 14px 18px; margin: 0 0 18px; }
.note p:last-child { margin-bottom: 0; }

/* step list on the deletion page */
ol.steps { list-style: none; padding: 0; counter-reset: s; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 48px; margin-bottom: 16px; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(180deg, var(--teal), var(--blue)); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }

/* contact card */
.contact { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: var(--card); box-shadow: 0 1px 2px rgba(13, 38, 57, .04), 0 8px 24px -16px rgba(13, 38, 57, .25); }
.contact h3 { margin-top: 0; }
.contact dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 15px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

/* policy index */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-block: 44px 64px; }
.card { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; text-decoration: none; color: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #b9d3e8; box-shadow: 0 10px 28px -18px rgba(13, 38, 57, .35); color: inherit; }
.card b { display: block; font-size: 18px; color: var(--blue); margin-bottom: 6px; }
.card span { color: var(--ink-2); font-size: 15px; }

/* footer */
footer { background: var(--navy); color: #c7d3de; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-block: 28px; }
footer a { color: #fff; }
footer b { color: #fff; font-weight: 600; }

@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 28px 48px; }
  .toc { position: static; background: var(--tint); border-radius: 12px; padding: 16px 18px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-block: 34px 28px; }
  .lead { font-size: 16.5px; }
}
@media (max-width: 480px) {
  .top .logo img { height: 42px; }
  .top nav a { padding: 6px 9px; font-size: 13.5px; }
  .contact dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact dd { margin-bottom: 8px; }
}
@media print {
  .top nav, .toc, .bar { display: none; }
  .doc { display: block; }
  footer { background: none; color: #333; }
  footer a, footer b { color: #000; }
}
