/*!
 * Madre Savina — Tema Institucional
 * main.css — base (mobile-first) e componentes.
 * Breakpoints e ajustes de layout maiores ficam em responsive.css.
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--ms-red: #A80008;
	--ms-wine: #790B17;
	--ms-accent: #C41420;
	--ms-white: #FFFFFF;
	--ms-cream: #FFF9F5;
	--ms-rose: #FBEDEB;
	--ms-ink: #20242B;
	--ms-muted: #667085;

	--ms-line: #EDE4E1;
	--ms-gold: #93590A;
	--ms-gold-bg: #FCEFD9;
	--ms-blue: #2E5C9A;
	--ms-blue-bg: #E4EDF8;
	--ms-red-dark: color-mix(in srgb, var(--ms-red) 82%, #000);

	--ms-font-ui: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ms-font-text: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ms-font-title: "Merriweather", Georgia, "Times New Roman", serif;

	--ms-container: 1240px;
	--ms-gutter: 16px;
	--ms-radius-sm: 8px;
	--ms-radius: 14px;
	--ms-radius-lg: 24px;
	--ms-shadow-sm: 0 1px 2px rgba(32, 36, 43, .06), 0 2px 8px rgba(32, 36, 43, .04);
	--ms-shadow: 0 10px 30px -12px rgba(121, 11, 23, .18);
	--ms-header-h: 76px;
	--ms-logo-h: 62px;
	--ms-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ms-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--ms-white);
	color: var(--ms-ink);
	font-family: var(--ms-font-text);
	font-size: 1rem;
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
svg { flex-shrink: 0; }

a { color: var(--ms-red); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ms-wine); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	font-family: var(--ms-font-title);
	font-weight: 700;
	line-height: 1.22;
	color: var(--ms-wine);
}

p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

address { font-style: normal; }

:focus-visible {
	outline: 3px solid var(--ms-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--ms-red); color: #fff; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ms-skip-link:focus {
	position: fixed !important;
	top: 12px; left: 12px;
	z-index: 1000;
	width: auto; height: auto;
	margin: 0;
	padding: 12px 20px;
	clip: auto;
	background: var(--ms-white);
	color: var(--ms-wine);
	font-family: var(--ms-font-ui);
	font-weight: 700;
	border-radius: var(--ms-radius-sm);
	box-shadow: var(--ms-shadow);
}

.ms-main:focus { outline: none; }

.ms-container {
	width: 100%;
	max-width: calc(var(--ms-container) + var(--ms-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--ms-gutter);
}
.ms-container--narrow { max-width: calc(860px + var(--ms-gutter) * 2); }
.ms-container--wide { max-width: calc(1040px + var(--ms-gutter) * 2); }

.ms-rotate-180 { transform: rotate(180deg); }

/* ==========================================================================
   3. Elementos reutilizáveis
   ========================================================================== */
.ms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	min-height: 46px;
	padding: .7em 1.5em;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--ms-font-ui);
	font-size: .9375rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s var(--ms-ease), color .2s var(--ms-ease), border-color .2s var(--ms-ease), transform .2s var(--ms-ease);
}
.ms-btn .ms-icon { transition: transform .2s var(--ms-ease); }
.ms-btn:hover .ms-icon--arrow-right { transform: translateX(3px); }
.ms-btn--lg { min-height: 54px; padding: .8em 1.8em; font-size: 1rem; }

.ms-btn--primary { background: var(--ms-red); color: var(--ms-white); }
.ms-btn--primary:hover { background: var(--ms-wine); color: var(--ms-white); }

.ms-btn--outline { border-color: var(--ms-red); color: var(--ms-red); background: var(--ms-white); }
.ms-btn--outline:hover { background: var(--ms-red); color: var(--ms-white); }

.ms-btn--outline-light { border-color: rgba(255, 255, 255, .85); color: var(--ms-white); }
.ms-btn--outline-light:hover { background: var(--ms-white); color: var(--ms-red); }

.ms-eyebrow {
	margin: 0 0 .8em;
	font-family: var(--ms-font-ui);
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--ms-red);
}
.ms-eyebrow--spaced { letter-spacing: .32em; }

.ms-badge {
	display: inline-block;
	padding: .3em .85em;
	border-radius: 999px;
	background: var(--ms-rose);
	color: var(--ms-red);
	font-family: var(--ms-font-ui);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
}
a.ms-badge:hover { background: var(--ms-red); color: var(--ms-white); }

.ms-placeholder {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 10px;
	width: 100%;
	height: 100%;
	min-height: 180px;
	padding: 20px;
	background:
		radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .7) 0 18%, transparent 19%),
		linear-gradient(135deg, var(--ms-rose), color-mix(in srgb, var(--ms-rose) 60%, var(--ms-red) 12%));
	color: color-mix(in srgb, var(--ms-red) 55%, transparent);
	text-align: center;
}
.ms-placeholder__hint {
	max-width: 24ch;
	font-family: var(--ms-font-ui);
	font-size: .75rem;
	font-weight: 600;
	color: var(--ms-wine);
}

.ms-section { position: relative; padding-block: 64px; }
.ms-section--tight { padding-block: 40px 64px; }
.ms-section--cream { background: var(--ms-cream); }

.ms-section__head { margin-bottom: 32px; }
.ms-section__head--split { display: grid; gap: 12px 48px; align-items: end; }
.ms-section__title { margin: 0; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); font-weight: 900; color: var(--ms-wine); }
.ms-section__title--xl { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.6rem); }
.ms-section__lead { margin: 0; color: var(--ms-muted); font-size: .95rem; max-width: 52ch; }

.ms-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ms-social a {
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	color: inherit;
	transition: background-color .2s, color .2s;
}
.ms-social a:hover { background: rgba(255, 255, 255, .16); color: inherit; }

