/* About page in the product page v2 style (books-about-page.php). Mobile first; two columns at the top from 1024px.
   Same colour roles as the product page: black text, grey labels, rose (#0f9d8f, the navigation pink) only for the one primary
   button. Type sizes: 12/16, 14/20, 16/24, 18/24, 24/32, 28/36. Spacing from 4, 8, 12, 16, 24, 32, 48, 64. Text columns are at
   most 640px wide. Every rule is anchored on #prba: the child theme styles p, li, td, th, h1, h2 and a on pages with !important
   at phone width and by page id, and an id outranks those. Sizes of p, li, dt, dd go through --fs/--lh so one !important rule covers them. */

/* the page template's centred "About Us" title stays, as on the other pages; only the policy-page frame (900px, 60px padding) is not used */
body.prb-about .entry-content.wp-block-post-content { max-width: 100% !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }

#prba {
  --ink: #16181d; --ink2: #454b55; --ink3: #6b7280; --line: #d5d9d9; --hair: #eceef0; --soft: #f5f6f7;
  --accent: #0f9d8f; --accent-hover: #0b7a70; --measure: 640px; --fs: 16px; --lh: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); font-size: 16px; line-height: 24px; text-align: left;
  max-width: 1280px !important; margin: 0 auto !important; padding: 8px 16px 48px; box-sizing: border-box; /* the child theme zeroes the side margins of everything in .entry-content on this page id */
}
#prba *, #prba *::before, #prba *::after { box-sizing: border-box; }
#prba p, #prba dl, #prba dd, #prba dt, #prba ul, #prba li, #prba h1, #prba h2 { margin: 0; padding: 0; }
#prba p, #prba li, #prba dt, #prba dd { font-size: var(--fs) !important; line-height: var(--lh) !important; color: var(--ink); }
#prba ul, #prba li { list-style: none; }
#prba li::marker { content: none; }
#prba a { color: var(--ink); text-decoration: underline; text-decoration-color: #9aa1ab; text-underline-offset: 3px; transition: text-decoration-color .15s ease; font-weight: inherit; }
#prba a:hover { text-decoration-color: currentColor; }
#prba :focus-visible { outline: 2px solid #0b7a70; outline-offset: 2px; border-radius: 4px; }
#prba h1, #prba h2 { color: var(--ink); letter-spacing: 0; text-transform: none; font-family: inherit; border: 0; background: none; padding: 0; }
#prba h1::before, #prba h2::before, #prba h1::after, #prba h2::after { content: none; display: none; }

/* ---------- top: title, lead, numbers, actions; the at-a-glance card ---------- */
#prba .prba-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 16px; }
#prba .prba-lead { color: var(--ink2); max-width: var(--measure); }
#prba .prba-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; max-width: var(--measure); }
#prba .prba-stats li { background: var(--soft); border-radius: 8px; padding: 12px 8px; text-align: center; }
#prba .prba-stats b { display: block; font-size: 24px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
#prba .prba-stats span { display: block; font-size: 12px; line-height: 16px; color: var(--ink2); }
#prba .prba-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
#prba a.prba-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px; border-radius: 8px; font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease; }
#prba a.prba-btn--primary { background: var(--accent); color: #fff; font-weight: 700; }
#prba a.prba-btn--primary:hover { background: var(--accent-hover); color: #fff; }
#prba a.prba-btn--secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--accent); }
#prba a.prba-btn--secondary:hover { border-color: var(--ink); }

#prba .prba-card { border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; background: #fff; }
#prba .prba-glance { --fs: 14px; --lh: 20px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 12px; }
#prba .prba-glance dt { color: var(--ink3); padding: 8px 0; border-bottom: 1px solid var(--hair); }
#prba .prba-glance dd { padding: 8px 0; border-bottom: 1px solid var(--hair); }
#prba .prba-glance dt:last-of-type, #prba .prba-glance dd:last-of-type { border-bottom: 0; }

/* ---------- sections ---------- */
#prba .prba-sec { padding: 24px 0; border-top: 1px solid var(--line); margin-top: 24px; }
#prba .prba-sec + .prba-sec { margin-top: 0; }
#prba .prba-sec > * { max-width: var(--measure); }
#prba .prba-h2 { font-size: 20px !important; line-height: 28px !important; font-weight: 600; margin-bottom: 12px; }
#prba .prba-p { margin-top: 12px; }
#prba .prba-h2 + .prba-p { margin-top: 0; }
#prba .prba-list { margin-top: 8px; }
#prba .prba-list li { position: relative; padding-left: 20px; }
#prba .prba-list li + li { margin-top: 4px; }
#prba .prba-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); }

/* questions: the product page's details/summary with the plus and minus sign */
#prba .prba-faq { border-bottom: 1px solid var(--hair); padding: 12px 0; }
#prba .prba-faq summary { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
#prba .prba-faq summary::-webkit-details-marker { display: none; }
#prba .prba-faq summary::after { content: "+"; color: var(--ink3); font-weight: 400; flex: 0 0 auto; }
#prba .prba-faq[open] summary::after { content: "–"; }
#prba .prba-faq summary:hover { color: #000; }
#prba .prba-faq:last-of-type { border-bottom: 0; }
#prba .prba-faq p { margin-top: 8px; color: var(--ink2); }

/* ---------- desktop: one centred column of 960px under the centred page title; the lead and the card side by side,
   then each section as a row with its heading in a left column and the text on the right ---------- */
@media (min-width: 1024px) {
  #prba { max-width: 960px !important; padding: 8px 24px 64px; }
  /* left column narrower than the card; the buttons sit centred in the space the card leaves under the lead */
  #prba .prba-top { grid-template-columns: minmax(0, 1fr) 440px; column-gap: 48px; align-items: stretch; padding-top: 8px; }
  #prba .prba-head { display: flex; flex-direction: column; }
  #prba .prba-lead { --fs: 18px; --lh: 28px; max-width: 460px; }
  #prba .prba-actions { margin: auto 0; padding: 24px 0; } /* centred in the space left under the lead */
  #prba .prba-card { padding: 8px 20px; }
  #prba .prba-glance { grid-template-columns: 124px minmax(0, 1fr); }
  #prba .prba-glance dd { overflow-wrap: anywhere; }
  #prba .prba-sec { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 48px; padding: 32px 0; margin-top: 32px; }
  #prba .prba-sec > * { grid-column: 2; max-width: none; }
  #prba .prba-sec > .prba-h2 { grid-column: 1; grid-row: 1 / span 20; font-size: 20px !important; line-height: 28px !important; margin: 0; }
  #prba .prba-h2 + .prba-p, #prba .prba-h2 + .prba-faq { margin-top: 0; }
  #prba .prba-faq:first-of-type { padding-top: 0; }
}
