:root { --ink: #354957; --head: #374c5b; --accent: #4E3D89; --line: #e6e8ee; }

/* The theme's own baseline, which sat at the top of its stylesheet on top of
   Bootstrap's Reboot. Both are loaded now: without Reboot a <button> keeps
   the browser's outset border and Arial, which is what the round menu button
   was wearing. */
/***** GENERAL STYLES ******/
body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: "Satoshi", sans-serif;
  font-weight: 700;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  color: #374c5b;
}

h1 {
  letter-spacing: -1px;
}

h1, h2, h3 {
  margin-bottom: 24px;
}

p {
  color: #354957;
}

/* WordPress held images inside the column with two rules of its own, both
   keyed on classes it put there — img[class*=wp-image-] and .wp-block-image
   img — and the import strips those. Reboot does not carry a max-width, so
   the pictures in the guide rendered at their natural size and ran off the
   page. This is the same thing said once, without needing a class. */
img {
  max-width: 100%;
  height: auto;
}

/* Inside a figure, and only there: WordPress's block stylesheet sat the
   picture on the bottom of its line. Doing it to every image moved the ones
   that are not in figures. */
figure img {
  vertical-align: bottom;
}


/* And the space WordPress left around what a picture says about itself. */
figcaption {
  margin-top: 8px;
  margin-bottom: 16px;
}
/* The reading column.
 *
 * The theme did this with Bootstrap's grid, so the width steps at every
 * breakpoint and each kind of page steps differently: a component page is
 * col-10 then col-lg-8 inside a container, FAQs and Plugins are col-10 all
 * the way, and the guide has no container at all, so it is a percentage of
 * the window. One fixed max-width could only ever match one of those at one
 * width — which is what it did.
 *
 * These are Bootstrap 5's container sizes and column percentages, measured
 * back against the rendered theme with tools/compare.mjs.
 */
main {
  width: 100%;
  margin: 0 auto;
  /* No padding above or below. The theme's .container has neither: the space
     over the breadcrumb is the breadcrumb's own margin, and the space above
     the footer is whatever spacer the page ends with — which is why some
     pages have a lot of it and some none. Adding either here moved every
     page down and held the footer off. */
  padding: 0 12px;
}
@media (min-width: 576px)  { main { max-width: 540px; } }
@media (min-width: 768px)  { main { max-width: 720px; } }
@media (min-width: 992px)  { main { max-width: 960px; } }
@media (min-width: 1200px) { main { max-width: 1140px; } }
@media (min-width: 1400px) { main { max-width: 1320px; } }

/* col-10 offset-1, which every page starts from. The gutter is the
   container's; adding the column's own on top would narrow the text by
   another 24px, which is exactly how far out the first attempt was. */
main > .column {
  width: 83.3333%;
  margin: 0 auto;
}

/* A component page narrows to col-lg-8 from 992 up. */
.page-component main > .column {
  width: 83.3333%;
}
@media (min-width: 992px) {
  .page-component main > .column { width: 66.6667%; }
}

/* The guide's archive sits outside a container, so it is a share of the
   window rather than of a fixed box, and it narrows at md rather than lg.
   No side padding either, or the share would be of something smaller.
   It is also the one place the theme uses a .row, whose negative margins
   make the column a share of the window plus a gutter — which is the 8px
   the first attempt was out by. */
.page-components main { max-width: none; padding-left: 0; padding-right: 0; }
.page-components main > .column { width: calc(83.3333% + 20px); padding: 0 12px; }
@media (min-width: 768px) {
  .page-components main > .column { width: calc(66.6667% + 16px); }
}

.page-index { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 20px; }
.page-index h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: #7b8794; }
.page-index ul { list-style: none; padding: 0; }
.page-index li { padding: 3px 0; }
.page-index a { color: var(--accent); text-decoration: none; }

/* Who said it, and where. C4L Author's quote has no such line — the template
   is the bar and the words and nothing else — so the import adds one from
   what the WordPress block was carrying, which left it as an unstyled
   paragraph sitting flush left under the quote. WordPress set three things on
   it and these are those three. The face is the plugin's own and stays that
   way: the block asked for Lora first, the plugin does not, and the only
   reason the two ever looked different is that this machine happens to have
   Lora installed. */