/* Tons dos ícones/cartões */
.ms-tone--red  { --tone-fg: var(--ms-white); --tone-bg: var(--ms-red); --tone-text: var(--ms-red); --tone-soft: #F5DCDB; }
.ms-tone--gold { --tone-fg: var(--ms-gold); --tone-bg: var(--ms-gold-bg); --tone-text: var(--ms-gold); --tone-soft: #FDF1E0; }
.ms-tone--blue { --tone-fg: var(--ms-blue); --tone-bg: var(--ms-blue-bg); --tone-text: var(--ms-blue); --tone-soft: #E6EEF9; }
.ms-tone--rose { --tone-fg: var(--ms-red); --tone-bg: var(--ms-rose); --tone-text: var(--ms-red); --tone-soft: #FBE7E5; }
.ms-tone--cream { --tone-fg: var(--ms-wine); --tone-bg: var(--ms-cream); --tone-text: var(--ms-wine); --tone-soft: var(--ms-cream); }

/* ==========================================================================
   4. Cabeçalho
   ========================================================================== */
.ms-header { position: relative; z-index: 100; background: var(--ms-white); }
.ms-has-sticky-header .ms-header { position: sticky; top: 0; }
.admin-bar.ms-has-sticky-header .ms-header { top: 46px; }
.ms-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(32, 36, 43, .35); }

.ms-topbar {
	display: none;
	background: var(--ms-red);
	color: var(--ms-white);
	font-family: var(--ms-font-ui);
	font-size: .8125rem;
	font-weight: 500;
}
.ms-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.ms-topbar__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
.ms-topbar__contacts li, .ms-topbar__contacts a { display: inline-flex; align-items: center; gap: 8px; }
.ms-topbar a { color: var(--ms-white); text-decoration: none; }
.ms-topbar a:hover { text-decoration: underline; color: var(--ms-white); }
.ms-topbar .ms-social a { width: 30px; height: 30px; }

.ms-header__main { border-bottom: 1px solid var(--ms-line); }
.ms-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--ms-header-h); }
.ms-header__brand { flex: 0 1 auto; min-width: 0; margin-right: auto; }

.ms-logo { display: inline-flex; align-items: center; text-decoration: none; }
.ms-logo__img { width: auto; height: calc(var(--ms-logo-h) * .82); max-width: 100%; object-fit: contain; }
.ms-logo--text { font-family: var(--ms-font-title); font-size: 1.4rem; font-weight: 900; color: var(--ms-wine); }

/* Botão do menu (mobile) */
.ms-nav-toggle {
	display: inline-grid;
	place-items: center;
	width: 48px; height: 48px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: var(--ms-rose);
	color: var(--ms-red);
}
.ms-nav-toggle__close { display: none; }
.ms-nav-toggle[aria-expanded="true"] .ms-nav-toggle__open { display: none; }
.ms-nav-toggle[aria-expanded="true"] .ms-nav-toggle__close { display: grid; }
.ms-nav-toggle__open, .ms-nav-toggle__close { place-items: center; }
.ms-nav-toggle__open { display: grid; }

/* Painel de navegação: off-canvas no mobile */
.ms-nav-panel {
	position: fixed;
	inset: 0 0 0 auto;
	z-index: 120;
	display: flex;
	flex-direction: column;
	width: min(88vw, 380px);
	padding: 88px 24px 32px;
	overflow-y: auto;
	background: var(--ms-white);
	box-shadow: -20px 0 50px -20px rgba(32, 36, 43, .35);
	transform: translateX(105%);
	visibility: hidden;
	transition: transform .3s var(--ms-ease), visibility 0s linear .3s;
}
.ms-nav-panel.is-open { transform: none; visibility: visible; transition: transform .3s var(--ms-ease); }
.ms-nav-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(32, 36, 43, .45); }
.ms-nav-open { overflow: hidden; }
.ms-nav-open .ms-header { z-index: 200; }
.ms-nav-open .ms-nav-toggle { position: fixed; top: 14px; right: 16px; z-index: 130; }
.admin-bar.ms-nav-open .ms-nav-toggle { top: 60px; }

.ms-menu, .ms-menu ul, .ms-menu-fallback ul { margin: 0; padding: 0; list-style: none; }
.ms-menu > li, .ms-menu-fallback li { position: relative; border-bottom: 1px solid var(--ms-line); }
.ms-menu a, .ms-menu-fallback a {
	display: block;
	padding: 14px 44px 14px 0;
	color: var(--ms-ink);
	font-family: var(--ms-font-ui);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}
.ms-menu a:hover,
.ms-menu .current-menu-item > a,
.ms-menu .current-menu-ancestor > a,
.ms-menu .current_page_item > a { color: var(--ms-red); }
.ms-submenu-toggle {
	position: absolute;
	top: 6px; right: 0;
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ms-ink);
}
.ms-submenu-toggle[aria-expanded="true"] .ms-icon { transform: rotate(180deg); }
.ms-menu .sub-menu { display: none; padding: 0 0 10px 14px; }
.ms-menu .sub-menu.is-open { display: block; }
.ms-menu .sub-menu a { padding-block: 9px; font-size: .9375rem; font-weight: 500; }

.ms-header__actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 24px; }
.ms-search-toggle {
	display: none;
	place-items: center;
	width: 42px; height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ms-red);
}
.ms-search-toggle:hover { background: var(--ms-rose); }
.ms-nav-panel__footer { margin-top: auto; padding-top: 24px; color: var(--ms-red); }
.ms-nav-panel__footer .ms-social a:hover { background: var(--ms-rose); }

/* Busca: ícone no celular (ao lado do menu) */
.ms-search-toggle--mobile { display: grid; margin-left: auto; width: 46px; height: 46px; background: var(--ms-rose); }
.ms-search-toggle--mobile + .ms-nav-toggle { margin-left: 8px; }
.ms-nav-open .ms-search-toggle--mobile { visibility: hidden; }
.ms-search-form { display: flex; gap: 10px; }
.ms-search-form__field {
	flex: 1;
	min-width: 0;
	min-height: 50px;
	padding: 0 20px;
	border: 1.5px solid #D9CFCC;
	border-radius: 999px;
	background: var(--ms-white);
}
.ms-search-form__field:focus { border-color: var(--ms-red); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ms-red) 22%, transparent); }
.ms-search-form__submit span { display: none; }

/* ==========================================================================
   5. Home — Hero (fiel ao layout aprovado: foto sangrando à direita com borda orgânica)
   ========================================================================== */
