/* scoiltriest.ie — single stylesheet, no framework. Colours from the school crest. */
@font-face { font-family: "Vollkorn"; src: url("/assets/fonts/Vollkorn-VariableFont_wght.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-VariableFont_wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root { --cream: #FBFBEC; --ink: #1E2A14; --green: #3D6213; --green-dark: #274009; --yellow: #F8F896; --leaf: #9EAD71; --brown: #5A2A00; --white: #fff; --line: #E3E6C8; --muted: #4A5A3A; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; overflow-x: hidden; }
body { font-family: Manrope, system-ui, sans-serif; font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--cream); }
h1, h2, h3 { font-family: Vollkorn, Georgia, serif; color: var(--green); line-height: 1.15; margin: 0 0 .5em; overflow-wrap: anywhere; }
h1 { font-size: clamp(32px, 7vw, 52px); }
h2 { font-size: clamp(26px, 5vw, 36px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
a { color: var(--green); }
a:hover, a:focus { color: var(--green-dark); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.band { padding: 48px 0; }
.band-yellow { background: var(--yellow); }
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 8px; background: var(--white); padding: 8px; z-index: 10; }

/* header */
.site-header { background: var(--white); border-bottom: 4px solid var(--green); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap; }
.lead { font-size: 20px; max-width: 760px; }
.wrap-text { max-width: 860px; }
@media (min-width: 761px) { .hero-cols { grid-template-columns: 2fr 3fr; gap: 48px; } }
.hero-title { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 0.6em; }
.hero-buttons { justify-content: center; margin-top: 20px; }
.hero-buttons .wp-block-button__link { padding: 0 34px; font-size: 18px; }
.hero .st-video { box-shadow: 0 8px 24px rgba(30, 42, 20, 0.18); }

/* filter box (policies) */
.filter { display: flex; flex-direction: column; gap: 6px; max-width: 520px; margin: 0 0 8px; }
.filter label { font-weight: 700; color: var(--green); }
.filter input { font: inherit; font-size: 17px; padding: 12px 14px; border: 2px solid var(--leaf); border-radius: 10px; background: var(--white); color: var(--ink); }
.filter input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(61, 98, 19, 0.15); }
.filter-count { color: var(--muted); font-size: 15px; min-height: 1.4em; margin: 0 0 12px; }

/* a document rendered as a page */
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px 8px; margin: 0 0 28px; }
.toc h2 { font-size: 20px; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.toc li { margin: 0 0 6px; break-inside: avoid; font-size: 16px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.doc h2 { font-size: 26px; margin-top: 1.6em; scroll-margin-top: 16px; }
.doc h3 { font-size: 21px; margin-top: 1.2em; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; }
.doc-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 16px; }
.doc-table td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; background: var(--white); }
.doc-download { padding: 12px 16px; background: var(--yellow); border-radius: 10px; font-weight: 700; }

/* numbered steps (admissions) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.steps li { position: relative; padding: 14px 16px 14px 64px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--white); font-family: Vollkorn, Georgia, serif; font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; }

/* school motto */
.motto { text-align: center; font-family: Vollkorn, Georgia, serif; font-style: italic; font-weight: 600; font-size: clamp(28px, 4vw, 40px); color: var(--green); margin: 4px 0 28px; line-height: 1.2; }
.motto .motto-label { display: block; font-family: Manrope, system-ui, sans-serif; font-style: normal; font-weight: 400; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* the Principal's letter */
.letter { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 36px 40px; margin-top: -8px; }
.letter p { font-size: 19px; line-height: 1.75; margin-bottom: 1.1em; }
.letter-more > p:first-of-type::first-letter { font-family: Vollkorn, Georgia, serif; font-size: 3.4em; font-weight: 700; color: var(--green); float: left; line-height: 0.85; padding: 6px 10px 0 0; }
.letter .wp-block-quote { margin: 8px 0 24px; padding: 16px 24px; border-left: 4px solid var(--leaf); background: var(--cream); font-family: Vollkorn, Georgia, serif; font-size: 21px; line-height: 1.5; color: var(--green-dark); }
.letter .wp-block-quote p { font-family: inherit; font-size: inherit; margin: 0 0 6px; }
.letter .wp-block-quote cite { font-family: Manrope, system-ui, sans-serif; font-size: 14px; color: var(--muted); }
.letter .signoff { margin-top: 24px; margin-bottom: 0; }
.letter .signature { font-family: Vollkorn, Georgia, serif; font-style: italic; font-size: 30px; color: var(--green); }
.letter .role { color: var(--muted); font-size: 16px; }
@media (max-width: 640px) { .letter { padding: 24px 18px; } .letter p { font-size: 17px; } }
.band .wrap > .wp-block-columns { margin-top: 8px; }
.alignfull { padding: 0; }
.band-white .wp-block-media-text { background: var(--cream); }
@media (max-width: 1040px) { .brand-tag { display: none; } .nav a { padding: 0 10px; font-size: 16px; } .brand-name { font-size: 24px; } }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--green); }
.brand img { width: 72px; height: 72px; }
.brand-name { font-family: Vollkorn, Georgia, serif; font-size: 28px; font-weight: 700; line-height: 1.1; }
.brand-tag { font-size: 15px; color: var(--muted); }
.menu-btn { display: none; width: 48px; height: 48px; border: 2px solid var(--green); border-radius: 10px; background: var(--white); color: var(--green); cursor: pointer; align-items: center; justify-content: center; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 17px; }
.nav a[aria-current="page"] { background: var(--green); color: var(--white); }
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; }
  .brand img { width: 56px; height: 56px; }
  .brand-name { font-size: 21px; }
  .brand-tag { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; padding: 8px 0 4px; }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; font-size: 18px; }
}

