/*
Theme Name: Research Associates
Theme URI: https://wordpress.com
Author: Research Associates
Description: Editorial theme for Research Associates, an exclusively appellate practice.
Version: 1.3.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: research-associates
*/

body { margin: 0; background: #ECEAE6; color: #0E1A2B; font-family: Lato, system-ui, sans-serif; }
.ra a { color: inherit; }
.ra a:hover { color: #9A6A3A; }
.ra *, .ra *::before, .ra *::after { box-sizing: border-box; }
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }

/* Header */
.ra-header { position: sticky; top: 0; z-index: 50; background: #0E1A2B; color: #fff; display: flex; align-items: stretch; min-height: 68px; border-bottom: 1px solid #22324A; }
.admin-bar .ra-header { top: 32px; }
.ra-menu-btn { width: 68px; background: #16243A; border: none; border-right: 1px solid #22324A; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ra-brand { display: flex; align-items: center; padding: 0 28px; text-decoration: none; color: #fff !important; font-size: 20px; font-weight: 700; letter-spacing: 6px; }
.ra-nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 0 32px; font-size: 13px; font-weight: 700; letter-spacing: 2.5px; }
.ra-nav a { color: #C9D2DE !important; text-decoration: none; padding: 12px 0; }
.ra-nav a:hover { color: #fff !important; }
.ra-nav a.ra-cta { color: #fff !important; border-bottom: 2px solid #B5793F; }
.ra-drawer { position: fixed; top: 68px; left: 0; bottom: 0; width: 360px; max-width: 100%; z-index: 60; background: #0E1A2B; padding: 48px 40px; display: none; flex-direction: column; gap: 22px; box-shadow: 8px 0 40px rgba(0,0,0,.35); }
.ra-drawer.is-open { display: flex; }
.ra-drawer a { color: #fff !important; text-decoration: none; font-family: 'Playfair Display', Georgia, serif; font-size: 30px; padding: 6px 0; }

/* Shared */
.ra-wrap { max-width: 1320px; margin: 0 auto; padding: 120px 40px; }
.ra-kicker { display: block; font-size: 14px; font-weight: 700; letter-spacing: 5px; color: #4A5668; text-transform: uppercase; }
.ra-kicker--light { color: #E0B784; }
.ra-display { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-style: italic; font-size: 64px; line-height: 1.05; }
.ra-rule { display: block; width: 200px; height: 1px; background: #0E1A2B; margin-top: 18px; }
.ra-text { font-size: 20px; line-height: 1.75; color: #2B3646; }
.ra-text p { margin: 0 0 20px; }
.ra-split { display: flex; flex-wrap: wrap; gap: 72px; align-items: flex-start; }
.ra-split > .ra-col-narrow { flex: 1 1 340px; }
.ra-split > .ra-col-wide { flex: 2 1 600px; }
.ra-btn { display: inline-block; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: 3px; padding: 16px 28px; }
.ra-btn--ghost { color: #fff !important; border: 1px solid rgba(255,255,255,.7); }
.ra-btn--link { padding: 14px 0; border-bottom: 2px solid #B5793F; }

/* Hero */
.ra-hero { position: relative; height: 860px; overflow: hidden; background: #0E1A2B; color: #fff; }
.ra-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.ra-hero__img.is-active { opacity: 1; }
.ra-hero__img--scotus { object-position: center 45%; filter: saturate(.7) brightness(.85); }
.ra-hero__img--mi { object-position: center 55%; filter: grayscale(1) contrast(1.25) brightness(.7); }
.ra-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,26,43,.92) 0%, rgba(14,26,43,.62) 42%, rgba(14,26,43,.15) 75%), linear-gradient(0deg, rgba(14,26,43,.85) 0%, rgba(14,26,43,0) 35%); }
.ra-hero__lines { position: absolute; right: 0; bottom: 0; width: 360px; height: 640px; opacity: .35; }
.ra-hero__body { position: relative; height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 40px 72px; display: flex; flex-direction: column; justify-content: flex-end; gap: 26px; }
.ra-slide { display: none; flex-direction: column; gap: 26px; }
.ra-slide.is-active { display: flex; }
.ra-hero h1 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 72px; line-height: 1.08; font-weight: 400; max-width: 900px; color: #fff; }
.ra-hero p { margin: 0; font-size: 20px; line-height: 1.65; font-weight: 300; max-width: 640px; color: #D5DCE6; }
.ra-hero__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 18px; }
.ra-bar { width: 120px; padding: 10px 0; background: transparent; border: none; cursor: pointer; }
.ra-bar span { display: block; height: 3px; background: rgba(255,255,255,.35); }
.ra-bar.is-active span { background: #B5793F; }
.ra-hero__controls .ra-btn { margin-left: auto; }

/* Exclusively appellate */
.ra-intro { position: relative; overflow: hidden; }
.ra-circles { position: absolute; left: -160px; top: 120px; width: 620px; height: 620px; opacity: .5; }
.ra-intro .ra-wrap { position: relative; display: flex; flex-wrap: wrap; gap: 72px; align-items: flex-start; }
.ra-intro__text { flex: 1 1 420px; }
.ra-intro__text .ra-display { font-size: 80px; }
.ra-intro__text .ra-text { margin-top: 30px; }
.ra-glance { flex: 1 1 440px; background: #0E1A2B; color: #fff; padding: 56px 52px; display: flex; flex-direction: column; gap: 30px; margin-top: 60px; box-shadow: 0 30px 60px rgba(14,26,43,.25); }
.ra-glance__item { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid #2C3D57; padding-bottom: 26px; }
.ra-glance__item:last-child { border-bottom: none; padding-bottom: 0; }
.ra-glance__num { font-family: 'Playfair Display', Georgia, serif; font-size: 58px; line-height: 1.1; }
.ra-glance__num em { font-style: italic; }
.ra-glance__label { font-size: 15px; letter-spacing: 1.5px; color: #B9C4D3; }

/* Practice */
.ra-practice { background: #fff; }
.ra-practice__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; margin-top: 48px; }
.ra-area { display: flex; gap: 28px; padding: 30px 0; border-top: 1px solid #C9C2B6; }
.ra-area:nth-last-child(-n+2) { border-bottom: 1px solid #C9C2B6; }
.ra-area__num { font-size: 14px; font-weight: 700; letter-spacing: 2px; color: #9A6A3A; padding-top: 6px; }
.ra-area h3 { margin: 0 0 8px; font-family: Lato, system-ui, sans-serif; font-size: 23px; font-weight: 700; }
.ra-area p { margin: 0; font-size: 17px; line-height: 1.65; color: #4A5668; }

/* Record */
.ra-record .ra-wrap { display: flex; flex-wrap: wrap; align-items: center; }
.ra-record__photo { flex: 3 1 620px; height: 560px; overflow: hidden; }
.ra-record__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; filter: grayscale(1) contrast(1.25) brightness(.75); }
.ra-record__card { flex: 2 1 420px; background: #fff; padding: 60px 56px; margin-left: -120px; position: relative; box-shadow: 0 30px 60px rgba(14,26,43,.18); }
.ra-record__card .ra-text { font-size: 19px; margin-top: 22px; }

/* Courts */
.ra-courts { background: #0E1A2B; color: #fff; }
.ra-courts .ra-display { color: #fff; }
.ra-court { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; border-top: 1px solid #2C3D57; font-family: 'Playfair Display', Georgia, serif; font-size: 25px; }
.ra-court:last-child { border-bottom: 1px solid #2C3D57; }
.ra-court small { font-family: Lato, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: #8FA0B6; padding-top: 8px; }

/* Latest case law on home */
.ra-latest .wp-block-post-template { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 44px; }
.ra-latest .wp-block-post-terms, .ra-journal .wp-block-post-terms { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #4A5668; }
.ra-latest .wp-block-post-terms a, .ra-journal .wp-block-post-terms a { text-decoration: none; }
.ra-latest .wp-block-post-title { font-family: Lato, system-ui, sans-serif; font-size: 25px; font-weight: 700; font-style: italic; margin: 8px 0; }
.ra-latest .wp-block-post-title a { text-decoration: none; }
.ra-latest .wp-block-post-excerpt { font-size: 18px; line-height: 1.65; color: #2B3646; }
.ra-latest .wp-block-post-excerpt p { margin: 0; }
.ra-meta-row { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.ra-meta-row .wp-block-post-date { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: #9A6A3A; text-transform: uppercase; }

/* Contact */
.ra-contact { background: #fff; }
.ra-contact__info { font-size: 19px; display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.ra-contact .wp-block-jetpack-contact-form label, .ra-contact .grunion-field-label { font-size: 12px !important; font-weight: 700 !important; letter-spacing: 2.5px; text-transform: uppercase; color: #4A5668; }
.ra-contact input[type=text], .ra-contact input[type=email], .ra-contact textarea { width: 100%; font: inherit; font-size: 18px; padding: 12px 0; border: none !important; border-bottom: 1px solid #0E1A2B !important; border-radius: 0 !important; background: transparent !important; }
.ra-contact .wp-block-button__link, .ra-contact button[type=submit] { background: #0E1A2B !important; color: #fff !important; border: none; border-radius: 0 !important; font-size: 13px; font-weight: 700; letter-spacing: 3px; padding: 18px 34px; text-transform: uppercase; }

/* Footer */
.ra-footer { background: #0E1A2B; color: #8FA0B6; }
.ra-footer__inner { max-width: 1320px; margin: 0 auto; padding: 44px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; }
.ra-footer strong { font-weight: 700; letter-spacing: 5px; color: #fff; }

/* Blog pages */
.ra-journal-hero { background: #0E1A2B; color: #fff; position: relative; overflow: hidden; }
.ra-journal-hero .ra-wrap { padding: 100px 40px 90px; position: relative; }
.ra-journal-hero h1, .ra-journal-hero .ra-hero-h { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 84px; line-height: 1.05; font-weight: 400; font-style: italic; color: #fff; }
.ra-journal-hero p { margin: 24px 0 0; font-size: 20px; line-height: 1.7; font-weight: 300; max-width: 720px; color: #D5DCE6; }
.ra-filters { max-width: 1320px; margin: 0 auto; padding: 48px 40px 8px; }
.ra-filters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ra-filters li a { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; padding: 13px 18px; border: 1px solid #9AA3AF; }
.ra-filters li a:hover, .ra-filters li.current-cat a { background: #0E1A2B; color: #fff !important; border-color: #0E1A2B; }
.ra-journal { max-width: 1320px; margin: 0 auto; padding: 32px 40px 120px; }
.ra-journal .wp-block-post-template { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.ra-entry { background: #fff; padding: 48px 52px; display: flex; flex-wrap: wrap; gap: 48px; box-shadow: 0 12px 30px rgba(14,26,43,.08); }
.ra-entry__meta { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; }
.ra-entry__meta .wp-block-post-date { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: #9A6A3A; text-transform: uppercase; }
.ra-entry__body { flex: 3 1 620px; }
.ra-entry__body .wp-block-post-title { margin: 0 0 14px; font-family: 'Playfair Display', Georgia, serif; font-size: 36px; font-weight: 400; font-style: italic; }
.ra-entry__body .wp-block-post-title a { text-decoration: none; }
.ra-entry__body .wp-block-post-excerpt { font-size: 18px; line-height: 1.75; color: #2B3646; }
.ra-entry__body .wp-block-post-excerpt__more-link { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid #B5793F; padding-bottom: 4px; }
.ra-single { max-width: 860px; margin: 0 auto; padding: 100px 40px 120px; }
.ra-single .wp-block-post-title { font-family: 'Playfair Display', Georgia, serif; font-size: 52px; line-height: 1.12; font-weight: 400; font-style: italic; margin: 18px 0 12px; }
.ra-single .wp-block-post-content { font-size: 19px; line-height: 1.8; color: #2B3646; margin-top: 36px; }
.ra-single .wp-block-post-content > * + * { margin-top: 1.1em; }
.ra-pagination { margin-top: 48px; font-size: 13px; font-weight: 700; letter-spacing: 2px; }

@media (max-width: 900px) {
	.ra-wrap { padding: 80px 24px; }
	.ra-nav { display: none; }
	.ra-hero { height: 720px; }
	.ra-hero h1 { font-size: 44px; }
	.ra-hero__body { padding: 0 24px 56px; }
	.ra-display, .ra-intro__text .ra-display { font-size: 48px; }
	.ra-practice__grid { grid-template-columns: 1fr; }
	.ra-area:nth-last-child(2) { border-bottom: none; }
	.ra-record__card { margin-left: 0; padding: 40px 28px; }
	.ra-record__photo { height: 320px; }
	.ra-glance { padding: 40px 28px; }
	.ra-journal-hero h1, .ra-journal-hero .ra-hero-h { font-size: 56px; }
	.ra-entry { padding: 32px 24px; gap: 20px; }
	.admin-bar .ra-header { top: 46px; }
}

/* Filter row */
.ra-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ra-filters .wp-block-categories { display: flex; flex-wrap: wrap; gap: 10px; }
.ra-filters a.ra-all { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-decoration: none; padding: 13px 18px; border: 1px solid #9AA3AF; }
.ra-filters a.ra-all:hover { background: #0E1A2B; color: #fff !important; }

/* SEO headings */
.ra-hero h1.ra-h1 { font-family: Lato, system-ui, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 4px; line-height: 1.5; text-transform: uppercase; color: #E0B784; margin: 0; max-width: none; }
.ra-hero .ra-headline { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 72px; line-height: 1.08; font-weight: 400; max-width: 900px; color: #fff; }

/* FAQ */
.ra-faq { background: #ECEAE6; }
.ra-q { border-top: 1px solid #C9C2B6; padding: 26px 0; }
.ra-q:last-child { border-bottom: 1px solid #C9C2B6; }
.ra-q summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.ra-q summary::-webkit-details-marker { display: none; }
.ra-q summary::after { content: "+"; font-size: 28px; line-height: 1; color: #9A6A3A; }
.ra-q[open] summary::after { content: "–"; }
.ra-q h3 { margin: 0; font-family: Lato, system-ui, sans-serif; font-size: 22px; font-weight: 700; }
.ra-q p { margin: 16px 0 0; font-size: 18px; line-height: 1.7; color: #2B3646; max-width: 760px; }
@media (max-width: 900px) { .ra-hero .ra-headline { font-size: 44px; } }

/* Subjects (tags) */
.ra-subjects { max-width: 1320px; margin: 0 auto; padding: 24px 40px 8px; }
.ra-subjects__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #9A6A3A; margin-bottom: 14px; }
.ra-subjects .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ra-subjects .wp-block-tag-cloud a { display: inline-block; font-size: 12px !important; font-weight: 600; letter-spacing: 1px; text-decoration: none; padding: 8px 12px; border: 1px solid #C9CED6; color: #0E1A2B; margin: 0; }
.ra-subjects .wp-block-tag-cloud a:hover { background: #0E1A2B; color: #fff !important; border-color: #0E1A2B; }
.ra-archive-title { max-width: 1320px; margin: 32px auto 0; padding: 0 40px; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; font-size: 40px; color: #0E1A2B; }
.ra-tags { margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #5B6573; }
.ra-tags a { color: #0E1A2B; text-decoration: none; border-bottom: 1px solid #B5793F; }
.ra-tags--single { margin-top: 48px; padding-top: 24px; border-top: 1px solid #D9DDE3; }
.ra-single .wp-block-post-content h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; font-weight: 400; color: #0E1A2B; margin-top: 1.8em; }
.ra-single .ra-bottomline { background: #F3EEE6; border-left: 4px solid #B5793F; padding: 24px 28px; font-size: 20px; }
.ra-single .ra-disclaimer { font-size: 15px; color: #5B6573; margin-top: 2.4em; }

/* Breadcrumbs and related decisions (1.3.0) */
.ra-crumbs { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #5B6675; margin: 0 0 28px; }
.ra-crumbs a { color: #5B6675; text-decoration: none; }
.ra-crumbs a:hover { color: #0E1A2B; text-decoration: underline; }
.ra-related { margin-top: 56px; padding-top: 32px; border-top: 1px solid #C9C4BA; }
.ra-related h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: 26px; margin: 0 0 16px; }
.ra-related ul { list-style: none; margin: 0; padding: 0; }
.ra-related li { padding: 10px 0; border-bottom: 1px solid #E0DCD4; }
.ra-related li a { color: #0E1A2B; font-weight: 700; text-decoration: none; }
.ra-related li a:hover { text-decoration: underline; }
.ra-related__meta { color: #5B6675; font-size: 14px; }
