/* Textbook Central — static site styles. Tokens from the CentralEd / E-Rate Central brand system. */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap');

:root {
  --navy: #011E40;  --navy-700: #0B2C54;
  --marine: #19638B; --marine-deep: #124D6E; --marine-tint: #ECF1F5; --marine-line: #D5E1EA;
  --brass: #B08442;
  --white: #FFFFFF; --paper: #F4F6F7; --mist: #EAEDEF; --line: #DEE2E5; --silver: #C4C8CC;
  --stone: #63696E; --graphite: #34383B; --ink: #1F2325;
  --on-navy-secondary: #C4CFDC;

  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm: 6px; --r-md: 9px; --r-lg: 12px;
  --sh-1: 0 1px 2px rgba(1,30,64,.04);
  --sh-2: 0 1px 2px rgba(1,30,64,.04), 0 14px 34px -18px rgba(1,30,64,.22);
  --focus: 0 0 0 3px rgba(25,99,139,.35);
  --ease: cubic-bezier(.2,.7,.3,1);
  --dur: 200ms;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--graphite);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--marine-deep); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--navy-700); text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 3px; }
::selection { background: var(--navy); color: #fff; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 44px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---- Masthead (navy frame: logo and nav only) ---- */
.masthead { background: var(--navy); }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; min-height: 88px; }
.logo img { display: block; height: 56px; width: auto; }
.topnav, .topnav ul { list-style: none; margin: 0; padding: 0; }
.topnav { display: flex; gap: 8px; flex-wrap: wrap; }
.topnav > li { position: relative; }
.topnav a {
  display: block; padding: 10px 14px; color: #fff; font-weight: 500;
  border-bottom: 2px solid transparent; text-decoration: none;
}
.topnav a:hover { color: #fff; border-bottom-color: var(--silver); }
.topnav a[aria-current="page"] { border-bottom-color: var(--brass); }
.topnav .sub {
  display: none; position: absolute; left: 0; top: 100%; min-width: 240px; z-index: 5;
  background: var(--navy-700); border-radius: 0 0 var(--r-md) var(--r-md); padding: 6px 0;
  box-shadow: 0 24px 60px -28px rgba(1,30,64,.55);
}
.topnav .has-sub:hover .sub, .topnav .has-sub:focus-within .sub { display: block; }
.topnav .sub a { border-bottom: 0; padding: 10px 16px; }
.topnav .sub a:hover { background: var(--navy); }

/* ---- Page layout ---- */
.page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
.side {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); padding: 12px 0;
}
.sidenav, .sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav a {
  display: block; padding: 8px 20px; color: var(--ink); font-weight: 500; text-decoration: none;
  border-left: 3px solid transparent;
}
.sidenav a:hover { background: var(--paper); color: var(--navy-700); }
.sidenav a[aria-current="page"] { border-left-color: var(--brass); color: var(--navy); font-weight: 600; background: var(--paper); }
.sidenav ul a { padding-left: 36px; font-weight: 400; font-size: 15px; }
.sidenav ul ul a { padding-left: 52px; }

.main { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 32px 44px 44px; min-width: 0; }
.breadcrumbs { margin: 0 0 24px; font-size: 14px; color: var(--stone); max-width: none; }
.breadcrumbs span { color: var(--ink); font-weight: 500; }

/* ---- Article typography ---- */
h1, h2 { font-family: var(--font-display); font-weight: 600; color: var(--navy); letter-spacing: -.015em; }
h1 { font-size: 38px; line-height: 1.1; margin: 0 0 24px; }
h2 { font-size: 28px; line-height: 1.15; margin: 40px 0 16px; }
h3, h4 { font-family: var(--font-body); font-weight: 600; color: var(--ink); }
h3 { font-size: 22px; line-height: 1.3; }
article p, article li { max-width: var(--measure); }
article p { margin: 0 0 16px; text-wrap: pretty; }
article ul, article ol { padding-left: 24px; margin: 0 0 16px; }
article li { margin-bottom: 8px; }
article li > p { margin: 0; }
article ul ul { margin: 8px 0 0; }
article hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0 16px; width: 50%; margin-left: 0; }
article strong { font-weight: 600; }
.smallText { font-size: 14px; color: var(--stone); }
.readmore { font-weight: 600; }