.ms-hero {
	position: relative;
	overflow: hidden;
	background: var(--ms-cream);
	isolation: isolate;
}
.ms-hero__decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ms-blob { position: absolute; display: block; border-radius: 50%; }
.ms-blob--a { width: 300px; height: 300px; left: -150px; top: -40px; background: color-mix(in srgb, var(--ms-rose) 85%, var(--ms-red) 5%); }
.ms-blob--b { width: 200px; height: 220px; left: -110px; bottom: -70px; background: linear-gradient(160deg, var(--ms-red), var(--ms-wine)); border-radius: 46% 54% 60% 40% / 50% 50% 50% 50%; }
.ms-blob--d { width: 520px; height: 260px; left: -120px; bottom: -150px; background: #F7EBE3; border-radius: 50%; }
.ms-hero__dashes { display: none; position: absolute; left: 6px; top: 34%; width: 90px; height: 90px; fill: none; stroke: #E3C9B8; stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.ms-hero__dashes circle { fill: none; stroke: #E3C9B8; stroke-dasharray: none; stroke-width: 2.5; }

.ms-hero__slide { position: relative; }
.ms-hero__slide[hidden] { display: none; }
.ms-hero__grid { position: relative; display: grid; gap: 28px; padding-block: 36px 0; }
.ms-hero__content { position: relative; z-index: 3; }
.ms-hero__eyebrow { position: relative; color: #4A4F57; font-weight: 600; font-size: .68rem; letter-spacing: .34em; }
.ms-hero__title {
	margin: .25em 0 .45em;
	font-size: clamp(2.6rem, .4rem + 4.4vw, 4.6rem);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -.012em;
	color: #1D2433;
}
.ms-hero__title-hl { display: block; color: var(--ms-red); }
.ms-hero__title-hl1 { display: block; }
.ms-hero__title-hl2 { display: block; font-size: .8em; line-height: 1.1; white-space: nowrap; }
.ms-hero__title-rest { display: block; margin-top: .04em; font-size: .58em; white-space: nowrap; line-height: 1.15; color: #1D2433; }
.ms-hero__text { max-width: 30em; margin-bottom: 1.5em; font-size: clamp(1rem, .95rem + .3vw, 1.125rem); line-height: 1.55; color: #2B303A; }
.ms-hero__actions { display: flex; flex-wrap: wrap; gap: 12px 18px; }

.ms-hero__highlights { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 30px 0 0; padding: 0; list-style: none; }
.ms-hero__highlights li { display: flex; align-items: center; gap: 12px; max-width: 13em; font-family: var(--ms-font-ui); font-size: .8125rem; font-weight: 500; line-height: 1.35; color: var(--ms-ink); }
.ms-hero__highlights .ms-icon { color: var(--ms-red); }

/* Foto */
.ms-hero__media { position: relative; z-index: 1; height: 360px; margin-inline: calc(var(--ms-gutter) * -1); }
.ms-hero__photo {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: var(--ms-rose);
	-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%2C14%20C22%2C2%2048%2C0%2070%2C5%20C84%2C8%2092%2C6%20100%2C0%20L100%2C100%20L0%2C100%20Z%22/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%2C14%20C22%2C2%2048%2C0%2070%2C5%20C84%2C8%2092%2C6%20100%2C0%20L100%2C100%20L0%2C100%20Z%22/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.ms-hero__photo picture, .ms-hero__img { display: block; width: 100%; height: 100%; }
.ms-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.ms-hero__photo .ms-placeholder { min-height: 100%; }

.ms-hero__ribbon { display: none; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; fill: var(--ms-red); pointer-events: none; }
.ms-hero__corner { display: none; position: absolute; z-index: 2; border-radius: 50%; background: var(--ms-cream); pointer-events: none; }
.ms-hero__redblob {
	position: absolute;
	z-index: 2;
	right: 0; bottom: 0;
	width: 64px; height: 46%;
	border-radius: 100% 0 0 0 / 70% 0 0 0;
	background: linear-gradient(170deg, var(--ms-red), var(--ms-wine));
	pointer-events: none;
}
.ms-hero__strokes { display: none; position: absolute; z-index: 3; pointer-events: none; }
.ms-hero__strokes i { position: absolute; display: block; width: 30px; height: 4px; border-radius: 4px; background: var(--ms-red); }
.ms-hero__strokes i:nth-child(1) { top: 0; left: 6px; transform: rotate(28deg); }
.ms-hero__strokes i:nth-child(2) { top: 22px; left: 0; transform: rotate(-4deg); }
.ms-hero__strokes i:nth-child(3) { top: 44px; left: 6px; transform: rotate(-32deg); }

.ms-hero__note {
	position: absolute;
	z-index: 4;
	right: 18px; top: 26px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin: 0;
	padding: 6px 10px;
	border-radius: 14px;
	background: rgba(255, 249, 245, .82);
	font-family: "Caveat", "Segoe Script", cursive;
	line-height: .95;
	text-align: right;
	transform: rotate(-9deg);
}
.ms-hero__note-1 { color: var(--ms-red); font-size: 1.7rem; font-weight: 700; }
.ms-hero__note-2 { max-width: 6.2em; color: #2B303A; font-size: 1.45rem; font-weight: 500; }
.ms-hero__note-line { width: 84px; height: 12px; margin-top: 2px; fill: none; stroke: var(--ms-red); stroke-width: 3.2; stroke-linecap: round; }

/* Foto recortada (fundo transparente): fundo suave + forma vermelha atrás + aluno na frente, como no layout. */
.ms-hero__media--cutout .ms-hero__photo {
	background:
		radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, 0) 42%),
		radial-gradient(ellipse at 30% 80%, color-mix(in srgb, var(--ms-red) 16%, transparent), transparent 60%),
		linear-gradient(160deg, #FBF1EC 0%, #F3DCD5 55%, #E9C6BD 100%);
}
.ms-hero__media--cutout .ms-hero__redblob {
	right: 6%; bottom: -14%;
	width: 62%; height: 74%;
	border-radius: 58% 42% 46% 54% / 60% 54% 46% 40%;
	background: linear-gradient(160deg, var(--ms-red) 0%, var(--ms-wine) 100%);
	opacity: .96;
}
.ms-hero__media--cutout { overflow: hidden; }
.ms-hero__person {
	position: absolute;
	z-index: 3;
	left: 8%; right: 0; bottom: 0; top: 4%;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	pointer-events: none;
}
.ms-hero__person picture, .ms-hero__person img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center bottom;
	filter: drop-shadow(0 18px 28px rgba(80, 10, 18, .18));
}

.ms-hero__controls { position: relative; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-block: 14px; }
.ms-hero__ctrl {
	display: grid;
	place-items: center;
	width: 42px; height: 42px;
	padding: 0;
	border: 1.5px solid color-mix(in srgb, var(--ms-red) 35%, transparent);
	border-radius: 50%;
	background: var(--ms-white);
	color: var(--ms-red);
}
.ms-hero__ctrl:hover { background: var(--ms-red); color: var(--ms-white); }
.ms-hero__dots { display: flex; gap: 6px; }
.ms-hero__dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--ms-red) 25%, transparent); transition: width .25s var(--ms-ease), background-color .25s; }
.ms-hero__dot[aria-current="true"] { width: 30px; background: var(--ms-red); }

/* ==========================================================================
   6. Home — Acesso rápido
   ========================================================================== */

/* ==========================================================================
   7. Home — Proposta pedagógica
   ========================================================================== */
.ms-pedagogy__grid { position: relative; display: grid; gap: 40px; align-items: center; }
.ms-pedagogy__media { position: relative; padding: 18px 0 0 18px; }
.ms-pedagogy__shape {
	position: absolute;
	left: 0; top: 0;
	width: 62%; height: 78%;
	border-radius: 140px 32px 32px 32px;
	background: linear-gradient(160deg, var(--ms-red), var(--ms-wine));
}
.ms-pedagogy__photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--ms-radius-lg); background: var(--ms-rose); box-shadow: var(--ms-shadow); }
.ms-pedagogy__photo img, .ms-pedagogy__photo .ms-placeholder { width: 100%; height: 100%; object-fit: cover; }
.ms-pedagogy__subtitle { margin: .5em 0 .6em; font-family: var(--ms-font-text); font-size: 1.125rem; font-weight: 600; color: var(--ms-ink); }
.ms-pedagogy__text { margin-bottom: 1.6em; color: var(--ms-muted); }
.ms-pedagogy__text p:last-child { margin-bottom: 0; }
.ms-pedagogy__script {
	display: none;
	margin: 0;
	color: var(--ms-red);
	font-family: "Caveat", "Segoe Script", cursive;
	font-weight: 700;
	font-size: 2.1rem;
	line-height: 1;
	transform: rotate(-8deg);
}

/* ==========================================================================
   8. Home — Segmentos
   ========================================================================== */
/* --------------------------------------------------------------------------
   7b. Home — História de Madre Savina
   -------------------------------------------------------------------------- */
.ms-btn--light { background: var(--ms-white); color: var(--ms-red); }
.ms-btn--light:hover { background: var(--ms-cream); color: var(--ms-wine); }

