/* The Clansmen — shared shell and Traders, adapted from frontend V61. */
:root { --blue: #1b558e; --line: #345d86; --bg: #080e14; --panel: #111a23; --text: #e6edf4; --muted: #a4b0bd; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #080a0d; color: var(--text); font: 14px Arial, sans-serif; }
body {
    background-color: #0a0c0e;
    background-image: radial-gradient(ellipse at 14% 22%, rgba(94,100,104,.105), transparent 38%), radial-gradient(ellipse at 86% 70%, rgba(73,80,86,.09), transparent 42%), repeating-linear-gradient(118deg, transparent 0px, rgba(255,255,255,.011) 1px, transparent 2px, transparent 11px), repeating-linear-gradient(24deg, transparent 0px, rgba(0,0,0,.15) 1px, transparent 3px, transparent 17px);
    background-attachment: fixed;
}
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid #91b4e6; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 12px; background: #173b5b; }
.skip-link:focus { top: 12px; }
.site { max-width: 1120px; margin: 24px auto; background: var(--bg); border: 1px solid #233c50; min-height: 650px; }
.site { box-shadow: 0 10px 45px rgba(0,0,0,.42); }
.banner { display: block; background: #000; text-align: center; margin: 0; width: 100%; }
.banner img { display: block; width: 100%; max-width: 100%; height: auto; margin: auto; }
.nav { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; background: #101a25; border-block: 1px solid var(--line); }
.nav > a, .nav .dropdown > button { padding: 13px 14px; background: transparent; border: 0; display: flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; font-weight: bold; }
.nav a:hover, .nav button:hover, .nav .selected { background: #173b5b; text-decoration: none; }
.icon { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; width: 20px; height: 20px; flex: none; }
.icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dropdown { position: relative; }
.dropdown > button { height: 100%; }
.submenu-indicator { display: block; width: 16px; height: 16px; flex: none; align-self: center; margin-left: 2px; color: inherit; transform: rotate(0deg); transition: transform 180ms ease; }
[aria-expanded="true"] > .submenu-indicator { transform: rotate(90deg); }
.submenu { position: absolute; z-index: 20; top: 100%; left: 0; min-width: 215px; background: #121e2b; border: 1px solid var(--line); box-shadow: 0 7px 16px #0009; }
.submenu a { display: flex; align-items: center; gap: 10px; padding: 13px; border-bottom: 1px solid #283a4a; }
.submenu a:hover { background: #203b54; }
.fallback-nav { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px; }
.mobilebar, .mobilemenu { display: none; }
.content { padding: 22px 24px 34px; }
.crumb { font-size: 12px; color: #a6b7c6; margin-bottom: 18px; }
.cms-page { max-width: 880px; margin: 0 auto; padding: 4px 0 38px; }
.cms-page .eyebrow { color: #9db8df; letter-spacing: .09em; font-size: 12px; text-transform: uppercase; }
.cms-page h1 { font-size: clamp(25px, 3vw, 34px); margin: 8px 0 12px; }
.cms-copy { font-size: 15px; line-height: 1.8; color: #d5d9e5; overflow-wrap: anywhere; }
.cms-copy p { margin: 0 0 16px; }
.cms-copy a { color: #b2cff4; }
.cms-copy img { max-width: 100%; height: auto; }
.community-page { max-width: 1080px; margin: auto; }
.community-page h1 { margin: 8px 0; }
.community-page .lead { color: #aebfd0; margin: 0 0 25px; }
.community-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 20px 0; }
.community-tools input, .community-tools select { background: #101d2a; color: #edf3f9; border: 1px solid #35506a; border-radius: 4px; padding: 11px 12px; font: inherit; min-width: 0; }
.community-tools input { flex: 1; min-width: 180px; }
.community-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.community-tabs button, .community-button { display: inline-block; background: #101e2d; border: 1px solid #345674; border-radius: 4px; color: #dce9f4; padding: 10px 17px; font: inherit; cursor: pointer; }
.community-tabs button.active, .community-tabs button:hover, .community-button:hover { background: #173b5b; color: white; }
.community-summary { color: #9fb2c4; font-size: 13px; margin: 12px 0; }
.trader-table-wrap { overflow-x: auto; }
.trader-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.trader-table th { text-align: left; background: #172b3d; color: #cbd8e4; padding: 12px; border-bottom: 1px solid #39536a; }
.trader-table td { padding: 13px 12px; border-bottom: 1px solid #26394b; vertical-align: middle; overflow-wrap: anywhere; }
.trader-table tbody tr:nth-child(odd) { background: #14212c; }
.trader-table a { color: #8bb8e5; }
.trader-table .trader-trade-total { font-weight: 700; color: #e5effa; text-align: center; }
.trader-cards { display: none; }
.trader-card { border: 1px solid #30475b; background: #101b27; border-radius: 5px; padding: 14px; margin: 10px 0; }
.trader-card strong { display: block; font-size: 17px; margin-bottom: 7px; }
.trader-card dl { margin: 0; }
.trader-card .detail { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; overflow-wrap: anywhere; }
.trader-card dt { color: #a5b9cc; }
.trader-card dd { margin: 0; text-align: right; min-width: 0; }
.community-note { font-size: 13px; color: #9fb2c4; margin-top: 20px; line-height: 1.6; }
.trader-detail { max-width: 880px; }
.trader-status { display: inline-block; padding: 5px 8px; border: 1px solid; border-radius: 5px; font-size: 12px; letter-spacing: .04em; }
.trader-detail .trader-status--good { color: #78c99b; background: #0d241b; border-color: #285c44; }
.trader-detail .trader-status--bad { color: #f09b9b; background: #2b1419; border-color: #713b3b; }
.trader-detail .trader-status--neutral { color: #a5b9cc; background: #101d2a; border-color: #35506a; }
.trader-detail > dl { border: 1px solid #2d4559; background: #0e1924; border-radius: 5px; padding: 23px; display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); gap: 14px 18px; }
.trader-detail dt { color: #a5b9cc; }
.trader-detail dd { margin: 0; overflow-wrap: anywhere; }
.trader-detail a { color: #8bb8e5; }
.trader-notes { margin: 24px 0 32px; }
.trader-notes h2 { font-size: 19px; color: #f2f5fc; }
.trader-notes-copy { line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.trader-notes-copy p { margin: 0 0 1.1em; }
.trader-notes-context { border-top: 1px solid #26394b; padding-top: 14px; margin-top: 18px; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 1px solid #345674; border-radius: 4px; background: #101e2d; color: #dce9f4; font: inherit; cursor: pointer; text-decoration: none; }
.action:hover { background: #173b5b; color: white; text-decoration: none; }
.action--primary { background: #1b558e; }
.action--danger { color: #f09b9b; border-color: #713b3b; }
.action:disabled, .action[aria-disabled=true] { opacity: .45; cursor: default; }
.content-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 24px; }
.content-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center; padding: 20px; border: 1px solid #2c3b4e; background: rgba(11,20,33,.55); min-width: 0; color: #d9e5f2; }
a.content-card:hover, a.content-card:focus-visible { background: #173b5b; border-color: #3c6b97; text-decoration: none; }
.content-card-logo { max-width: 100%; width: auto; height: 112px; object-fit: contain; display: block; margin: 0 auto 5px; }
.content-card-icon .icon { width: 38px; height: 38px; color: #9dbdd8; margin-bottom: 18px; }
.content-card h2 { font-size: 17px; margin: 0; color: #d9e5f2; }
.content-card-description { white-space: pre-line; color: #b9c3d1; font-size: 13px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.content-card-action { margin-top: auto; padding-top: 18px; }
.about-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 30px 0 38px; font-size:14px; line-height:normal; }
@media(max-width:1000px) { .about-timeline { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.about-milestone { padding: 21px 18px; border: 1px solid #2c3b4e; border-top: 2px solid #1b558e; background: rgba(11,20,33,.55); text-align: center; }
.about-milestone strong, .about-milestone span { display: block; }
.about-milestone strong { color: #e6edf6; font-size: 29px; letter-spacing: .03em; }
.about-milestone span { color: #b6d4f0; font-weight: 700; margin: 5px 0 10px; }
.about-milestone p { font-size: 13px; color: #b9c3d1; line-height: 1.6; margin: 0; }
.about-projects-title, .about-projects-intro { text-align: center; }
.about-signoff { text-align: center; font-weight: 700; color: #c6d7e8; font-style: italic; margin: 35px 0 8px; }
@media(max-width: 700px) { .content-cards, .about-timeline { grid-template-columns: minmax(0, 1fr); } .content-card-logo { height: 95px; } }
.footer { border-top: 2px solid var(--blue); background: #0d151d; padding: 22px 24px 16px; }
/* Front V61: real homepage and contact data, without prototype controls. */
.eyebrow { color: #9db8df; letter-spacing: .09em; font-size: 12px; text-transform: uppercase; }
.home-intro { padding: 20px 30px; border: 1px solid #28445b; background: linear-gradient(110deg,#152435,#0b131c 78%); margin-bottom: 31px; }
.home-intro h1 { font-size: 28px; margin: 8px 0 12px; }
.home-intro > .eyebrow, .home-heading .eyebrow { color: var(--text); }
.home-intro > p { color: #b5c4d0; line-height: 1.7; margin: 0 0 10px; }
.home-intro .cms-copy { margin: 24px 0 0; }
.home-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: -17px 0 28px; }
.meta-cell { background: #0e1720; border: 1px solid #29455d; padding: 15px 19px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.meta-label { color: #9bb2c7; font-size: 11px; letter-spacing: .11em; font-weight: bold; text-transform: uppercase; }
.meta-cell strong { font-size: 17px; }
.status-word { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; background: currentColor; border-radius: 50%; flex: none; }
.status-open { color: #a4c8ad; }.status-slow { color: #c6b77e; }.status-selective { color: #b0b7d3; }.status-closed { color: #c89696; }.status-neutral { color: #c5d3df; }
.home-section { margin: 0 0 35px; min-width: 0; }
.home-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.home-heading h2 { font-size: 20px; margin: 5px 0 0; }
.home-categories { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.home-categories > a, .category-projects { padding: 20px 18px; border: 1px solid #2a4359; background: #101a24; display: flex; flex-direction: column; gap: 9px; min-width: 0; transition: border-color .15s,background .15s; }
.home-categories > a:hover { background: #162b3d; border-color: #5c87a8; text-decoration: none; }
.home-categories strong { font-size: 17px; }.home-categories span:not(.category-icon) { color: #b5c4d0; }.home-categories small, .category-projects a { color: #8fb9df; }
.category-icon { color: #8fb9df; display: flex; align-items: center; height: 30px; }.category-icon .icon { width: 29px; height: 29px; }
.home-tablewrap { overflow-x: auto; border: 1px solid #28445b; }.home-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.home-table th { text-align: left; color: #a5b6c5; background: #152331; padding: 12px 13px; border-bottom: 1px solid #2d4c65; font-size: 12px; }
.home-table td { padding: 13px; border-bottom: 1px solid #22394d; }.home-table tr:last-child td { border-bottom: 0; }.home-table tbody tr:hover { background: #122230; }
.home-table td a { color: #dce9f5; font-weight: bold; }
.home-latest-mobile { display: none; }.home-logos { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: center; gap: 24px; padding: 20px 8px; }
.band-slide { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 70px; }.band-slide img { max-width: 100%; height: auto; max-height: 75px; object-fit: contain; }
.contact-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(240px,1fr); gap: 26px; }.community-page .lead { color: #aebfd0; margin: 0 0 25px; line-height: 1.65; }
.contact-panel { min-width: 0; border: 1px solid #30475b; background: #101b27; border-radius: 5px; padding: 24px; }.contact-panel h2 { margin: 0 0 20px; font-size: 19px; }
.contact-form { display: grid; gap: 16px; }.contact-form label { display: grid; gap: 8px; color: #c9d7e4; }.contact-form input, .contact-form textarea, .contact-form select { background: #101d2a; color: #edf3f9; border: 1px solid #35506a; border-radius: 4px; padding: 11px 12px; font: inherit; width: 100%; min-width: 0; }.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-verification { min-width: 0; max-width: 100%; min-height: 84px; overflow-x: auto; padding: 6px; }
.contact-form .action { justify-self: start; }.contact-help p { color: #aebfd0; line-height: 1.7; }.contact-help a { color: #9ac5e8; }.google-message { font-size: 12px; line-height: 1.6; color: #aebfd0; margin: 0; }
.contact-status { margin: 0 0 16px; line-height: 1.6; }.contact-status.success { color: #a5d9a6; }.contact-status.error { color: #f0aaa5; }
.offline-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }.offline-panel { width: min(100%,700px); padding: 35px; border: 1px solid #345d86; background: #111a23; }.offline-panel h1 { font-size: 28px; margin: 12px 0 20px; }
@media (max-width: 760px) {
    .home-intro { padding: 20px 17px; }.home-intro h1 { font-size: 23px; }.home-meta, .home-categories, .contact-layout { grid-template-columns: minmax(0,1fr); }
    .home-tablewrap { display: none; }.home-latest-mobile { display: grid; grid-template-columns: minmax(0,1fr); gap: 9px; }
    .latest-card { min-width: 0; border: 1px solid #30475d; background: #111c27; padding: 12px 13px; }.latest-card:hover { text-decoration: none; background: #162b3d; }
    .latest-card-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; }.latest-card-head span, .latest-card > small { font-size: 12px; color: #aabccc; }
    .latest-card-location { margin: 9px 0 11px; font-size: 13px; color: #c6d3de; overflow-wrap: anywhere; }.latest-card-bottom { border-top: 1px solid #263b4d; padding-top: 9px; display: flex; justify-content: space-between; gap: 12px; color: #b6c7d5; font-size: 12px; }.latest-card > small { display: block; margin-top: 8px; }
    .home-heading h2 { font-size: 18px; }.contact-panel { padding: 18px; }
}
@media (max-width: 1024px) {
    .home-logos { --logos-visible: 4; display: flex; gap: 0; padding: 10px 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
    .home-logos::-webkit-scrollbar { display: none; }
    .home-logos .band-slide { flex: 0 0 calc(100% / var(--logos-visible)); width: calc(100% / var(--logos-visible)); min-height: 99px; padding: 12px 13px; scroll-snap-align: start; }
}
@media (max-width: 768px) { .home-logos { --logos-visible: 3; } }
@media (max-width: 540px) { .home-logos { --logos-visible: 2; } }
@media (prefers-reduced-motion: reduce) { .home-logos { scroll-behavior: auto; } }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.footer-links section { min-width: 0; padding: 0 18px; border-right: 1px solid var(--line); }
.footer-links section:last-child { border-right: 0; }
.footer-links h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 9px; font-size: 14px; color: #c6daef; }
.footer-links .icon { color: #9dbdd8; }
.footer-links a { display: block; color: #b7c5d2; font-size: 13px; margin: 8px 0; }
.site-footer-text { font-size: 13px; color: #aabac9; margin-top: 24px; text-align: center; }
.footer-copyright { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 14px; text-align: center; color: #aabac9; font-size: 12px; }
.footer-copyright h4 { margin: 0; font-size: inherit; font-weight: normal; }
.license-error { color: #d47d7d; }
@media (max-width: 760px) {
    body { background-image: linear-gradient(#0b0e11, #0b0e11); background-attachment: scroll; }
    .site { margin: 0 auto; }
    .content { padding: 14px; }
    .nav { display: none; }
    .mobilebar { display: flex; background: #111d28; border-block: 1px solid var(--line); align-items: center; justify-content: space-between; }
    .mobilebar button, .mobilebar a { border: 0; background: transparent; padding: 11px 18px; display: inline-flex; }
    .mobilemenu { display: grid; background: #172533; padding: 8px; }
    .mobilemenu a { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid #30465b; }
    .mobilemenu .selected { background: #173b5b; }
    .cms-page { padding: 0 0 24px; min-width: 0; }
    .cms-page h1 { font-size: 25px; }
    .cms-copy { font-size: 14px; }
    .trader-table-wrap { display: none; }
    .trader-cards { display: block; }
    .community-tools { align-items: stretch; }
    .community-tools input { width: 100%; flex-basis: 100%; }
    .community-tools select { flex: 1; }
    .trader-detail > dl { grid-template-columns: 1fr; gap: 9px; padding: 17px; }
    .trader-detail dd { margin-bottom: 12px; }
    .footer-links { grid-template-columns: 1fr; gap: 16px; }
    .footer-links section { border-right: 0; border-bottom: 1px solid #30465b; padding: 0 0 12px; }
    .footer-links section:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
