/* legal/tomecore/layout.css
 * Layout components for Tomecore. Accent: prussian blue #003153.
 * All classes prefixed .tomec* — brand-unique DOM fingerprint. */

/* ---------- section scaffolding ---------- */

.tomecBand { padding: 4.25rem 2.5rem; }
.tomecBand--tint  { background: #eff7fc; }
.tomecBand--plain { background: #ffffff; }
.tomecBand--dark  { background: #002740; }

.tomecWrap {
  max-width: 1060px;
  margin: 0 auto;
}

.tomecKicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0b5a8a;
  margin: 0 0 0.85rem;
}

.tomecKicker::after {
  content: '';
  display: block;
  width: 2.2rem;
  height: 2px;
  background: #003153;
  margin-top: 0.55rem;
}

.tomecHead {
  font-family: var(--heading-font);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.22;
  color: #0d1b26;
  margin: 0 0 0.7rem;
  letter-spacing: -0.01em;
}

.tomecSub {
  font-size: 1rem;
  color: #55707f;
  margin: 0 0 2.4rem;
  max-width: 620px;
  line-height: 1.72;
}

.tomecBand--dark .tomecKicker { color: #7fb4d8; }
.tomecBand--dark .tomecKicker::after { background: #3d8fc4; }
.tomecBand--dark .tomecHead { color: #ffffff; }
.tomecBand--dark .tomecSub { color: #a8c6da; }

/* ---------- hero (dark, editorial) ---------- */

.tomecHero {
  background:
    radial-gradient(900px 400px at 82% 0%, #00395f 0%, rgba(0,57,95,0) 70%),
    #001624;
  color: #ffffff;
  padding: 4rem 2.5rem 4.5rem;
  overflow: hidden;
}

.tomecHeroInner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.tomecEyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7fb4d8;
  border: 1px solid rgba(127, 180, 216, 0.35);
  border-radius: 3px;
  padding: 0.4rem 0.8rem;
  margin: 0 0 1.35rem;
}

.tomecHeroTitle {
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 1.15rem;
}

.tomecHeroTitle em {
  font-style: normal;
  color: #7fb4d8;
}

.tomecHeroLede {
  font-size: 1.07rem;
  line-height: 1.75;
  color: #a8c6da;
  margin: 0 0 1.5rem;
  max-width: 33rem;
}

.tomecHeroMeta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0 0 1.9rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tomecHeroMeta strong {
  font-family: var(--heading-font);
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.tomecHeroMeta span {
  font-size: 0.86rem;
  color: #8fb2c9;
}

.tomecActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tomecBtn {
  display: inline-block;
  background: #ffffff;
  color: #003153;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.tomecBtn:hover { background: #d8eaf6; transform: translateY(-1px); }

.tomecBtnGhost {
  display: inline-block;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: background 0.15s ease;
}

.tomecBtnGhost:hover { background: rgba(255, 255, 255, 0.09); }

/* hero visual — a shelf of book spines, drawn in CSS */

.tomecSpines {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  height: 310px;
  padding-bottom: 0.9rem;
  border-bottom: 3px solid rgba(127, 180, 216, 0.35);
}

.tomecSpine {
  flex: 1;
  max-width: 54px;
  border-radius: 5px 5px 2px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 0.9rem 0;
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.16);
}

.tomecSpine:nth-child(1) { height: 78%;  background: #003153; }
.tomecSpine:nth-child(2) { height: 94%;  background: #0b5a8a; }
.tomecSpine:nth-child(3) { height: 66%;  background: #3d8fc4; color: #00243f; }
.tomecSpine:nth-child(4) { height: 88%;  background: #00243f; }
.tomecSpine:nth-child(5) { height: 72%;  background: #7fb4d8; color: #00243f; }

/* ---------- format split: stream vs download ---------- */

.tomecFormats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

.tomecFormat {
  background: #ffffff;
  border: 1px solid rgba(0, 49, 83, 0.14);
  border-top: 4px solid #003153;
  border-radius: 4px;
  padding: 2rem 1.9rem;
}

.tomecFormat--alt { border-top-color: #3d8fc4; }

.tomecFormatIcon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.7rem;
}

.tomecFormatTag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0b5a8a;
  background: #d8eaf6;
  border-radius: 3px;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.8rem;
}

.tomecFormat h3 {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0d1b26;
  margin: 0 0 0.6rem;
}

.tomecFormat > p {
  font-size: 0.94rem;
  color: #55707f;
  line-height: 1.72;
  margin: 0 0 1.2rem;
}

.tomecFormatList {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #405a68;
}

.tomecFormatList li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.tomecFormatList li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 2px;
  background: #003153;
}

/* ---------- index list (table-of-contents style steps) ---------- */

.tomecIndex {
  border-top: 1px solid rgba(0, 49, 83, 0.16);
}

.tomecIndexRow {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 49, 83, 0.12);
  align-items: start;
}

.tomecIndexNum {
  font-family: var(--heading-font);
  font-size: 1.45rem;
  font-weight: 800;
  color: #9fc9e4;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.tomecIndexBody h3 {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d1b26;
  margin: 0 0 0.3rem;
}

.tomecIndexBody p {
  font-size: 0.93rem;
  color: #55707f;
  margin: 0;
  line-height: 1.7;
  max-width: 46rem;
}

/* ---------- pricing "receipt" block ---------- */

.tomecTicket {
  max-width: 440px;
  background: #ffffff;
  border: 1px solid rgba(0, 49, 83, 0.18);
  border-radius: 4px;
  overflow: hidden;
}

.tomecTicketTop {
  background: #003153;
  color: #ffffff;
  padding: 1.6rem 1.8rem;
}

.tomecTicketTop h3 {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #ffffff;
}

.tomecTicketPrice {
  font-family: var(--heading-font);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.tomecTicketPer {
  font-size: 0.85rem;
  color: #9fc9e4;
  margin-top: 0.3rem;
}

.tomecTicketRow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.8rem;
  border-bottom: 1px dashed rgba(0, 49, 83, 0.16);
  font-size: 0.89rem;
}

.tomecTicketRow span:first-child {
  color: #6b8494;
  flex-shrink: 0;
}

.tomecTicketRow span:last-child {
  color: #0d1b26;
  font-weight: 600;
  text-align: right;
}

.tomecTicketNote {
  padding: 1.1rem 1.8rem;
  font-size: 0.83rem;
  color: #55707f;
  line-height: 1.65;
  background: #f7fbfd;
}

/* ---------- inner page hero ---------- */

.tomecPageHero {
  background: #001624;
  color: #ffffff;
  padding: 3.25rem 2.5rem;
  border-bottom: 3px solid #003153;
}

.tomecPageHero h1 {
  font-family: var(--heading-font);
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 auto 0.55rem;
  max-width: 1060px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.tomecPageHero p {
  font-size: 0.98rem;
  color: #a8c6da;
  margin: 0 auto;
  max-width: 1060px;
  line-height: 1.7;
}

/* ---------- legal / long-form ---------- */

main.tomecLegal {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2.5rem 4rem;
}

main.tomecLegal h1 { text-align: left; font-size: 1.9rem; }

main.tomecLegal h2 {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 700;
  color: #0d1b26;
  margin: 2.4rem 0 0.7rem;
  padding-left: 0.85rem;
  border-left: 4px solid #003153;
}

main.tomecLegal p,
main.tomecLegal li { color: #3f5763; line-height: 1.78; }

main.tomecLegal a { color: #0b5a8a; }

.tomecNote {
  background: #eff7fc;
  border: 1px solid rgba(0, 49, 83, 0.15);
  border-radius: 4px;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  color: #405a68;
}

.tomecTableWrap { overflow-x: auto; margin: 1.5rem 0; }

.tomecTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.89rem;
  min-width: 440px;
}

.tomecTable th {
  background: #003153;
  color: #ffffff;
  text-align: left;
  font-weight: 600;
  padding: 0.65rem 1rem;
}

.tomecTable td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(0, 49, 83, 0.12);
  color: #3f5763;
}

.tomecTable tr:nth-child(even) td { background: #f7fbfd; }

/* ---------- about split + values ---------- */

.tomecSplit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

.tomecSplit h2 {
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0d1b26;
  margin: 0 0 0.85rem;
}

.tomecSplit p { color: #45606e; line-height: 1.78; margin: 0 0 1rem; }
.tomecSplit a { color: #0b5a8a; }

.tomecValue {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.3rem;
}

.tomecValueIcon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  background: #003153;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.tomecValue h4 {
  font-size: 0.97rem;
  font-weight: 700;
  color: #0d1b26;
  margin: 0 0 0.25rem;
}

.tomecValue p {
  font-size: 0.9rem;
  color: #55707f;
  margin: 0;
  line-height: 1.68;
}

/* ---------- contact ---------- */

.tomecContactGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.tomecContactCard {
  background: #ffffff;
  border: 1px solid rgba(0, 49, 83, 0.15);
  border-radius: 4px;
  padding: 1.9rem;
}

.tomecContactCard h2 {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d1b26;
  margin: 0 0 1rem;
}

.tomecContactCard p {
  font-size: 0.92rem;
  color: #45606e;
  margin: 0 0 0.6rem;
  line-height: 1.72;
}

.tomecContactCard a { color: #0b5a8a; }

.tomecMailBtn {
  display: inline-block;
  margin-top: 0.6rem;
  background: #003153;
  color: #ffffff !important;
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.tomecMailBtn:hover { background: #0b5a8a; }

/* ---------- sitemap ---------- */

.tomecMapGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.tomecMapCard {
  background: #ffffff;
  border: 1px solid rgba(0, 49, 83, 0.15);
  border-radius: 4px;
  padding: 1.6rem;
}

.tomecMapCard h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0b5a8a;
  margin: 0 0 1rem;
  border: 0;
  padding: 0;
}

.tomecMapCard ul { list-style: none; margin: 0; padding: 0; }
.tomecMapCard li { margin-bottom: 0.6rem; }

.tomecMapCard li a {
  color: #0d1b26;
  text-decoration: none;
  font-size: 0.91rem;
}

.tomecMapCard li a::before {
  content: '\2014';
  color: #3d8fc4;
  margin-right: 0.5rem;
}

.tomecMapCard li a:hover { color: #0b5a8a; }

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

.tomecFooter {
  background: #001624;
  color: #8fb2c9;
  padding: 3.25rem 2.5rem 1.5rem;
}

.tomecFooterGrid {
  display: grid;
  grid-template-columns: 2.1fr 1fr 1fr 1.35fr;
  gap: 2.5rem;
  max-width: 1060px;
  margin: 0 auto 2.5rem;
}

.tomecFooterLogo {
  display: block;
  width: 50px;
  height: 50px;
  background-image: var(--logo-url);
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 0.8rem;
}

.tomecFooterTitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.tomecTagline {
  font-size: 0.82rem;
  color: #7f9db0;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.tomecDisclosure {
  font-size: 0.76rem;
  color: #6d8b9e;
  line-height: 1.68;
  border-left: 3px solid #0b5a8a;
  padding-left: 0.8rem;
}

.tomecFooterCol h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 1rem;
}

.tomecFooterCol ul { list-style: none; margin: 0; padding: 0; }
.tomecFooterCol ul li { margin-bottom: 0.55rem; }

.tomecFooterCol ul li a {
  color: #7f9db0;
  text-decoration: none;
  font-size: 0.87rem;
  transition: color 0.15s ease;
}

.tomecFooterCol ul li a:hover { color: #7fb4d8; }

.tomecFooterCol p {
  font-size: 0.87rem;
  color: #7f9db0;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.tomecFooterCol p a { color: #7fb4d8; text-decoration: none; }
.tomecFooterCol p a:hover { text-decoration: underline; }

.tomecFooterBottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  max-width: 1060px;
  margin: 0 auto;
}

.tomecFooterBottom p { font-size: 0.77rem; color: #5f7d90; margin: 0 0 0.3rem; }
.tomecFooterBottom a { color: #7f9db0; text-decoration: none; }
.tomecFooterBottom a:hover { color: #7fb4d8; }

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

@media (max-width: 900px) {
  .tomecHeroInner { grid-template-columns: 1fr; gap: 2.75rem; }
  .tomecSpines { height: 240px; }
  .tomecSplit { grid-template-columns: 1fr; gap: 1.75rem; }
  .tomecFooterGrid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 580px) {
  .tomecBand { padding: 2.75rem 1.25rem; }
  .tomecHero { padding: 2.75rem 1.25rem 3rem; }
  .tomecHeroTitle { font-size: 2.05rem; }
  .tomecHeroLede { font-size: 1rem; }
  .tomecHead { font-size: 1.5rem; }
  .tomecPageHero { padding: 2.25rem 1.25rem; }
  .tomecPageHero h1 { font-size: 1.6rem; }
  main.tomecLegal { padding: 2rem 1.25rem 3rem; }
  .tomecFooter { padding: 2.5rem 1.25rem 1.25rem; }
  .tomecFooterGrid { grid-template-columns: 1fr; gap: 1.75rem; }
  .tomecSpines { height: 200px; gap: 0.35rem; }
  .tomecSpine { font-size: 0.62rem; }
  .tomecIndexRow { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .tomecTicketRow { padding: 0.8rem 1.2rem; }
  .tomecTicketTop { padding: 1.4rem 1.2rem; }
  .tomecTicketNote { padding: 1rem 1.2rem; }
}