.ms-history {
	overflow: hidden;
	background: linear-gradient(135deg, var(--ms-wine) 0%, var(--ms-red) 100%);
	color: var(--ms-white);
}
.ms-history__glow {
	position: absolute;
	right: -12%; top: -30%;
	width: 60%; aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .14) 0, transparent 65%);
	pointer-events: none;
}
.ms-history__grid { position: relative; display: grid; gap: 44px; align-items: center; }
.ms-history .ms-history__eyebrow { color: rgba(255, 255, 255, .78); }
.ms-history .ms-history__title { color: var(--ms-white); }
.ms-history__subtitle { margin: .5em 0 .8em; font-size: 1.125rem; font-weight: 600; color: #FFE3DF; }
.ms-history__text { margin-bottom: 1.6em; color: rgba(255, 255, 255, .88); }
.ms-history__text p:last-child { margin-bottom: 0; }
.ms-history__text a { color: var(--ms-white); }

.ms-history__milestones {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 2em;
	padding: 0;
	list-style: none;
}
.ms-history__milestone {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: var(--ms-radius);
	background: rgba(255, 255, 255, .07);
}
.ms-history__year { font-family: var(--ms-font-title); font-size: 1.3rem; font-weight: 900; line-height: 1.1; color: var(--ms-white); }
.ms-history__label { font-family: var(--ms-font-ui); font-size: .8125rem; line-height: 1.35; color: rgba(255, 255, 255, .82); }

.ms-history__media { position: relative; order: -1; margin: 0 auto; width: min(100%, 300px); }
.ms-history__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border: 6px solid rgba(255, 255, 255, .92);
	border-radius: 999px 999px var(--ms-radius-lg) var(--ms-radius-lg);
	background: linear-gradient(170deg, var(--ms-cream) 0%, var(--ms-rose) 100%);
	box-shadow: 0 30px 60px -24px rgba(40, 0, 6, .55);
}
.ms-history__frame img, .ms-history__frame .ms-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ms-history__frame img.is-cutout { padding-top: 18px; }
.ms-history__quote {
	position: relative;
	margin: -26px auto 0;
	width: fit-content;
	max-width: 108%;
	padding: 10px 22px;
	border-radius: 24px;
	background: var(--ms-white);
	color: var(--ms-red);
	font-family: "Caveat", "Segoe Script", cursive;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	box-shadow: var(--ms-shadow);
}

.ms-segments { overflow: hidden; }
.ms-segments__grid { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.ms-segment {
	position: relative;
	display: grid;
	grid-template-columns: 42% 1fr;
	min-height: 190px;
	overflow: hidden;
	border-radius: var(--ms-radius-lg);
	background: var(--tone-soft);
	transition: transform .25s var(--ms-ease), box-shadow .25s var(--ms-ease);
}
.ms-segment:hover { transform: translateY(-4px); box-shadow: var(--ms-shadow); }
.ms-segment__media { position: relative; overflow: hidden; }
.ms-segment__media img, .ms-segment__media .ms-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center top; }
.ms-segment__body { display: flex; flex-direction: column; padding: 22px 20px 20px; }
.ms-segment__title { display: flex; align-items: center; gap: 10px; margin: 0 0 .5em; font-family: var(--ms-font-ui); font-size: 1.05rem; font-weight: 700; line-height: 1.2; color: var(--ms-ink); }
.ms-segment__icon { color: var(--tone-fg); }
.ms-tone--red .ms-segment__icon { color: var(--ms-red); }
.ms-segment__link { color: inherit; text-decoration: none; }
.ms-segment__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ms-segment__link:focus-visible { outline: none; }
.ms-segment:has(.ms-segment__link:focus-visible) { outline: 3px solid var(--ms-accent); outline-offset: 3px; }
.ms-segment__text { margin: 0 0 14px; font-size: .875rem; line-height: 1.55; color: #3A3F48; }
.ms-segment__arrow {
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	margin-top: auto;
	border-radius: 50%;
	background: var(--ms-red);
	color: var(--ms-white);
	transition: background-color .2s, transform .2s;
}
.ms-segment:hover .ms-segment__arrow { background: var(--ms-wine); transform: translateX(3px); }

/* ==========================================================================
   9. Home — Diferenciais
   ========================================================================== */
.ms-diff { overflow: hidden; }
.ms-diff__dots {
	display: none;
	position: absolute;
	left: 24px; top: 40px;
	width: 70px; height: 90px;
	background-image: radial-gradient(var(--ms-red) 2.2px, transparent 2.6px);
	background-size: 18px 18px;
	opacity: .7;
	pointer-events: none;
}
.ms-diff__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin: 0; padding: 0; list-style: none; }
.ms-diff__item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 6px; }
.ms-diff__icon { display: grid; place-items: center; height: 56px; margin-bottom: 10px; color: var(--ms-red); }
.ms-diff__title { margin: 0 0 .3em; font-family: var(--ms-font-title); font-size: 1.05rem; font-weight: 700; color: var(--ms-ink); }
.ms-diff__title a { color: inherit; text-decoration: none; }
.ms-diff__title a:hover { color: var(--ms-red); }
.ms-diff__text { max-width: 16ch; margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--ms-muted); }

/* ==========================================================================
   10. Home — Faixa institucional
   ========================================================================== */
.ms-band { position: relative; display: grid; background: var(--ms-wine); }
.ms-band__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.ms-band__media img, .ms-band__media .ms-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms-band__panel {
	position: relative;
	margin: 0;
	padding: 76px var(--ms-gutter) 44px;
	background: linear-gradient(135deg, var(--ms-red) 0%, var(--ms-wine) 100%);
	color: var(--ms-white);
}
.ms-band__quote-icon { position: absolute; top: 20px; left: 12px; color: rgba(255, 255, 255, .22); }
.ms-band__quote { position: relative; margin: 0; }
.ms-band__quote p { margin: 0; font-family: var(--ms-font-title); font-style: italic; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); line-height: 1.45; }
.ms-band__author { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-family: var(--ms-font-ui); font-size: .8125rem; font-weight: 600; }
.ms-band__author::before { content: ""; width: 40px; height: 1.5px; background: currentColor; opacity: .8; }

/* ==========================================================================
   11. Notícias (cartões, grade, filtro, paginação)
   ========================================================================== */
.ms-news-grid { display: grid; gap: 24px; }
.ms-news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius);
	background: var(--ms-white);
	transition: transform .25s var(--ms-ease), box-shadow .25s var(--ms-ease);
}
.ms-news-card:hover { transform: translateY(-4px); box-shadow: var(--ms-shadow); }
.ms-news-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ms-rose); }
.ms-news-card__media img, .ms-news-card__media .ms-placeholder { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform .5s var(--ms-ease); }
.ms-news-card:hover .ms-news-card__media img { transform: scale(1.04); }
.ms-news-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.ms-news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; font-family: var(--ms-font-ui); font-size: .8125rem; color: var(--ms-muted); }
.ms-news-card__title { margin: 0 0 .5em; font-size: 1.15rem; line-height: 1.35; color: var(--ms-ink); }
.ms-news-card__title a { color: inherit; text-decoration: none; }
.ms-news-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ms-news-card__title a:focus-visible { outline: none; }
.ms-news-card:has(.ms-news-card__title a:focus-visible) { outline: 3px solid var(--ms-accent); outline-offset: 3px; }
.ms-news-card .ms-badge { position: relative; z-index: 2; }
.ms-news-card__excerpt { margin: 0 0 16px; font-size: .9rem; line-height: 1.6; color: var(--ms-muted); }
.ms-news-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-family: var(--ms-font-ui); font-size: .8125rem; font-weight: 700; color: var(--ms-red); }

.ms-filter { margin-bottom: 28px; }
.ms-filter ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ms-filter a {
	display: inline-block;
	padding: .5em 1.1em;
	border: 1.5px solid var(--ms-line);
	border-radius: 999px;
	color: var(--ms-ink);
	font-family: var(--ms-font-ui);
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
}
.ms-filter a:hover { border-color: var(--ms-red); color: var(--ms-red); }
.ms-filter a[aria-current="page"] { border-color: var(--ms-red); background: var(--ms-red); color: var(--ms-white); }

