/* ============================================================================
   organization skin (#8802)
   ============================================================================
   The presentation of an organization's own address. Loaded ONLY there (it is
   no club skin: no club can choose it), after app.css and the scoped component
   bundle and before the organization's token block, so a rule here beats a
   scoped component rule of equal specificity and the tokens still win.

   EVERY rule in this file is under [data-skin="organization"], which only the
   organization's layout renders, so nothing here can reach a club's site.

   The design language is the organization's own public site: Bebas Neue in
   capitals over Montserrat text, the navy brand ground with the accent for
   rules and edges, white cards raised off a pale ground under a navy edge.
   Colors are the tokens the organization's presentation declares; the header
   and the footer are the layout's own (OrganizationLayout.razor.css).
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. Ground and type
   ---------------------------------------------------------------------------- */

[data-skin="organization"] {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-background);
    /* The display face has one weight. A shared component that asks for bold gets
       the face itself, never a synthetic smear; an italic is still drawn. */
    font-synthesis: style;
}

[data-skin="organization"] h1,
[data-skin="organization"] h2,
[data-skin="organization"] h3,
[data-skin="organization"] h4,
[data-skin="organization"] h5,
[data-skin="organization"] h6 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.05em;
}

[data-skin="organization"] p,
[data-skin="organization"] li,
[data-skin="organization"] label,
[data-skin="organization"] input,
[data-skin="organization"] select,
[data-skin="organization"] textarea {
    font-family: var(--font-sans);
}

/* A link in running text - inside a paragraph or a list item - is underlined, as on the
   public site, so it is never told by its color alone. A card that is itself a link is no
   running text: an underline there would run under its every line. */
[data-skin="organization"] .section-body :is(p, li) a:not(.btn),
[data-skin="organization"] .content-card-body :is(p, li) a:not(.btn) {
    color: var(--wilson-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

[data-skin="organization"] .section-body :is(p, li) a:not(.btn):hover,
[data-skin="organization"] .content-card-body :is(p, li) a:not(.btn):hover {
    color: var(--color-dark);
    text-decoration-thickness: 2px;
}

/* ----------------------------------------------------------------------------
   2. The ONE page hero: the brand ground, left-aligned, no watermark
   ---------------------------------------------------------------------------- */

[data-skin="organization"] .page-hero,
[data-skin="organization"] .admin-hero {
    background: var(--color-dark);
    min-height: 0;
    padding: clamp(2rem, 6vw, 3.75rem) 2rem clamp(2rem, 5vw, 3rem);
}

[data-skin="organization"] .page-hero::before,
[data-skin="organization"] .admin-hero::before {
    content: none;
}

[data-skin="organization"] .page-title,
[data-skin="organization"] .admin-title {
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1;
}

[data-skin="organization"] .page-subtitle,
[data-skin="organization"] .admin-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

[data-skin="organization"] .hero-eyebrow .back-link {
    color: var(--accent-text-on-dark);
}

[data-skin="organization"] .hero-eyebrow .back-link:hover {
    color: #ffffff;
}

[data-skin="organization"] .hero-badge {
    border-radius: 999px;
}

/* ----------------------------------------------------------------------------
   3. The ONE section rhythm: a display title over a short accent rule
   ---------------------------------------------------------------------------- */

[data-skin="organization"] .page-section {
    background: var(--color-background);
}

[data-skin="organization"] .page-section-tinted {
    background: var(--color-surface);
}

[data-skin="organization"] .section-title {
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.05;
    color: var(--color-dark);
}

[data-skin="organization"] .section-title::after {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    margin-top: 0.55rem;
    background: var(--accent-rule);
}

/* ----------------------------------------------------------------------------
   4. The ONE card: white, raised off the pale ground, under a navy edge
   ---------------------------------------------------------------------------- */

[data-skin="organization"] .content-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-dark);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(var(--cedar-green-rgb), 0.08);
}

