/* Lekha & Co.: the hero and its year strip, numbered parts, services, partners, insights, offices,
   dates, the contact page and the advocates' disclaimer gate. Phone first; wide.css widens it. */

/* ---- Hero ---- */

.hero {
  padding: 22px 0 28px;
  border-bottom: 1px solid var(--rule-strong);
}

.hero-grid {
  display: grid;
  gap: 22px;
}

.hero-facts {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.hero h1 {
  margin-bottom: 14px;
}

.hero-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.45;
  max-width: 40ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.actions-big .btn-ink {
  min-height: 52px;
  font-size: 1.0625rem;
  padding: 0.7em 1.3em;
}

/* The next date, read out */

.next {
  border-top: 3px solid var(--tick);
  background: var(--white);
  padding: 14px 16px 16px;
}

.next-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tick);
  margin-bottom: 4px;
}

.next-date {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0 0 6px;
  line-height: 0.9;
}

.next-day {
  font-family: var(--serif);
  font-size: 4.4rem;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: -0.03em;
}

.next-month {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  padding-bottom: 6px;
}

.next-weekday {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink-2);
  margin-top: 4px;
}

.next-what {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 4px;
}

.next-when {
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin-bottom: 0;
}

.next-when strong {
  color: var(--ink);
}

.next-rest {
  list-style: none;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.next-rest li {
  padding: 2px 0;
}

.next-rest .num {
  display: inline-block;
  min-width: 6.5em;
  font-weight: 600;
  color: var(--teal);
}

/* The year strip */

.hero-year-title {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.hero-year-text {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.year {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--rule);
}

.month {
  border-right: 1px solid var(--rule);
  border-top: 1px solid var(--rule-strong);
  padding: 6px 7px 10px;
  min-width: 0;
}

.month-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 6px;
}

.month-year {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.month-past .month-name {
  color: var(--ink-2);
  font-weight: 400;
}

.month-now {
  background: var(--white);
  border-top: 3px solid var(--tick);
}

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

.d {
  display: grid;
  grid-template-columns: 1.6em 1fr;
  gap: 4px;
  font-size: 0.8125rem;
  line-height: 1.25;
  padding: 2px 0;
}

.d-day {
  font-weight: 700;
  color: var(--teal);
  text-align: right;
}

.d-what {
  min-width: 0;
  overflow-wrap: anywhere;
}

.d-done .d-day,
.d-done .d-what {
  color: var(--ink-2);
}

.d-done .d-what {
  text-decoration: line-through;
  text-decoration-color: rgb(75 86 84 / 0.55);
}

.d-soon .d-day {
  color: var(--tick);
}

.d-soon .d-what {
  font-weight: 600;
}

.today-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tick);
}

.today-row::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--tick);
}

.month-none {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.year-more {
  grid-column: 1 / -1;
  border-right: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 8px 10px;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* On a phone, months gone by fold to their names. */
@media (max-width: 719px) {
  .year .month-past .month-dates {
    display: none;
  }
  .year .month-past {
    padding-bottom: 6px;
  }
}

/* ---- Numbered parts ---- */

.part {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}

.part-tint {
  background: var(--tint);
}

.part-grid {
  display: grid;
  gap: 6px;
}

.part-n {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.part-n .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--teal);
}

.part-n time {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.part-body {
  min-width: 0;
}

.part-body > h2 {
  margin-bottom: 10px;
}

.lead {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
  max-width: 62ch;
}

.page-head {
  padding: 32px 0 30px;
  border-bottom: 1px solid var(--rule-strong);
}

.page-head h1 {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.4rem);
}

.page-head .initials {
  width: 72px;
  height: 72px;
  font-size: 1.6rem;
}

.more {
  margin: 22px 0 0;
  font-weight: 600;
}

.fine {
  font-size: 0.9375rem;
  color: var(--ink-2);
  max-width: 70ch;
}

.h-small {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 22px 0 10px;
}

.bullets {
  margin: 0;
  padding-left: 1.2em;
  max-width: 70ch;
}

.bullets li {
  margin-bottom: 6px;
}

.bullets.numbered {
  list-style: decimal;
}

.bullets.ticks {
  list-style: none;
  padding-left: 0;
}

.bullets.ticks li {
  padding-left: 1.6em;
  position: relative;
}

.bullets.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.35em;
  width: 0.55em;
  height: 0.9em;
  border: solid var(--teal);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

.bullets.notes {
  margin-top: 12px;
  color: var(--ink-2);
}

.for-whom {
  margin-top: 8px;
}

.steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 70ch;
}

.steps li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 12px;
}

.step-n {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--teal);
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.empty {
  color: var(--ink-2);
}