.ms-pagination { margin-top: 40px; }
.ms-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ms-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px; height: 44px;
	padding: 0 12px;
	border: 1.5px solid var(--ms-line);
	border-radius: 999px;
	color: var(--ms-ink);
	font-family: var(--ms-font-ui);
	font-weight: 700;
	text-decoration: none;
}
.ms-pagination a.page-numbers:hover { border-color: var(--ms-red); color: var(--ms-red); }
.ms-pagination .page-numbers.current { border-color: var(--ms-red); background: var(--ms-red); color: var(--ms-white); }

/* ==========================================================================
   11b. Fotografias recortadas (PNG/WebP com fundo transparente)
   O tema detecta a transparência e mostra o aluno inteiro, ancorado embaixo,
   sobre um fundo suave da própria seção — sem cortar cabeça ou pés.
   ========================================================================== */
img.is-cutout { object-fit: contain !important; object-position: center bottom !important; }
.ms-segment__media:has(img.is-cutout) {
	background: radial-gradient(ellipse 80% 70% at 50% 100%, color-mix(in srgb, var(--tone-fg, var(--ms-red)) 22%, transparent), transparent 72%);
}
.ms-segment__media img.is-cutout { inset: 10px 0 0; height: calc(100% - 10px); }
.ms-pedagogy__photo:has(img.is-cutout) {
	background:
		radial-gradient(circle at 50% 110%, color-mix(in srgb, var(--ms-red) 28%, transparent) 0, transparent 62%),
		linear-gradient(170deg, var(--ms-cream) 0%, var(--ms-rose) 100%);
}
.ms-pedagogy__photo img.is-cutout { padding-top: 16px; }
.ms-band__media:has(img.is-cutout) {
	background:
		radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--ms-red) 55%, transparent) 0, transparent 60%),
		linear-gradient(150deg, #F6E3DC 0%, #E7BFB4 100%);
}
.ms-band__media img.is-cutout { top: 14px; height: calc(100% - 14px); }
.ms-side-card__media:has(img.is-cutout) img { -webkit-mask-image: none; mask-image: none; }

/* ==========================================================================
   12. Banner interno + breadcrumb
   ========================================================================== */