[data-skin="organization"] .content-card-link:hover,
[data-skin="organization"] .content-card-link:focus-visible {
    border-color: var(--color-border);
    border-top-color: var(--accent-rule);
    box-shadow: 0 14px 34px rgba(var(--cedar-green-rgb), 0.14);
}

[data-skin="organization"] .content-card-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-dark);
}

[data-skin="organization"] .content-card-icon {
    border-radius: 10px;
    background: var(--cedar-green-tint);
}

/* ----------------------------------------------------------------------------
   5. Buttons: square-shouldered, in capitals, the brand ground
   ---------------------------------------------------------------------------- */

[data-skin="organization"] .btn {
    border-radius: 10px;
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

[data-skin="organization"] .btn-primary {
    background: var(--wilson-blue);
    box-shadow: none;
}

[data-skin="organization"] .btn-primary:hover:not(:disabled) {
    background: var(--cedar-green-dark);
    box-shadow: none;
}

[data-skin="organization"] .btn-secondary {
    border: 2px solid var(--wilson-blue);
    color: var(--wilson-blue);
    backdrop-filter: none;
    box-shadow: none;
}

[data-skin="organization"] .btn-secondary:hover:not(:disabled) {
    background: var(--wilson-blue);
    border-color: var(--wilson-blue);
    color: #ffffff;
    box-shadow: none;
}

/* ----------------------------------------------------------------------------
   6. Forms: one label, one field
   ---------------------------------------------------------------------------- */

[data-skin="organization"] .form-label,
[data-skin="organization"] .form-group > label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-dark);
}

[data-skin="organization"] .form-input,
[data-skin="organization"] .form-control,
[data-skin="organization"] input[type="text"],
[data-skin="organization"] input[type="email"],
[data-skin="organization"] input[type="password"],
[data-skin="organization"] input[type="url"],
[data-skin="organization"] input[type="number"],
[data-skin="organization"] input[type="tel"],
[data-skin="organization"] input[type="date"],
[data-skin="organization"] input[type="search"],
[data-skin="organization"] select,
[data-skin="organization"] textarea {
    /* 16px is the floor that stops a phone's browser zooming the page on focus. */
    font-size: 1rem;
    max-width: 100%;
    border-radius: 10px;
}

/* ----------------------------------------------------------------------------
   7. Tables and the empty state
   ---------------------------------------------------------------------------- */

[data-skin="organization"] th {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

[data-skin="organization"] .empty-state {
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-dark);
    border-radius: 14px;
}

[data-skin="organization"] .empty-state-icon {
    border-radius: 50%;
    background: var(--cedar-green-tint);
}

[data-skin="organization"] .empty-state-title {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ----------------------------------------------------------------------------
   8. The organization's mark in a header (OrganizationBrand, #8982)
   ----------------------------------------------------------------------------
   Its full logo, or its crest beside its name, in the header of both of the
   organization's hosts: the account host's layout and the public site's.
   Here, not in a scoped stylesheet of its own (#9508): the public site's
   shell links no scoped bundle, and both hosts link this skin. On the dark
   brand ground of either header, so white. */

[data-skin="organization"] .organization-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    min-width: 0;
    color: #ffffff;
    text-decoration: none;
}

[data-skin="organization"] .organization-brand:hover {
    color: #ffffff;
}

/* The full logo: as tall as the header allows, never wider than the screen. */
[data-skin="organization"] .organization-logo {
    display: block;
    height: 4.5rem;
    width: auto;
    max-width: 100%;
}

/* The crest beside the name, when the organization has no full logo: round, as its site draws it. */
[data-skin="organization"] .organization-crest {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    flex: none;
}

[data-skin="organization"] .organization-name {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ----------------------------------------------------------------------------
   9. A phone: the hero keeps the sections' side padding, the mark is shorter
   ---------------------------------------------------------------------------- */

@media (max-width: 768px) {
    [data-skin="organization"] .page-hero,
    [data-skin="organization"] .admin-hero {
        padding: 2rem 1.25rem;
    }

    [data-skin="organization"] .organization-logo {
        height: 3.5rem;
    }
}