/* layout blocks reused from the page markup */
.wp-block-columns { display: grid; gap: 40px; align-items: start; }
.wp-block-columns.are-vertically-aligned-center { align-items: center; }
@media (min-width: 761px) { .wp-block-columns { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 0; }
.wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--green); color: var(--white); text-decoration: none; font-weight: 700; font-size: 17px; }
.wp-block-button__link:hover, .wp-block-button__link:focus { background: var(--green-dark); color: var(--white); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--green); border: 2px solid var(--green); }
.wp-block-list { padding-left: 1.2em; margin: 0 0 1em; }
.wp-block-image, .wp-block-media-text__media { margin: 0; }
.wp-block-image img, .wp-block-media-text__media img { border-radius: 14px; width: 100%; object-fit: cover; }
.wp-block-media-text { display: grid; gap: 24px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); margin-bottom: 24px; }
@media (min-width: 761px) { .wp-block-media-text { grid-template-columns: 1fr 1fr; } }
.wp-block-quote { margin: 0 0 1em; padding: 12px 20px; border-left: 4px solid var(--leaf); background: var(--white); border-radius: 0 10px 10px 0; }
.wp-block-quote cite { display: block; margin-top: 8px; color: var(--muted); font-style: normal; font-size: 15px; }
.has-secondary-background-color { background: var(--yellow); }
.has-accent-3-background-color { background: var(--white); }
.alignfull { padding: 48px 24px; }

/* video frames: 16:9, full width, play in place on phones */
.st-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #2b4410; }
.st-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* document lists */
.st-doclist { display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 0 0 32px; }
.st-doclist p { margin: 0; }
.st-doclist a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-decoration: none; font-weight: 700; }
.st-doclist a:hover, .st-doclist a:focus { border-color: var(--green); background: var(--cream); }
.st-doclist small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.jumps a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 2px solid var(--green); border-radius: 999px; text-decoration: none; font-weight: 700; margin: 0 6px 8px 0; }

/* footer */
.site-footer { background: var(--green); color: var(--yellow); padding: 28px 0; }
.site-footer a { color: var(--yellow); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.site-footer .name { font-family: Vollkorn, Georgia, serif; font-size: 22px; }
.site-footer p { margin: 0; font-size: 15px; }

/* inner-page title band in the crest yellow */
.title-band { padding: 28px 0 24px; margin-bottom: 28px; border-bottom: 1px solid #e6e39a; }
.title-band h1 { margin: 0; }

/* phone fixes: header row, hero order, hero title, collapsible letter */
h1.hero-title { font-size: clamp(24px, 6vw, 36px) !important; }
.letter-more > summary { list-style: none; cursor: pointer; display: none; margin: 8px 0 0; font-weight: 700; color: var(--green); }
.letter-more > summary::-webkit-details-marker { display: none; }
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; align-items: center; }
  .brand { flex: 1 1 0; min-width: 0; order: 1; }
  .brand-name { font-size: 18px; }
  .menu-btn { order: 2; flex: 0 0 48px; }
  nav[aria-label="Main"] { order: 3; flex-basis: 100%; }
  .hero-cols > .hero-media { order: -1; }
  .hero .band { padding-top: 24px; }
  /* letter: first paragraph visible, the rest behind "Read the Principal's full welcome" */
  .letter-more:not([open]) > *:not(summary):not(:nth-child(2)) { display: none; }
  .letter-more > summary { display: block; }
  .letter-more[open] > summary { display: none; }
}

/* "read the full welcome" card on phones */
.summary-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 52px; border: 2px solid var(--green); border-radius: 12px; background: var(--white); position: relative; }
.summary-card::before { content: ""; position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--green); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-size: 16px; background-position: center; background-repeat: no-repeat; }
.summary-title { font-family: Vollkorn, Georgia, serif; font-size: 20px; color: var(--green); font-weight: 700; }
.summary-sub { font-size: 14px; color: var(--muted); font-weight: 400; }