.ms-inner-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 60% 90% at 100% 100%, color-mix(in srgb, var(--ms-red) 14%, transparent), transparent 70%),
		linear-gradient(120deg, var(--ms-cream) 0%, var(--ms-rose) 100%);
	isolation: isolate;
}
.ms-inner-hero__shape {
	position: absolute;
	right: -120px; top: -80px;
	z-index: -1;
	width: 360px; height: 360px;
	border-radius: 50%;
	border: 40px solid color-mix(in srgb, var(--ms-red) 10%, transparent);
}
.ms-inner-hero__grid { position: relative; z-index: 3; display: grid; align-items: center; min-height: 240px; padding-block: 28px 36px; }
.ms-inner-hero__title {
	margin: .2em 0 .3em;
	font-family: var(--ms-font-ui);
	font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.015em;
	color: var(--ms-wine);
}
.ms-inner-hero__title-hl { display: block; color: var(--ms-red); }
.ms-inner-hero__subtitle { max-width: 30em; margin: 0; font-size: 1.0625rem; line-height: 1.5; color: #3A3F48; }

/* Versão com fotografia (layout aprovado do Regimento Interno) */
.ms-inner-hero.has-photo { background: #8E5A50; }
.ms-inner-hero__photo { position: absolute; inset: 0; z-index: -3; }
.ms-inner-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; }
.ms-inner-hero__veil {
	position: absolute;
	inset: 0;
	z-index: -2;
	/* Celular: véu uniforme (texto sobre a foto inteira). */
	background: linear-gradient(180deg, rgba(140, 84, 76, .78), rgba(120, 60, 54, .86));
}
.ms-inner-hero__arc { display: none; position: absolute; z-index: -1; top: 0; bottom: 0; left: 35%; width: 18%; height: 100%; fill: var(--ms-red); pointer-events: none; }
.ms-inner-hero__redcorner {
	position: absolute;
	z-index: -1;
	right: 0; bottom: 0;
	width: 56px; height: 40%;
	border-radius: 100% 0 0 0 / 80% 0 0 0;
	background: linear-gradient(170deg, var(--ms-red), var(--ms-wine));
	pointer-events: none;
}
.ms-inner-hero__doodle { display: none; position: absolute; z-index: 2; color: #fff; pointer-events: none; }
.ms-inner-hero__doodle svg { transform: rotate(-14deg); }
.ms-inner-hero__doodle i { position: absolute; display: block; width: 26px; height: 2.5px; border-radius: 3px; background: #fff; }
.ms-inner-hero__doodle i:nth-of-type(1) { left: 92px; top: 4px; transform: rotate(55deg); }
.ms-inner-hero__doodle i:nth-of-type(2) { left: 106px; top: 18px; transform: rotate(75deg); }
.ms-inner-hero__doodle i:nth-of-type(3) { left: 84px; top: 46px; transform: rotate(12deg); }
.ms-inner-hero__note {
	display: none;
	position: absolute;
	z-index: 2;
	margin: 0;
	max-width: 7em;
	font-family: "Caveat", "Segoe Script", cursive;
	font-size: 1.85rem;
	font-weight: 500;
	line-height: 1;
	color: #2B303A;
	transform: rotate(-12deg);
	pointer-events: none;
}
.ms-inner-hero__note-quote { margin-right: 4px; color: var(--ms-red); font-weight: 700; }
.ms-inner-hero__heart { display: block; width: 46px; height: 46px; margin: 6px 0 0 auto; fill: none; stroke: var(--ms-red); stroke-width: 2.4; stroke-linecap: round; }

/* Foto recortada (fundo transparente): fundo em degradê + aluno à direita, ancorado embaixo. */
.ms-inner-hero.is-cutout {
	background:
		radial-gradient(circle at 78% 40%, rgba(255, 236, 228, .55) 0, rgba(255, 236, 228, 0) 38%),
		linear-gradient(100deg, #8E4E46 0%, #9C5A51 40%, #B9776B 62%, #D9A99D 100%);
}
.ms-inner-hero.is-cutout .ms-inner-hero__veil { display: none; }
.ms-inner-hero.is-cutout .ms-inner-hero__photo { left: auto; right: -4%; top: 14%; width: 62%; z-index: -1; opacity: .5; }
.ms-inner-hero.is-cutout .ms-inner-hero__photo img { object-fit: contain; object-position: right bottom; }
.ms-inner-hero.is-cutout .ms-inner-hero__arc,
.ms-inner-hero.is-cutout .ms-inner-hero__redcorner { z-index: -2; }

.ms-inner-hero.has-photo .ms-inner-hero__grid { min-height: 300px; }
.ms-inner-hero.has-photo .ms-inner-hero__title { color: #fff; text-shadow: 0 2px 18px rgba(70, 20, 18, .35); }
.ms-inner-hero.has-photo .ms-inner-hero__title-hl { color: var(--ms-red); text-shadow: 0 1px 14px rgba(255, 235, 228, .35); }
.ms-inner-hero.has-photo .ms-inner-hero__subtitle { color: #fff; text-shadow: 0 1px 10px rgba(60, 16, 14, .45); }
.ms-inner-hero.has-photo .ms-breadcrumb,
.ms-inner-hero.has-photo .ms-breadcrumb a,
.ms-inner-hero.has-photo .ms-breadcrumb [aria-current],
.ms-inner-hero.has-photo .ms-eyebrow { color: #fff; text-shadow: 0 1px 8px rgba(60, 16, 14, .4); }

.ms-breadcrumb { font-family: var(--ms-font-ui); font-size: .8125rem; color: var(--ms-muted); }
.ms-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ms-breadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.ms-breadcrumb a { color: inherit; text-decoration: none; }
.ms-breadcrumb a:hover { color: var(--ms-red); text-decoration: underline; }
.ms-breadcrumb [aria-current] { font-weight: 600; color: var(--ms-ink); }

/* ==========================================================================
   13. Páginas internas e sidebar
   ========================================================================== */
.ms-page__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.ms-page__layout.ms-sidebar-mobile-before .ms-sidebar { order: -1; }
.ms-page__content { min-width: 0; }
.ms-page__title { margin: .5em 0 .8em; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }

.ms-side-nav {
	overflow: hidden;
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius);
	background: var(--ms-white);
	box-shadow: var(--ms-shadow-sm);
}
.ms-side-nav__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 20px 18px 16px;
	font-family: var(--ms-font-ui);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ms-red);
	border-bottom: 1px solid var(--ms-line);
}
.ms-side-nav__menu { margin: 0; padding: 6px 0; list-style: none; }
.ms-side-nav__menu ul { margin: 0; padding: 0 0 0 12px; list-style: none; }
.ms-side-nav__menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 2px 8px;
	padding: 10px 12px;
	border-radius: var(--ms-radius-sm);
	color: #3A3F48;
	font-family: var(--ms-font-ui);
	font-size: .875rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.ms-side-nav__menu > li + li > a { position: relative; }
.ms-side-nav__menu a .ms-icon { color: #A3A8B3; transition: transform .2s; }
.ms-side-nav__menu a:hover { background: var(--ms-rose); color: var(--ms-red); }
.ms-side-nav__menu a:hover .ms-icon { color: var(--ms-red); transform: translateX(2px); }
.ms-side-nav__menu .current-menu-item > a,
.ms-side-nav__menu .current_page_item > a { background: var(--ms-red); color: var(--ms-white); font-weight: 700; }
.ms-side-nav__menu .current-menu-item > a .ms-icon { color: var(--ms-white); }
.ms-sidebar__hint { padding: 16px; border: 1px dashed var(--ms-red); border-radius: var(--ms-radius); font-size: .875rem; }

.ms-side-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin-top: 24px;
	overflow: hidden;
	border-radius: var(--ms-radius);
	background: linear-gradient(160deg, var(--ms-red), var(--ms-wine));
	color: var(--ms-white);
	box-shadow: var(--ms-shadow);
}
.ms-side-card__media { position: absolute; inset: 0 0 72px 38%; }
.ms-side-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.ms-side-card__title { position: relative; max-width: 62%; margin: 0; padding: 26px 18px 0; min-height: 210px; font-family: var(--ms-font-title); font-style: italic; line-height: 1.25; }
.ms-side-card:not(.has-image) .ms-side-card__title { max-width: none; min-height: 0; padding-bottom: 20px; }
.ms-side-card__title strong { display: block; font-size: 1.4rem; font-weight: 700; }
.ms-side-card__title span { display: block; margin-top: 6px; font-size: .95rem; }
.ms-side-card__btn {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 14px 14px;
	padding: 12px 16px;
	border-radius: var(--ms-radius-sm);
	background: var(--ms-white);
	color: var(--ms-red);
	font-family: var(--ms-font-ui);
	font-size: .8125rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}
.ms-side-card__btn:hover { background: var(--ms-rose); color: var(--ms-wine); }
.ms-sidebar__widgets { margin-top: 24px; }
.ms-widget + .ms-widget { margin-top: 20px; }
.ms-widget__title { font-family: var(--ms-font-ui); font-size: 1rem; color: var(--ms-red); }

/* ==========================================================================
   14. Conteúdo editorial (prose)
   ========================================================================== */
.ms-prose { font-size: 1rem; line-height: 1.75; color: #2E333B; }
.ms-prose > * { margin-block: 0 1.1em; }
.ms-prose > :last-child { margin-bottom: 0; }
.ms-prose h2, .ms-prose h3, .ms-prose h4 { scroll-margin-top: calc(var(--ms-header-h) + 24px); }
.ms-prose h2 { margin-top: 2em; font-family: var(--ms-font-ui); font-size: clamp(1.35rem, 1.2rem + .6vw, 1.6rem); font-weight: 700; color: var(--ms-red); }
.ms-prose h3 { margin-top: 1.6em; font-family: var(--ms-font-ui); font-size: 1.15rem; font-weight: 700; color: var(--ms-red); }
.ms-prose h4 { margin-top: 1.4em; font-family: var(--ms-font-ui); font-size: 1rem; font-weight: 700; color: var(--ms-ink); }
.ms-prose > h2:first-child, .ms-prose > h3:first-child { margin-top: 0; }
.ms-prose strong { color: var(--ms-ink); font-weight: 600; }
.ms-prose ul, .ms-prose ol { padding-left: 1.3em; }
.ms-prose li + li { margin-top: .35em; }
.ms-prose li::marker { color: var(--ms-red); }
.ms-prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--ms-red); font-family: var(--ms-font-title); font-style: italic; color: var(--ms-wine); }
.ms-prose figure { margin-inline: 0; }
.ms-prose figcaption, .wp-element-caption { margin-top: .6em; font-size: .8125rem; color: var(--ms-muted); text-align: center; }
.ms-prose img { border-radius: var(--ms-radius-sm); }
.ms-prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--ms-line); }
.ms-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ms-prose th, .ms-prose td { padding: 10px 12px; border-bottom: 1px solid var(--ms-line); text-align: left; }
.ms-prose th { font-family: var(--ms-font-ui); color: var(--ms-wine); }
.ms-prose .wp-block-button__link { text-decoration: none; }
.ms-prose .alignwide { max-width: none; }
.ms-prose .wp-block-gallery { gap: 10px; }
.ms-prose .wp-block-gallery img { border-radius: var(--ms-radius-sm); }

.ms-edit-link { margin-top: 32px; font-size: .85rem; }
.ms-page-links { margin-top: 24px; font-family: var(--ms-font-ui); font-weight: 600; }

/* ==========================================================================
   15. Notícia individual
   ========================================================================== */
.ms-article__header { padding: 28px 0 24px; background: linear-gradient(180deg, var(--ms-cream), var(--ms-white)); }
.ms-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 18px 0 14px; font-family: var(--ms-font-ui); font-size: .85rem; color: var(--ms-muted); }
.ms-article__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.ms-article__meta .ms-icon { color: var(--ms-red); }
.ms-article__title { margin: 0 0 .4em; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); font-weight: 900; line-height: 1.15; color: var(--ms-ink); }
.ms-article__lead { margin: 0; font-size: 1.15rem; color: #3A3F48; }
.ms-article__cover { margin-block: 8px 36px; }
.ms-article__cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--ms-radius-lg); }
.ms-article__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ms-line); }

