/* Shared presentation for every current RuneLink prototype. */
body { min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1; }
[hidden] { display: none !important; }

/* Keep links as links; make secondary actions unmistakably clickable. */
:root :is(.text-button, .section-link, .hero-link),
body .skill-picker button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #a18551;
  border-radius: 3px;
  background: linear-gradient(#3d3325, #272018);
  box-shadow: inset 0 0 0 2px #19150f, inset 0 3px #d2b57b24, 0 2px 5px #0004;
  color: #efdbb3;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 1px #000;
  text-decoration: none;
  white-space: normal;
}
:root :is(.text-button, .section-link, .hero-link):hover,
body .skill-picker button:hover {
  border-color: #e6cd97;
  background: linear-gradient(#51412c, #352a1d);
  color: #fff0cf;
}
:root :is(.text-button, .section-link, .hero-link):disabled {
  opacity: .5;
  cursor: default;
}
:root :is(.text-button, .section-link, .hero-link) svg { flex-shrink: 0; }
.site-header #main-nav { gap: 10px; }
.site-header .nav-link {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; min-height: 44px; padding: 10px 12px;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  color: #e5d4b4; line-height: 1.4; text-decoration: none;
}
.site-header .nav-link:hover { background: none; color: #ffebc2; text-decoration: underline; text-underline-offset: 7px; }
.site-header .nav-link.is-current { background: none; color: #ffdf9f; text-decoration: underline; text-decoration-color: #b79658; text-underline-offset: 7px; }
.site-header #main-nav .nav-link::after { display: none; }
.site-header #main-nav .sign-in { min-width: 0; margin-left: 0; font-size: 13px; }
.site-header #main-nav .sign-in svg { display: none; }
.site-header .menu-toggle { border: 0; background: none; box-shadow: none; }
.site-header .menu-toggle:hover { background: none; color: #ffebc2; }
.hero-actions { flex-wrap: wrap; gap: 14px; }
.hero-actions .hero-link { min-height: 47px; }
.section-heading .section-link { flex-shrink: 0; }
.calendar-navigation { flex-wrap: wrap; }
.search-field .clear-search,
.member-search-field .text-button { min-height: 36px; min-width: 36px; padding: 4px; border: 1px solid #8b734b; border-radius: 2px; background: #342b20; color: #efdbb3; }
.events-hero-copy { padding-top: 42px; }

/* A broad, quiet closing panel: identity, fan-project notice and credits. */
.site-footer {
  display: block; position: relative; padding: 36px 0 0;
  border-top: 1px solid #8a7045;
  background: radial-gradient(ellipse at 50% 0, #4c382224, transparent 65%), #15110d;
  color: #c7b99e; font-size: 12px; line-height: 1.75;
  text-align: left;
}
.site-footer::before { content: ''; position: absolute; top: 3px; left: 0; right: 0; border-top: 1px solid #79613b40; }
.site-footer .footer-inner { display: block; width: min(1340px, calc(100% - 64px)); margin: auto; }
.footer-main { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 42px; align-items: start; padding-bottom: 26px; }
.footer-identity .brand { gap: 10px; }
.footer-identity .brand span { font-size: 29px; }
.footer-identity .brand svg { width: 30px; height: 38px; }
.footer-identity p { margin: 10px 0 0; max-width: 220px; font-size: 12px; color: #bdad91; }
.footer-notice { text-align: center; }
.footer-notice .eyebrow { margin: 5px 0 12px; font-size: 10px; letter-spacing: 2px; color: #d6bc88; }
.footer-notice p:last-child { margin: 0; font-size: 12px; color: #c7b99e; }
.footer-credit { text-align: right; }
.footer-credit p { margin: 0; font-size: 11px; color: #bbaa8b; }
.footer-credit img { display: block; width: 180px; max-width: 100%; height: auto; margin: 12px 0 12px auto; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #dbc49a; font-size: 12px; text-decoration: underline; text-decoration-color: #8d734a; text-underline-offset: 5px; }
.footer-links a:hover { color: #fff0cf; text-decoration-color: currentColor; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 0; border-top: 1px solid #7d623438; }
.footer-bottom > .brass-button { font-size: 11px; padding-inline: 13px; }

.information-main { width: min(900px, calc(100% - 64px)); margin: auto; padding: 55px 0 65px; }
.information-heading { text-align: center; margin-bottom: 28px; }
.information-heading h1 { font-size: clamp(36px, 5vw, 48px); margin-bottom: 14px; }
.information-heading > p:last-child { color: var(--muted); }
.information-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.information-panel { padding: 30px; margin: 0 0 24px; border: 1px solid var(--edge); background: linear-gradient(125deg, #30291f, #211c16); box-shadow: inset 0 0 0 3px #17130e; scroll-margin-top: 24px; }
.information-panel:target { border-color: var(--gold-bright); }
.information-panel h2 { color: var(--gold-bright); font-size: 30px; margin-bottom: 15px; }
.information-panel h3 { color: #e5d1a8; font: 20px/1.4 var(--serif); margin: 25px 0 9px; }
.information-panel p { color: #cdbfa4; margin-bottom: 14px; }
.information-panel p:last-child { margin-bottom: 0; }
.information-panel a:not(.brass-button) { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.information-panel .preview-note { margin-bottom: 0; }

@media (max-width: 1000px) {
  .site-header .header-inner { gap: 18px; }
  .site-header .nav-link { padding-inline: 12px; }
  .footer-main { gap: 25px; grid-template-columns: 1fr 1.5fr; }
  .footer-credit { grid-column: 1 / -1; text-align: center; }
  .footer-credit img { margin-inline: auto; }
}
@media (max-width: 700px) {
  .site-header #main-nav { gap: 10px; }
  .site-header #main-nav .nav-link { text-align: center; }
  .site-header #main-nav .sign-in { margin-top: 0; }
  .site-footer { padding: 30px 0 0; }
  .site-footer .footer-inner { width: calc(100% - 40px); }
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding-bottom: 22px; }
  .footer-identity, .footer-credit { text-align: center; }
  .footer-identity p { max-width: none; }
  .footer-notice { max-width: 500px; margin: auto; }
  .footer-credit { grid-column: auto; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; width: 100%; }
  .footer-bottom { justify-content: flex-start; text-align: left; }
  .information-main { width: calc(100% - 40px); padding-block: 36px; }
  .information-panel { padding: 24px; }
}

/* The conditional Admin entry needs room before the existing phone menu opens. */
@media (min-width:701px) and (max-width:1000px) {
  .site-header .header-inner { width:calc(100% - 40px); gap:12px; }
  .site-header .brand { gap:8px; }
  .site-header .brand span { font-size:25px; }
  .site-header .brand svg { width:27px; }
  .site-header #main-nav { gap:6px; }
  .site-header .nav-link { padding-inline:8px; font-size:12px; }
  .site-header .sign-in { min-width:0; padding-inline:10px; gap:7px; font-size:11px; }
}

/* A public, manually maintained clan attribute. */
.recruitment-badge { display:inline-flex; align-items:center; gap:7px; max-width:100%; border:1px solid #6e7954; background:#293024; color:#d2dbb8; padding:4px 9px; font:11px/1.5 var(--body); letter-spacing:.2px; }
.recruitment-badge > span { font-size:8px; }
.recruitment-badge.is-closed { border-color:#766143; background:#2b241b; color:#c7b79a; }
.clan-copy > .recruitment-badge, .clan-identity > .recruitment-badge { margin:0 0 10px; }
#sample-recruitment { margin-top:10px; }
/* Separate clan-owner and app-admin entries use the menu at tablet widths. */
@media(min-width:701px) and (max-width:1050px){
 .site-header .header-inner{flex-wrap:wrap;gap:0;min-height:73px;}
 .site-header .menu-toggle{display:inline-flex;gap:8px;padding-inline:12px;}
 .site-header .menu-icon{width:14px;height:10px;border-block:1px solid currentColor;position:relative;}
 .site-header .menu-icon:after{content:'';position:absolute;left:0;top:4px;width:14px;border-top:1px solid currentColor;}
 .site-header #main-nav{display:none;width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px 0 18px;border-top:1px solid #655132;}
 .site-header #main-nav.is-open{display:grid;}
 .site-header #main-nav .nav-link{justify-content:center;text-align:center;}
 .site-header #main-nav .nav-link.is-current:after{display:none;}
}