/* ---- Services: hanging section numbers ---- */

.svc-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}

.svc {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 4px 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.svc-n {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--teal);
  padding-top: 2px;
}

.svc-title {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.svc-title a {
  color: var(--ink);
  text-decoration: none;
}

.svc-title a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.svc-line {
  margin-bottom: 6px;
  max-width: 60ch;
}

.svc-work {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.svc-work li::before {
  content: "– ";
}

.svc-leads {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 4px 0 0;
  font-size: 0.9375rem;
}

.svc-leads a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}

.svc-leads a:hover .svc-lead-name {
  text-decoration: underline;
}

.svc-leads .initials {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

/* ---- People ---- */

.initials {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border: 1.5px solid var(--teal);
  background: var(--white);
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.roll {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}

.person {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.person-name {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.person-name a {
  color: var(--ink);
  text-decoration: none;
}

.person-name a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.person-role {
  margin-bottom: 4px;
}

.person-quals {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.person-reg {
  display: inline-block;
  margin-bottom: 6px;
  padding: 1px 6px;
  background: var(--teal-pale);
  font-size: 0.875rem;
  font-weight: 600;
}

.person-practice,
.person-office {
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.person-office {
  color: var(--ink-2);
}

.kv-wide > div {
  grid-template-columns: minmax(9rem, 34%) 1fr;
}

.kv-wide dt {
  font-size: 0.9375rem;
}

.declaration {
  margin-top: 14px;
  font-style: italic;
}

/* ---- Industries ---- */

.ind-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--rule-strong);
}

.ind {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.ind-name {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.ind-line {
  margin-bottom: 6px;
}

.ind-svcs {
  font-size: 0.9375rem;
  margin: 0;
}

.ind-matters {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

/* ---- Insights: a dated register ---- */

.register {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}

.entry {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.entry-date {
  margin: 0;
  font-weight: 600;
  color: var(--teal);
  font-size: 0.9375rem;
}

.entry-kind {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.entry-title {
  font-size: 1.3rem;
  margin: 2px 0 4px;
}

.entry-title a {
  color: var(--ink);
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.entry-summary {
  margin-bottom: 4px;
  max-width: 66ch;
}

.entry-by {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.byline {
  font-size: 0.9375rem;
}

.byline-checked {
  color: var(--ink-2);
}

.prose {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 66ch;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 1.4em;
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
}

/* ---- Offices ---- */

.offices {
  display: grid;
  gap: 28px;
}

.office {
  border-top: 1px solid var(--rule-strong);
  padding-top: 12px;
}

.office-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 1.3rem;
}

.office-tag {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.office-addr {
  margin-bottom: 2px;
}

.office-landmark,
.office-note {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.office-hours {
  margin: 8px 0;
  max-width: 28rem;
}

.office-act {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-weight: 600;
}

.office-act a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

/* ---- The year's dates, as a table ---- */

.dates {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.dates th,
.dates td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--rule);
}

.dates thead th {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule-strong);
}

.dates td:first-child {
  white-space: nowrap;
  font-weight: 600;
  color: var(--teal);
  width: 8.5em;
}

.dates-wd,
.dates-in {
  display: block;
  font-weight: 400;
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.dates-in {
  color: var(--tick);
  font-weight: 700;
}

.dates-note {
  display: block;
  color: var(--ink-2);
}

.dates tr.d-done td {
  color: var(--ink-2);
}

.dates tr.d-done strong {
  font-weight: 400;
  text-decoration: line-through;
}

.col-who {
  display: none;
}

/* ---- Write to us ---- */

.consult-grid {
  display: grid;
  gap: 32px;
}

.consult-form {
  min-width: 0;
  max-width: 40rem;
}

.confidential {
  margin-top: 16px;
}

.subject-list {
  margin: 0;
  border-top: 1px solid var(--rule-strong);
}

.subject-list > div {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}

.subject-list dt {
  font-weight: 700;
  color: var(--teal);
}

.subject-list dd {
  margin: 0;
}

/* ---- The advocates' disclaimer gate ---- */

.gate {
  padding: 32px 0 56px;
  min-height: calc(100vh - var(--header-h));
}

.gate-sheet {
  max-width: 46rem;
}

.gate-sheet p {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.55;
}

.gate .eyebrow {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tick);
}

.gate-act {
  margin: 26px 0 18px;
  padding: 18px 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
}

.gate-sheet .gate-leave,
.gate-sheet .gate-more {
  font-family: var(--sans);
  font-size: 0.9375rem;
  margin: 12px 0 0;
}

.demo-switch a {
  font-weight: 600;
}