.c4lv-quote .c4l-caption {
  text-align: right;
  font-size: 13px;
  margin-top: 12px;
}

/* Lora, in front of the stack the plugin already asks for. Its own stylesheet
   names Lora as the face these two want and then does not use it — "requires
   link to Google Fonts", says the comment beside it. There is no link: the
   files are in assets/fonts, fetched by tools/fetch-lora.mjs, served from
   here. Everything behind Lora is untouched, so a browser that cannot have it
   falls exactly where it fell before. */
.c4l-quote,
.c4lv-quote,
.c4l-readingcontext,
.c4lv-readingcontext.c4l-comfort-reading-variant {
  font-family: 'Lora', 'Iowan Old Style', 'Apple Garamond', Baskerville,
    'Times New Roman', 'Droid Serif', Times, 'Source Serif Pro', serif,
    'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

/* The site's own inline tag — not the plugin's c4l-inlinetag, which the
   plugin styles. This one was never brought over, so the badge on the front
   page was reading as plain text, and so would every one the Site blocks
   menu wrote. */
.c4l-site-inline-tag {
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  display: inline-block;
  color: #fff;
  background: #3171e3;
  border-radius: 7px;
  padding: 2px 7px 1px;
  position: relative;
  top: -2px;
  margin-left: 4px;
  margin-right: 4px;
}

/* The card in the All-purpose card example is not the component: the block
   would not take an image, so the guide faked one out of a group with this
   class on it. The theme styled the group's inner container — a div
   WordPress adds when it renders, not one that was ever saved — so the rule
   named three wp-block classes and the import strips all three. Here the
   children sit straight inside the element that carries the class, so this
   is the same box one level up. */
.pseudo-all-purpose-card {
  box-sizing: border-box;
  width: 75%;
  background-color: #f1f5fe;
  padding: 24px 36px 26px;
  border: none;
  margin: 24px auto;
  position: relative;
  border-radius: 10px;
}

/* The examples. They were Gutenberg accordions and are <details> here, so
   this is the theme's accordion styling mapped onto the elements <details>
   actually has: the item is the <details>, the heading is the <summary>, and
   the panel is everything after it. */
.c4l-site-example-panel {
  border: 1px solid #e1e1e7;
  margin-bottom: 12px;
}
.c4l-site-example-panel > summary {
  background-color: #f7f7ff;
  font-size: 18px;
  padding: 12px 24px;
  cursor: pointer;
  display: block;
  list-style: none;
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  color: #374c5b;
  /* The block put its title in a button inside the heading, and that button
     added 7.04px above and below a 21.6px line. There is no button here, so
     the row height comes from the line instead and the box ends up the same
     59.68px tall. */
  line-height: 35.68px;
}
.c4l-site-example-panel > summary::-webkit-details-marker { display: none; }
/* The block drew a + and turned it a quarter way round to close it. */
.c4l-site-example-panel > summary::after {
  content: "+";
  font-size: 24px;
  float: right;
  line-height: 35.68px;
  transition: transform .2s ease-in-out;
}
.c4l-site-example-panel[open] > summary::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) {
  .c4l-site-example-panel > summary::after { transition: none; }
}
.c4l-site-example-panel > summary:hover { text-decoration: none; }
.c4l-site-example-panel > .c4l-site-example,
.c4l-site-example-panel > *:not(summary) {
  padding: 0 24px;
}
.c4l-site-example-panel > *:not(summary):first-of-type { padding-top: 24px; }
.c4l-site-example-panel > *:not(summary):last-child { padding-bottom: 24px; }


/* FAQs: each question is a group the WordPress editor labelled faqs-card. */
.faqs-card { margin-bottom: 48px; }
.faqs-card h3 { font-size: 20px; font-family: 'Roboto'; letter-spacing: 0; }
.faqs-section-rs-logo { width: 160px; margin: 48px auto 96px; display: block;
    transform: rotate(12deg); }
.faqs-section-rs-logo img { width: 100%; height: auto; }

/* The plugins page, brought over from the WordPress theme. Bootstrap's grid
   is not loaded here, so the three cards lay themselves out. */