/* Home: two-column benefits table */
.DistrictBenefitsTable { border-collapse: separate; border-spacing: 32px 0; margin: 0 -32px 16px; }
.DistrictBenefitsTable td { vertical-align: top; width: 50%; }
.DistrictBenefitsTable ul { padding-left: 20px; }

/* Member lists */
.PrivateSchoolList, .DistrictList { columns: 2; column-gap: 40px; list-style: none; padding-left: 0 !important; }
.PrivateSchoolList li, .DistrictList li { break-inside: avoid; max-width: none; margin-bottom: 4px; }
.DistrictList.MemberListLeftCol, .DistrictList.MemberListRightCol { columns: 1; display: block; }
.DistrictList.MemberListLeftCol { float: left; width: calc(50% - 20px); margin-right: 40px; }
.DistrictList.MemberListRightCol { float: left; width: calc(50% - 20px); }
.DistrictList.MemberListRightCol + * { clear: both; }
article::after { content: ""; display: block; clear: both; }

/* MPO list, e-books table */
.MPOList li { margin-bottom: 12px; }
#tbcTable { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
#tbcTable th { text-align: left; background: var(--mist); color: var(--ink); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
#tbcTable td { padding: 8px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
#tbcTable td.noLine { }
#tbcTable .smallText { font-size: 13px; }
li.nested { margin-bottom: 4px; }

/* Resources */
.link-list { list-style: none; padding-left: 0 !important; }
.link-list li { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.link-list p { margin: 4px 0 0; color: var(--stone); }

/* Publishers */
#TextbookPublishers .SubHead3 { font-weight: 600; position: sticky; top: 0; background: var(--white); padding: 8px 0; margin: 0 0 8px; border-bottom: 1px solid var(--line); max-width: none; }
#TextbookPublishers .SubHead2 {
  font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--navy);
  margin: 40px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); max-width: none;
}
#TextbookPublishers .TextIndent { margin: 0 0 20px; padding-left: 16px; border-left: 2px solid var(--line); }
#TextbookPublishers .TextBold { font-weight: 600; color: var(--ink); }

.center { text-align: center; padding: 32px 0; }
.center h3 { margin: 0 0 16px; }

/* Site map */
.sitemap, .sitemap ul { list-style: none; padding-left: 0; }
.sitemap ul { padding-left: 24px; margin: 4px 0 0; }
.sitemap li { margin-bottom: 4px; }

/* ISBN tool */
.isbn-tool { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: start; max-width: 640px; }
.isbn-col { display: flex; flex-direction: column; gap: 8px; }
.isbn-mid { display: flex; flex-direction: column; gap: 12px; align-self: center; }
.isbn-clear { grid-column: 1 / -1; }
.textareaheading { font-weight: 600; color: var(--ink); }
textarea {
  width: 100%; font: 400 15px/1.5 var(--font-body); color: var(--ink);
  border: 1px solid var(--silver); border-radius: var(--r-sm); padding: 10px 12px; resize: vertical;
}
textarea:focus { outline: none; box-shadow: var(--focus); border-color: var(--marine); }
.btn {
  font: 600 15px/1 var(--font-body); padding: 12px 18px; border-radius: var(--r-md); cursor: pointer;
  border: 1px solid var(--navy); background: var(--navy); color: #fff;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { background: var(--navy-700); }
.btn-quiet { background: transparent; color: var(--navy); }
.btn-quiet:hover { background: var(--navy); color: #fff; }

/* ---- Footer (navy frame: chrome only) ---- */
.foot { background: var(--navy); color: var(--on-navy-secondary); font-size: 14px; }
.foot-in { padding-top: 24px; padding-bottom: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; max-width: none; }
.foot a { color: #fff; text-decoration: underline; }

/* ---- Small screens ---- */
@media (max-width: 860px) {
  .wrap { padding: 0 24px; }
  .page { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .main { padding: 24px; }
  h1 { font-size: 32px; }
  .PrivateSchoolList { columns: 1; }
  .DistrictList.MemberListLeftCol, .DistrictList.MemberListRightCol { float: none; width: auto; margin-right: 0; }
  .DistrictBenefitsTable, .DistrictBenefitsTable tbody, .DistrictBenefitsTable tr, .DistrictBenefitsTable td { display: block; width: 100%; margin: 0; }
  .isbn-tool { grid-template-columns: 1fr; }
  .isbn-mid { flex-direction: row; }
  #tbcTable { display: block; overflow-x: auto; }
}
