/* Shared link components. Page layouts must not override these visual rules. */
:root {
 --rc-text-link-size:14px;
 --rc-menu-link-size:15px;
 --rc-header-link-size:14px;
 --rc-footer-link-size:12px;
 --rc-text-action-gap:12px;
 --rc-link-padding-top:6px;
 --rc-link-padding-bottom:2px;
 --rc-link-line-height:1.25;
}
/* Standalone editorial links, including imported source actions. */
html body main :is(a.text-link,a.rc-case-read-more,.source-button > a,.rc-production-example-body > a,.rc-documentary-case-link > a):not(:where(nav a,aside a,.rc-services-menu a,.rc-local-menu a,.rc-creative a)) {
 display:inline-flex; align-items:center; width:fit-content; max-width:100%; min-height:0;
 margin:0; padding:var(--rc-link-padding-top) 0 var(--rc-link-padding-bottom);
 font-family:inherit; font-size:var(--rc-text-link-size); font-weight:400; line-height:var(--rc-link-line-height);
 color:var(--green); background:transparent; border:0; border-bottom:1px solid var(--green);
 border-radius:0; box-shadow:none; text-decoration:none; text-align:left; transform:none;
}
html body main :is(a.text-link,a.rc-case-read-more,.source-button > a,.rc-production-example-body > a):not(:where(nav a,aside a,.rc-services-menu a,.rc-local-menu a,.rc-creative a)):is(:hover,:focus-visible) {
 color:var(--dusty-blue); background:transparent; border-bottom-color:var(--green); transform:none;
}
html body main :is(a.text-link,a.rc-case-read-more,.source-button > a,.rc-production-example-body > a):focus-visible {
 outline:2px solid var(--green);outline-offset:4px;
}
/* A single gap belongs to the action, never to both the paragraph and link. */
main :is(.source-copy,.rc-home-experience,.rc-documentary-copy,.rc-case-description-copy,.rc-case-excerpt,.rc-trailer-section) > p:has(+ :is(.source-button,a.text-link,a.rc-case-read-more,p:has(> a.text-link:only-child))) {margin-bottom:0;}
main :is(.source-copy,.rc-home-experience,.rc-documentary-copy,.rc-case-description-copy,.rc-case-excerpt,.rc-trailer-section) > p + :is(.source-button,a.text-link,a.rc-case-read-more),
main :is(.source-copy,.rc-case-description-copy,.rc-case-excerpt) > p:has(> a.text-link:only-child) {margin-top:var(--rc-text-action-gap);}
main .source-copy > p > a.text-link:only-child {margin-top:0;}
main .source-unit.source-text:has(+ .source-unit.source-button),
main .source-unit.source-text:has(+ a.text-link) {margin-bottom:0;}
main .source-unit.source-text:has(+ :is(.source-unit.source-button,a.text-link)) > .source-copy > :last-child {margin-bottom:0;}
main .source-unit.source-text + :is(.source-unit.source-button,a.text-link) {margin-top:var(--rc-text-action-gap);}
main .rc-feed-post-copy:has(+ .rc-feed-post-action) .source-copy > :last-child {margin-bottom:0;}
main .rc-documentary-feature-copy {gap:var(--rc-text-action-gap);}
main .source-unit.source-text:has(+ .rc-documentary-case-link) > .source-copy > :last-child {margin-bottom:0;}
main .rc-ad-production-contact {margin:var(--rc-text-action-gap) 0 0;}
/* Adjacent links are one compact group, rather than separate text sections. */
main .rc-case-excerpt > p.rc-case-service-link:has(> a.text-link:only-child) {margin:4px 0 0;}
main .rc-case-platform-links {gap:0;--rc-link-padding-bottom:0px;margin-top:var(--rc-text-action-gap);}
main .rc-project-references-link {margin-top:var(--rc-text-action-gap);}
/***** Navigation and inline links keep their semantic layout. *****/
html body :is(.rc-services-menu,.rc-local-menu,.rc-project-type-menu,.rc-project-menu,.page-sidebar) a {font-size:var(--rc-menu-link-size);}
html body header #main-nav :is(a,.nav-toggle) {font-size:var(--rc-header-link-size);}
html body main .rc-hero-links > a.text-link {font-size:15px;white-space:nowrap;flex:0 0 auto;}
html body main .source-copy p a:not(:where(.text-link,.rc-case-read-more,[href^="mailto:"],[href^="tel:"])) {font-size:calc(1em + 1px);}
.home main .home-restoration [data-source-id="186A22E1-40DF-4989-A5DE-F082F480BCBA"] p a[href$="/videoproduktion/"] {font-weight:700;}
html body main .rc-film-caption a {font-size:14px;}
html body :is(footer,.source-footer) a {font-size:var(--rc-footer-link-size);}
html body main .rc-creative .source-copy a:is([href^="mailto:"],[href^="tel:"],[href*="linkedin.com"]) {font-size:16px;}
@media (prefers-reduced-motion:reduce) {html body main a {transition:none;}}
/* Frontend links use colour and focus outlines, without text underlines.
   Full card and button frames remain structural borders. */