.plugins-cards { display: grid; gap: 24px; margin-bottom: 48px; }
@media (min-width: 992px) { .plugins-cards { grid-template-columns: repeat(3, 1fr); } }
.plugins-card-column { display: flex; }

.plugins-page-intro {
  font-family: "Satoshi", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: #043961;
  max-width: 44em;
  margin-bottom: 48px;
}

.plugins-cards {
  margin-bottom: 48px;
}

/* The columns stretch to the tallest card, so the Download buttons line up
   across all three however long the descriptions get. */
.plugins-card-column {
  display: flex;
  margin-bottom: 24px;
}
@media screen and (min-width: 992px) {
  .plugins-card-column {
    margin-bottom: 0;
  }
}

.plugin-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px 26px 26px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.11);
}

.plugin-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.plugin-card-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
}

.plugin-card-icon-bordered {
  border: 1px solid #eae3ff;
}

.plugin-card-name {
  font-size: 22px;
  letter-spacing: 0;
  color: #043961;
  margin-bottom: 0;
}

.plugin-card-editor {
  font-family: "Satoshi", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #8552ff;
  margin-bottom: 8px;
}

.plugin-card-frankenstyle {
  margin-bottom: 18px;
}
.plugin-card-frankenstyle code {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  color: #40485a;
  background-color: #f1f5fe;
  border-radius: 4px;
  padding: 3px 7px;
}

.plugin-card-description {
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-secondary.plugin-card-download {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  height: 52px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background-color: #ff7600;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}

.btn-secondary.plugin-card-download:hover,
.btn-secondary.plugin-card-download:focus,
.btn-secondary.plugin-card-download:active {
  background-color: #ea6c00;
  color: #fff;
}

/* The box-shadow below replaces Bootstrap's grey focus ring, which the
   box-shadow: none in the base rule would otherwise leave keyboard users
   without. */
.btn-secondary.plugin-card-download:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(255, 118, 0, 0.4);
}

.plugin-card-download-icon {
  position: relative;
  top: -1px;
}

.plugins-page-note {
  font-size: 15px;
  color: #6b7f8e;
}


/* The guide's archive, from the theme. */
/* Guide */
#guide-section {
  margin-top: 48px;
  margin-bottom: 96px;
}
#guide-section h1 {
  margin-bottom: 48px;
}

.guide-components-section {
  margin-top: 48px;
}
.guide-components-section h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.guide-components-section ul {
  border-left: 1px solid #b9b2ce;
  padding-left: 12px;
  margin-left: 2px;
  line-height: 30px;
}
.guide-components-section li {
  list-style: none;
}
.guide-components-section li a {
  text-decoration: none;
  color: #40485a;
  font-weight: 400;
  padding: 3px 6px;
  border-radius: 4px;
  background-color: transparent;
}

#contextual-components li a:hover {
  background-color: #ECF4FF;
}

#procedural-components li a:hover {
  background-color: #FFF1F5;
}

#evaluative-components li a:hover {
  background-color: #fff5e9;
}

#helper-components li a:hover {
  background-color: #E5FFE1;
}

.guide-components-section h3 {
  font-size: 26px;
}
.guide-components-section p {
  font-size: 20px;
  font-family: Satoshi, sans-serif;
}
.guide-components-section#contextual-components img {
  height: 32px;
  margin-right: 12px;
  margin-top: -6px;
}
.guide-components-section#procedural-components img {
  height: 32px;
  margin-right: 12px;
  margin-top: -6px;
}
.guide-components-section#evaluative-components img {
  height: 32px;
  margin-right: 12px;
  margin-top: -6px;
}
.guide-components-section#helper-components img {
  height: 32px;
  margin-right: 12px;
  margin-top: -6px;
}

.guide-single-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


/* The breadcrumb, from the theme. */
.my-breadcrumb {
  display: inline-block;
  background-color: #f7f7ff;
  margin-top: 24px;
  margin-bottom: 36px;
  padding: 12px 14px;
  border-radius: 6px;
}


/* A component page's title is an h2 in the theme. It stays an h1 here —
   a page should have one — and takes the size the theme's h2 had. */
/* WordPress titled these pages with an h2, which is why they never picked up
   the tightening the h1 rule applies. This is an h1 — a page should have one
   — so it opts out and reads the same. */