.ms-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ms-tags a { display: inline-block; padding: .3em .8em; border-radius: 999px; background: var(--ms-cream); color: var(--ms-muted); font-size: .8rem; text-decoration: none; }
.ms-tags a:hover { background: var(--ms-rose); color: var(--ms-red); }

.ms-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ms-share__label { font-family: var(--ms-font-ui); font-size: .8125rem; font-weight: 700; color: var(--ms-ink); }
.ms-share ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ms-share__btn {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 1.5px solid var(--ms-line);
	border-radius: 50%;
	background: var(--ms-white);
	color: var(--ms-wine);
}
.ms-share__btn:hover { border-color: var(--ms-red); background: var(--ms-red); color: var(--ms-white); }
.ms-share__status { font-size: .8125rem; color: var(--ms-red); font-weight: 600; }

.ms-post-nav { margin-top: 40px; }
.ms-post-nav .nav-links { display: grid; gap: 12px; }
.ms-post-nav a { display: block; height: 100%; padding: 16px 20px; border: 1px solid var(--ms-line); border-radius: var(--ms-radius); color: var(--ms-ink); text-decoration: none; }
.ms-post-nav a:hover { border-color: var(--ms-red); }
.ms-post-nav__label { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; font-family: var(--ms-font-ui); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ms-red); }
.ms-post-nav__title { display: block; font-family: var(--ms-font-title); font-weight: 700; line-height: 1.35; }
.ms-post-nav .nav-next { text-align: right; }

.ms-related { margin-block: 64px; }
.ms-related__title { margin-bottom: 24px; font-size: 1.6rem; }

.ms-comments { margin-top: 48px; }

/* ==========================================================================
   16. Busca, vazio e 404
   ========================================================================== */