html body:not(.wp-admin) :is(header,main,footer,.source-footer) a,
html body:not(.wp-admin) :is(header,main,footer,.source-footer) a * {
 text-decoration:none !important;
}
html body:not(.wp-admin) :is(header,main,footer,.source-footer) a:not(:where([class*="card"],.button,.page-numbers,.project-arrow)) {
 border-bottom-style:none !important;
}
/* Left navigation separators are structural blue rules, not link underlines. */
html body:not(.wp-admin) main :is(.rc-services-menu,.rc-local-menu,.rc-project-menu,.rc-home-navigation,.page-sidebar) {
 row-gap:0; column-gap:0; width:100%;
}
html body:not(.wp-admin) main :is(.rc-services-menu,.rc-local-menu,.rc-project-menu,.rc-home-navigation,.page-sidebar) :is(.source-unit,.source-button) {
 margin-block:0;
}
html body:not(.wp-admin) main :is(.rc-services-menu,.rc-local-menu,.rc-project-menu,.rc-home-navigation,.page-sidebar) a {
 display:flex; flex-direction:column; align-items:flex-start; justify-content:center; text-align:left; box-sizing:border-box; width:100%;
 margin-block:0 !important; padding:12px 0 !important; line-height:1.32;
 border-bottom:1px solid var(--line) !important; text-decoration:none !important;
}
html body:not(.wp-admin) main :is(.rc-services-menu,.rc-local-menu,.rc-project-menu,.rc-home-navigation,.page-sidebar) > a:first-of-type,
html body:not(.wp-admin) main :is(.rc-services-menu,.rc-local-menu,.rc-home-navigation) > .source-unit:first-child a {
 border-top:1px solid var(--line);
}
/* The homepage shortcuts share the theme's green animated underline. */
html body.home main .hero .rc-hero-links > a.text-link {
 position:relative; width:fit-content; flex:0 0 auto;
}
html body.home main .hero .rc-hero-links > a.text-link::after {
 content:''; position:absolute; left:0; right:0; bottom:0; height:2px;
 background:var(--green); pointer-events:none;
 transform:scaleX(0); transform-origin:left center; transition:transform 240ms ease-out;
}
html body.home main .hero .rc-hero-links > a.text-link:is(:hover,:focus-visible)::after {transform:scaleX(1);}
@media(prefers-reduced-motion:reduce) {
 html body.home main .hero .rc-hero-links > a.text-link::after {transition:none;}
}
/* References: role filters form a separate group below the local section links. */
html body:not(.wp-admin) main .rc-local-menu > .rc-reference-role-links {
 display:flex; flex-direction:column; gap:0; margin-top:28px; width:100%;
}
html body:not(.wp-admin) main .rc-reference-role-links > a:first-child {border-top:1px solid var(--line);}

html body:not(.wp-admin) main .rc-reference-role-links > a {color:var(--green);}

/* A destination link and a separate submenu control share one header row. */
header #main-nav > .rc-split-nav {display:flex;align-items:center;flex-wrap:wrap;}
header #main-nav > .rc-split-nav > .nav-toggle {display:grid;place-items:center;width:auto;min-width:24px;padding:0;border:0;background:transparent;cursor:pointer;}
header #main-nav > .rc-split-nav > .nav-toggle > span {display:block;margin:0;}
header #main-nav > .rc-split-nav > .nav-toggle > .rc-mobile-dropdown-label {display:none;}
@media (min-width:701px) and (hover:hover) and (pointer:fine) {
 header #main-nav > .rc-split-nav > .nav-toggle:not(:focus-visible) {
  position:absolute;width:1px;height:1px;min-width:0;clip-path:inset(50%);overflow:hidden;
 }
}
@media (min-width:701px) {
 header #main-nav > .rc-split-nav > .nav-panel {max-height:calc(100dvh - var(--site-header-height) - 12px);overflow:auto;}
}
@media (max-width:700px) {
 body > header #main-nav.open {padding-block-start:22px;}
 header #main-nav > .rc-split-nav:not(.rc-projects-nav) {border-top:1px solid var(--rc-blue-raised);}
 header #main-nav > .rc-split-nav:not(.rc-projects-nav) > .rc-direct-nav-link,
 header #main-nav > .rc-projects-nav > :is(.nav-toggle,.nav-panel) {display:none;}
 header #main-nav > .rc-split-nav:not(.rc-projects-nav) > .nav-toggle,
 header #main-nav.rc-mobile-submenu-open > .rc-split-nav.rc-mobile-active-group:not(.rc-projects-nav) > .nav-toggle {
  display:grid;width:100%;justify-content:end;min-height:0;padding:8px 16px;
 }
 header #main-nav > .rc-split-nav > .nav-toggle > span {display:none;}
 header #main-nav > .rc-split-nav > .nav-toggle > .rc-mobile-dropdown-label {
  display:block;color:inherit;font-size:inherit;
 }
}