h1.component-title { font-size: 32px; letter-spacing: normal; }


/* The lead paragraph of a component page, from the theme. */
.c4l-site-copy-text {
  font-size: 20px;
  margin-bottom: 36px;
}

/* The guide's own heading spacing. The theme keyed this off #guide-section,
   which wraps the archive here but not the title. */
.page-components main h1 { margin-bottom: 48px; }


/* Adding icons to component titles */
.component-page-title {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 8px;
  border-radius: 4px;
  position: relative;
  top: 2px;
}
.component-page-title.contextual {
  background-color: #ECF4FF;
}
.component-page-title.procedural {
  background-color: #FFF1F5;
}
.component-page-title.evaluative {
  background-color: #fff5e9;
}
.component-page-title.helper {
  background-color: #E5FFE1;
}
.component-page-title.key-concept-icon {
  background-image: url("/assets/img/c4l_keyconcept_icon.svg");
}
.component-page-title.tip-icon {
  background-image: url("/assets/img/c4l_tip_icon.svg");
  background-size: 12px;
}
.component-page-title.reminder-icon {
  background-image: url("/assets/img/c4l_reminder_icon.svg");
  background-size: 14px;
}
.component-page-title.quote-icon {
  background-image: url("/assets/img/c4l_quote_icon.svg");
  background-size: 16px;
}
.component-page-title.do-dont-cards-icon {
  background-image: url("/assets/img/c4l_dodontcards_icon.svg");
  width: 38px;
  background-size: 26px;
}
.component-page-title.reading-context-icon {
  background-image: url("/assets/img/c4l_readingcontext_icon.svg");
  width: 36px;
  background-size: 24px;
  background-position: center 9px;
}
.component-page-title.example-icon {
  background-image: url("/assets/img/c4l_example_icon.svg");
  background-size: 14px;
}
.component-page-title.figure-icon {
  background-image: url("/assets/img/c4l_figure_icon.svg");
}
.component-page-title.tag-icon {
  background-image: url("/assets/img/c4l_tag_icon.svg");
  background-size: 16px;
}
.component-page-title.inline-tag-icon {
  background-image: url("/assets/img/c4l_inlinetag_icon.svg");
  width: 38px;
  background-size: 26px;
}
.component-page-title.attention-icon {
  background-image: url("/assets/img/c4l_attention_icon.svg");
  background-size: 16px;
}
.component-page-title.estimated-time-icon {
  background-image: url("/assets/img/c4l_estimatedtime_icon.svg");
  background-size: 16px;
}
.component-page-title.due-date-icon {
  background-image: url("/assets/img/c4l_duedate_icon.svg");
}
.component-page-title.procedural-context-icon {
  background-image: url("/assets/img/c4l_proceduralcontext_icon.svg");
}
.component-page-title.learning-outcomes-icon {
  background-image: url("/assets/img/c4l_learningoutcomes_icon.svg");
}
.component-page-title.expected-feedback-icon {
  background-image: url("/assets/img/c4l_expectedfeedback_icon.svg");
}
.component-page-title.grading-value-icon {
  background-image: url("/assets/img/c4l_gradingvalue_icon.svg");
}
.component-page-title.all-purpose-card-icon {
  background-image: url("/assets/img/c4l_allpurposecard_icon.svg");
  background-size: 14px;
}
.component-page-title.concept-review-icon {
  background-image: url("/assets/img/c4l_conceptreview_icon.svg");
  background-size: 14px;
}
.component-page-title.further-reading-icon {
  background-image: url("/assets/img/c4l_furtherreading_icon.svg");
  background-size: 14px;
}
.component-page-title.aiuseallowed-icon,
.component-page-title.ai-use-allowed-icon {
  background-image: url("/assets/img/c4l_aiuseallowed_icon.svg");
}
.component-page-title.aiusenotallowed-icon,
.component-page-title.ai-use-not-allowed-icon {
  background-image: url("/assets/img/c4l_aiusenotallowed_icon.svg");
}
.component-page-title.aiusereported-icon,
.component-page-title.ai-use-reported-icon {
  background-image: url("/assets/img/c4l_aiusereported_icon.svg");
}