/* Janela de pesquisa (abre pelo ícone de lupa ou pela tecla "/") */
html.ms-search-open { overflow: hidden; }
.ms-searchbox {
	width: 100%; max-width: none; height: 100%; max-height: none;
	margin: 0; padding: 0; border: 0;
	background: transparent;
	color: var(--ms-ink);
	overflow-y: auto;
}
.ms-searchbox[open] { display: block; }
.ms-searchbox::backdrop {
	background:
		radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--ms-red) 55%, transparent) 0, transparent 45%),
		linear-gradient(160deg, color-mix(in srgb, var(--ms-wine) 92%, transparent), rgba(30, 6, 12, .9));
	backdrop-filter: blur(6px);
}
.ms-searchbox__panel {
	position: relative;
	width: min(860px, calc(100% - 24px));
	margin: clamp(16px, 9vh, 110px) auto 40px;
	padding: clamp(26px, 5vw, 48px) clamp(20px, 5vw, 52px) clamp(24px, 4vw, 40px);
	border-radius: 30px;
	background: var(--ms-white);
	box-shadow: 0 40px 90px -30px rgba(20, 0, 6, .6);
	animation: ms-search-in .28s var(--ms-ease) both;
}
.ms-searchbox__panel::before {
	content: "";
	position: absolute; inset: 0 0 auto;
	height: 8px;
	border-radius: 30px 30px 0 0;
	background: linear-gradient(90deg, var(--ms-red), var(--ms-wine), var(--ms-red));
}
@keyframes ms-search-in { from { opacity: 0; transform: translateY(-18px) scale(.98); } to { opacity: 1; transform: none; } }
.ms-searchbox__close {
	position: absolute; top: 18px; right: 18px;
	display: grid; place-items: center;
	width: 48px; height: 48px;
	border: 0; border-radius: 50%;
	background: var(--ms-rose); color: var(--ms-red);
	cursor: pointer;
	transition: transform .2s, background .2s;
}
.ms-searchbox__close:hover { background: var(--ms-red); color: var(--ms-white); transform: rotate(90deg); }
.ms-searchbox__eyebrow { margin: 0 0 .3em; font-family: var(--ms-font-ui); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ms-red); }
.ms-searchbox__title { margin: 0 0 .6em; padding-right: 56px; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); line-height: 1.1; color: var(--ms-wine); }
.ms-searchbox__form {
	position: relative;
	display: flex; align-items: center; gap: 10px;
	padding: 8px 8px 8px 58px;
	border: 2px solid color-mix(in srgb, var(--ms-red) 35%, #E6D9D6);
	border-radius: 999px;
	background: var(--ms-cream);
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.ms-searchbox__form:focus-within { border-color: var(--ms-red); background: var(--ms-white); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ms-red) 16%, transparent), 0 18px 40px -22px color-mix(in srgb, var(--ms-red) 60%, transparent); }
.ms-searchbox__icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--ms-red); line-height: 0; }
.ms-searchbox.is-loading .ms-searchbox__icon { animation: ms-search-pulse .8s ease-in-out infinite alternate; }
@keyframes ms-search-pulse { to { opacity: .35; } }
.ms-searchbox__field {
	flex: 1; min-width: 0; min-height: 52px;
	padding: 0; border: 0; outline: none;
	background: transparent;
	font-family: var(--ms-font-ui);
	font-size: clamp(1.05rem, .95rem + .6vw, 1.35rem);
	font-weight: 600;
	color: var(--ms-ink);
}
.ms-searchbox__field::placeholder { color: #8A8F99; font-weight: 500; }
.ms-searchbox__field::-webkit-search-cancel-button { cursor: pointer; }
.ms-searchbox__submit {
	flex: none;
	min-height: 52px; padding: 0 26px;
	border: 0; border-radius: 999px;
	background: linear-gradient(135deg, var(--ms-red), var(--ms-wine));
	color: var(--ms-white);
	font-family: var(--ms-font-ui); font-size: 1rem; font-weight: 700;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s;
}
.ms-searchbox__submit:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px var(--ms-red); }
.ms-searchbox__hint { margin: .8em 0 0 1.4em; font-size: .85rem; color: var(--ms-muted); }
.ms-searchbox__label { margin: 1.6em 0 .7em; font-family: var(--ms-font-ui); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ms-muted); }
.ms-searchbox__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ms-searchbox__chips a {
	display: inline-flex; align-items: center; min-height: 42px;
	padding: 0 18px;
	border: 1.5px solid color-mix(in srgb, var(--ms-red) 30%, transparent);
	border-radius: 999px;
	background: var(--ms-white);
	color: var(--ms-wine); font-family: var(--ms-font-ui); font-size: .9rem; font-weight: 600;
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}
.ms-searchbox__chips a:hover, .ms-searchbox__chips a:focus-visible { background: var(--ms-red); border-color: var(--ms-red); color: var(--ms-white); }
.ms-searchbox__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ms-line); }
.ms-searchbox__item {
	display: grid; gap: 3px;
	padding: 16px 14px;
	margin: 0 -14px;
	border-bottom: 1px solid var(--ms-line);
	border-radius: 14px;
	color: var(--ms-ink);
	text-decoration: none;
	transition: background .15s;
}
.ms-searchbox__item:hover, .ms-searchbox__item:focus-visible { background: var(--ms-rose); }
.ms-searchbox__type { font-family: var(--ms-font-ui); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ms-red); }
.ms-searchbox__item-title { font-family: var(--ms-font-ui); font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.ms-searchbox__item:hover .ms-searchbox__item-title { color: var(--ms-red); }
.ms-searchbox__snippet { font-size: .9rem; line-height: 1.5; color: var(--ms-muted); }
.ms-searchbox mark, .ms-result mark { padding: 0 2px; border-radius: 3px; background: color-mix(in srgb, var(--ms-red) 16%, transparent); color: inherit; font-weight: 700; }
.ms-searchbox__all { display: inline-block; margin-top: 16px; font-family: var(--ms-font-ui); font-weight: 700; color: var(--ms-red); }
.ms-searchbox__empty { margin: 1.4em 0 0; padding: 18px; border-radius: 14px; background: var(--ms-cream); color: var(--ms-muted); }
@media (max-width: 599px) {
	.ms-searchbox__panel { margin-top: 12px; border-radius: 24px; }
	.ms-searchbox__form { flex-wrap: wrap; padding: 8px 8px 8px 50px; border-radius: 26px; }
	.ms-searchbox__icon { left: 18px; top: 34px; }
	.ms-searchbox__submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.ms-searchbox__panel, .ms-searchbox.is-loading .ms-searchbox__icon { animation: none; }
}

/* Página de resultados: só título e trecho, sem fotos */
.ms-search-page__form { margin-bottom: 18px; }
.ms-search-page__count { margin: 0 0 18px; color: var(--ms-muted); font-size: .95rem; }
.ms-results { margin: 0; padding: 0; list-style: none; counter-reset: res; }
.ms-result { position: relative; padding: 22px 0 22px; border-bottom: 1px solid var(--ms-line); }
.ms-result__meta { margin: 0; }
.ms-result__type { display: inline-block; margin: 0 0 .5em; padding: 3px 10px; border-radius: 999px; background: var(--ms-rose); font-family: var(--ms-font-ui); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ms-red); }
.ms-result__date { margin-left: 8px; font-size: .8rem; color: var(--ms-muted); }
.ms-result__title { margin: 0 0 .35em; font-size: 1.3rem; line-height: 1.3; }
.ms-result__title a { color: var(--ms-ink); text-decoration: none; }
.ms-result__title a::after { content: ""; position: absolute; inset: 0; }
.ms-result:hover .ms-result__title a, .ms-result__title a:focus-visible { color: var(--ms-red); text-decoration: underline; }
.ms-result:hover { background: linear-gradient(90deg, transparent, var(--ms-cream) 12%, var(--ms-cream) 88%, transparent); }
.ms-result__excerpt { margin: 0; color: var(--ms-muted); font-size: .975rem; line-height: 1.6; }
.ms-result__url { display: block; margin-top: .45em; font-size: .8rem; color: #2E6B3D; word-break: break-all; }

.ms-empty { max-width: 560px; margin: 24px auto; padding: 40px 24px; border-radius: var(--ms-radius-lg); background: var(--ms-cream); text-align: center; }
.ms-empty__icon { display: inline-grid; place-items: center; width: 80px; height: 80px; margin-bottom: 14px; border-radius: 50%; background: var(--ms-rose); color: var(--ms-red); }
.ms-empty__title { font-size: 1.4rem; }
.ms-empty .ms-search-form { margin-top: 20px; }

.ms-404__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ==========================================================================
   17. Rodapé
   ========================================================================== */
.ms-footer { color: rgba(255, 255, 255, .92); font-size: .9rem; }
.ms-footer a { color: inherit; text-decoration: none; }
.ms-footer a:hover { color: var(--ms-white); text-decoration: underline; }
.ms-footer__main {
	position: relative;
	overflow: hidden;
	padding: 56px 0 44px;
	background: linear-gradient(135deg, var(--ms-red) 0%, var(--ms-red-dark) 100%);
}
.ms-footer__main::after {
	content: "";
	position: absolute;
	right: -140px; bottom: -180px;
	width: 420px; height: 420px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .05);
	pointer-events: none;
}
.ms-footer__grid { position: relative; z-index: 1; display: grid; gap: 36px; }
.ms-logo--badge { padding: 12px 16px; border-radius: var(--ms-radius); background: var(--ms-white); }
.ms-logo--footer .ms-logo__img { height: auto; width: 230px; }
.ms-footer__phrase { display: block; max-width: 18em; margin: 22px 0 0; font-family: var(--ms-font-title); font-style: italic; font-size: 1.15rem; line-height: 1.4; color: var(--ms-white); }
.ms-footer__heart { display: inline-block; margin-left: 6px; vertical-align: -4px; color: rgba(255, 255, 255, .85); }
.ms-footer__title { margin: 0 0 16px; font-family: var(--ms-font-ui); font-size: 1rem; font-weight: 700; color: var(--ms-white); }
.ms-footer__list { margin: 0 0 16px; padding: 0; list-style: none; }
.ms-footer__list li { display: flex; gap: 12px; padding: 6px 0; line-height: 1.5; }
.ms-footer__list .ms-icon { margin-top: 2px; color: rgba(255, 255, 255, .8); }
.ms-footer__menu { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; }
.ms-footer__menu li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ms-footer__cta p { margin-bottom: 16px; }
.ms-footer__cta .ms-btn { white-space: nowrap; padding-inline: 1.2em; }
.ms-footer .ms-social a:hover { text-decoration: none; }
.ms-footer__bottom { padding: 18px 0; background: var(--ms-wine); font-size: .8125rem; }
.ms-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.ms-footer__copy { margin: 0; }
.ms-footer__legal { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.ms-footer__credit { margin: 0; }
.ms-footer__credit img { display: inline-block; height: 20px; width: auto; vertical-align: middle; }

.ms-back-to-top {
	position: fixed;
	right: 16px; bottom: 16px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 46px; height: 46px;
	border-radius: 50%;
	background: var(--ms-red);
	color: var(--ms-white);
	box-shadow: var(--ms-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s, transform .25s, visibility 0s linear .25s;
}
.ms-back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.ms-back-to-top:hover { background: var(--ms-wine); color: var(--ms-white); }

/* ==========================================================================
   18. Movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* ==========================================================================
   19. Impressão (ex.: imprimir o Regimento Interno)
   ========================================================================== */
@media print {
	.ms-topbar, .ms-header__main, .ms-sidebar, .ms-footer__main, .ms-back-to-top, .ms-share, .ms-post-nav, .ms-related, .ms-inner-hero__photo, .ms-inner-hero__veil, .ms-inner-hero__arc, .ms-inner-hero__doodle, .ms-inner-hero__note, .ms-inner-hero__redcorner, .ms-inner-hero__shape { display: none !important; }
	.ms-inner-hero.has-photo .ms-inner-hero__title, .ms-inner-hero.has-photo .ms-inner-hero__subtitle, .ms-inner-hero.has-photo .ms-breadcrumb { color: #000 !important; text-shadow: none !important; }
	.ms-has-sticky-header .ms-header { position: static; }
	.ms-inner-hero { background: none; }
	.ms-page__layout { display: block; }
	body { font-size: 11pt; }
	a { color: inherit; }
}

/* ==========================================================================
   20. Classes padrão do WordPress
   ========================================================================== */
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { margin-top: .5em; font-size: .8125rem; color: var(--ms-muted); text-align: center; }
.sticky .ms-news-card__title::before { content: "★ "; color: var(--ms-red); }
.bypostauthor > .comment-body { border-left: 3px solid var(--ms-red); padding-left: 12px; }
@media (max-width: 599px) { .alignleft, .alignright { float: none; margin-inline: 0; } }
