@charset "UTF-8";
/*!
    Main Stylesheet Manifest

    This file imports all SCSS partials in the correct order.
    DO NOT add styles here — use the appropriate partial instead.

    Compile: sass --watch css:css

    Import order:
        1. Fonts & Variables (design tokens)
        2. Helpers (mixins & utilities)
        3. Utility classes (colors, typography)
        4. Base element styles
        5. Components (reusable patterns)
        6. Sections (ACF flexible content)
        7. Page-specific overrides

    @author development@bronte.co.nz
*/
/*
    Font Face Declarations

    All custom fonts loaded via Adobe Fonts (Typekit) and Google Fonts.
    Enqueued in functions/setup.php — no local @font-face needed.

    Fonts used:
        - transducer (Bold 600) — headings A1–A3 (Typekit kit: raw0vst)
        - area-normal (Regular 400, Bold 700) — headings A4–A5, body text (Typekit kit: raw0vst)
        - Open Sans (Semibold 600) — small text (Google Fonts)

    Note: Figma shows Area Normal Medium (500) for body text,
    but Typekit only provides 400 and 700. Using 400 as the body weight.
*/
/*
    Design Tokens (Variables)

    Central source of truth for all design values.
    ALWAYS check here before adding new values elsewhere.

    How to use:
        1. Import in your partial: @use 'variables' as *;
        2. Use variables: color: $color-primary;

    Naming conventions:
        $color-{name}      — colours
        $spacing-{size}    — spacing (xs, sm, md, lg, xl, 2xl, 3xl, 4xl)
        $font-size-{size}  — font sizes
        $font-weight-{name} — font weights
        $screen-{size}     — breakpoints
*/
/*
    Helper Utilities

    Layout, positioning, and display utilities.
    For typography utilities, see _typography.scss.
    For colour utilities, see _colors.scss.

    Usage:
        <div class="pos-relative">
            <img class="bg-image" src="..." alt="...">
            <div class="z-above">Content above image</div>
        </div>
*/
.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.pos-relative {
  position: relative;
}

.pos-absolute {
  position: absolute;
}

.z-below {
  z-index: 5;
}

.z-base {
  z-index: 10;
}

.z-above {
  z-index: 15;
}

.mb-0 {
  margin-bottom: 0;
}

.last-child-mb-0 > :last-child {
  margin-bottom: 0;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/*
    Colour Utility Classes

    Background and text colour utilities generated from $colors map.
    All colours are defined in _variables.scss.

    Usage:
        <div class="bg-primary text-white">Primary background</div>
        <p class="text-muted">Secondary text</p>

    Available classes:
        .bg-{color}   — background colour
        .text-{color} — text colour

    Where {color} is: primary, secondary, dark, light, white, black, muted
*/
.bg-primary {
  background-color: #949CFE;
}

.text-primary {
  color: #949CFE;
}

.bg-secondary {
  background-color: #BCE2A9;
}

.text-secondary {
  color: #BCE2A9;
}

.bg-navy {
  background-color: #003E81;
}

.text-navy {
  color: #003E81;
}

.bg-dark {
  background-color: #111111;
}

.text-dark {
  color: #111111;
}

.bg-light {
  background-color: #f6f9f9;
}

.text-light {
  color: #f6f9f9;
}

.bg-white {
  background-color: #fff;
}

.text-white {
  color: #fff;
}

.bg-black {
  background-color: #000;
}

.text-black {
  color: #000;
}

.bg-muted {
  background-color: #ADB6BB;
}

.text-muted {
  color: #ADB6BB;
}

/*
    Typography Utility Classes

    Apply these classes directly in HTML to control text appearance.
    All values come from _variables.scss for consistency.

    Usage:
        <p class="text-lg font-bold">Large bold text</p>
        <span class="text-muted text-sm">Small muted caption</span>
*/
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-xs {
  font-size: 12px;
}

.text-sm {
  font-size: 14px;
}

.text-base {
  font-size: 16px;
}

.text-lg {
  font-size: 19px;
}

.text-xl {
  font-size: 22px;
}

.text-2xl {
  font-size: 30px;
}

.text-3xl {
  font-size: 40px;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 400;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.leading-tight {
  line-height: 1.1;
}

.leading-base {
  line-height: 1.48;
}

.leading-loose {
  line-height: 1.8;
}

.font-primary {
  font-family: "area-normal", Helvetica, Arial, sans-serif;
}

.font-secondary {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

/*
    Button Styles

    Base button styles and variants.
    Applied to .btn class, <button>, and submit inputs.

    Usage:
        <a href="#" class="btn btn-primary">Primary</a>
        <a href="#" class="btn btn-secondary">Secondary</a>
        <a href="#" class="btn btn-outline">Outline</a>
        <a href="#" class="btn btn-grey">Grey</a>
        <a href="#" class="btn btn-block">Full width</a>

    Sizing:
        .btn-sm — compact
        .btn-lg — large
*/
.btn,
button,
input[type=submit] {
  -webkit-appearance: none;
  border-radius: 999px;
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  padding: 8px 24px;
  line-height: 1.48;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 2px solid transparent;
  text-align: center;
  letter-spacing: 0.64px;
  text-decoration: none;
  color: #fff;
  background: #00562f;
}
.btn:hover,
button:hover,
input[type=submit]:hover {
  background: #55ab47;
  color: #fff;
}
.btn:focus-visible,
button:focus-visible,
input[type=submit]:focus-visible {
  outline: 2px solid #00562f;
  outline-offset: 2px;
}
.btn:active,
button:active,
input[type=submit]:active {
  transform: translateY(1px);
}

.btn-primary {
  background: #00562f;
  color: #fff;
  border-color: #00562f;
}
.btn-primary:hover {
  background: #55ab47;
  border-color: #55ab47;
  color: #fff;
}

.btn-secondary {
  background: #949CFE;
  color: #fff;
  border-color: #949CFE;
}
.btn-secondary:hover {
  background: #7B84FE;
  border-color: #7B84FE;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #00562f;
  border-color: #00562f;
}
.btn-outline:hover {
  background: #00562f;
  color: #fff;
}

.btn-grey {
  background: #666666;
  color: #fff;
  border-color: #666666;
}
.btn-grey:hover {
  background: rgb(76.5, 76.5, 76.5);
  border-color: rgb(76.5, 76.5, 76.5);
  color: #fff;
}
.btn-grey .btn-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}

.btn-danger {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
}
.btn-danger:hover {
  background: rgb(189.2151898734, 32.7848101266, 47.7721518987);
  border-color: rgb(189.2151898734, 32.7848101266, 47.7721518987);
  color: #fff;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm {
  font-size: 14px;
  padding: 4px 16px;
}

.btn-lg {
  font-size: 19px;
  padding: 16px 32px;
}

/*
    Navigation Menu Styles

    Styles for WordPress menus registered in functions/setup.php.
    Menu locations: header, footer, mobile.

    Structure (WordPress wp_nav_menu output):
        <ul class="menu menu-header">
            <li class="menu-item">
                <a href="#">Link</a>
            </li>
            <li class="menu-item menu-item-has-children">
                <a href="#">Dropdown</a>
                <ul class="sub-menu">
                    <li><a href="#">Sub Link</a></li>
                </ul>
            </li>
        </ul>

    Modifiers:
        .menu-header  — Desktop header navigation
        .menu-footer  — Footer navigation
        .menu-mobile  — Mobile slide-out navigation
*/
.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-header {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 24px;
}
.menu-header > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.48;
  padding: 8px 0;
  transition: all 0.2s ease-in-out;
}
.menu-header .menu-item-has-children {
  position: relative;
}
.menu-header .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  border-color: #111111 transparent transparent transparent;
  transition: all 0.2s ease-in-out;
  margin-top: 2px;
}
.menu-header .menu-item-has-children:hover > a::after, .menu-header .menu-item-has-children.active > a::after {
  transform: rotate(180deg);
}
.menu-header .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: #fff;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  z-index: 200;
}
.menu-header .sub-menu li a {
  display: block;
  padding: 8px 16px;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #111111;
  transition: all 0.2s ease-in-out;
}
.menu-header .sub-menu li a:hover {
  color: #949CFE;
  background-color: #f6f9f9;
}
.menu-header .menu-item-has-children:hover > .sub-menu {
  display: block;
}

.menu-footer {
  flex-direction: column;
}
.menu-footer li {
  margin-bottom: 8px;
  position: relative;
}
.menu-footer a {
  line-height: 1.428;
  font-weight: 400;
}

.menu-mobile {
  flex-direction: column;
}
.menu-mobile > li {
  border-bottom: 1px solid #e0e0e0;
}
.menu-mobile > li > a {
  display: block;
  padding: 16px 0;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #111111;
}
.menu-mobile .sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 8px 16px;
}
.menu-mobile .sub-menu li a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #ADB6BB;
}
.menu-mobile .sub-menu li a:hover {
  color: #949CFE;
}
.menu-mobile .menu-item-has-children {
  position: relative;
}
.menu-mobile .menu-item-has-children > a {
  padding-right: 40px;
}

/*
    Base Element Styles

    Global styles for HTML elements (body, a, img, headings, etc.).
    These apply site-wide without needing classes.

    For utility classes, see:
        _helpers.scss    — layout utilities
        _typography.scss — text utilities
        _colors.scss     — colour utilities
*/
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--wp-admin--admin-bar--height); /**
* @link https://make.wordpress.org/core/2022/01/07/theme-focused-changes-and-filters-in-wordpress-5-9/#adjusting-for-fixed-header-navigation
*/
}

body {
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color: #111111;
  margin: 0;
}

a {
  transition: all 0.2s ease-in-out;
  color: #00562f;
  text-decoration: none;
}
a:hover {
  color: #55ab47;
  text-decoration: none;
}

main {
  flex: 1;
}

svg,
img {
  max-width: 100%;
  height: auto;
  display: block;
}

p img {
  display: inline-block;
}

.text > :first-child {
  margin-top: 0;
}
.text > :last-child {
  margin-bottom: 0;
}
.text ol,
.text ul {
  line-height: inherit;
  padding-left: 20px;
}
.text li:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5 {
  margin-top: 0;
}

@media (min-width: 768px) {
  .alignleft,
  img.alignleft {
    float: left;
    margin-right: 1em;
    margin-bottom: 1em;
  }
}

@media (min-width: 768px) {
  .alignright,
  img.alignright {
    float: right;
    margin-left: 1em;
    margin-bottom: 1em;
  }
}

.aligncenter,
img.aligncenter {
  margin: 1em auto;
}

/**
 * Gravity Forms - Orbital Theme Overrides
 *
 * Styles for GF 2.9+ Orbital theme.
 * Uses CSS custom properties to override Orbital defaults.
 *
 * Structure:
 *   1. CSS Custom Properties (theme-wide overrides)
 *   2. Direct Style Overrides (elements Orbital doesn't fully control)
 *   3. Validation & Error States
 *   4. Honeypot Field (spam protection)
 */
.gform_wrapper.gform-theme--orbital[data-form-index] {
  --gf-color-primary: #949CFE;
  --gf-color-primary-rgb: 48, 181, 94;
  --gf-ctrl-label-font-family-primary: area-normal, Helvetica, Arial, sans-serif;
  --gf-ctrl-label-font-size-primary: 14px;
  --gf-ctrl-label-font-weight-primary: 600;
  --gf-ctrl-label-color-primary: #111111;
  --gf-ctrl-font-family: area-normal, Helvetica, Arial, sans-serif;
  --gf-ctrl-font-size: 16px;
  --gf-ctrl-line-height: 1.48;
  --gf-ctrl-color: #111111;
  --gf-ctrl-color-placeholder: #ADB6BB;
  --gf-ctrl-bg-color: #fff;
  --gf-ctrl-border-color: #e0e0e0;
  --gf-ctrl-border-width: 1px;
  --gf-ctrl-border-radius: 4px;
  --gf-ctrl-padding-x: 16px;
  --gf-ctrl-padding-y: 12px;
  --gf-ctrl-border-color-focus: #949CFE;
  --gf-ctrl-focus-ring-color: rgba(48, 181, 94, 0.2);
  --gf-ctrl-select-color: #111111;
  --gf-ctrl-choice-label-color: #111111;
  --gf-ctrl-btn-font-family: area-normal, Helvetica, Arial, sans-serif;
  --gf-ctrl-btn-font-size: 16px;
  --gf-ctrl-btn-font-weight: 600;
  --gf-ctrl-btn-color: #fff;
  --gf-ctrl-btn-color-hover: #fff;
  --gf-ctrl-btn-bg-color: #949CFE;
  --gf-ctrl-btn-bg-color-hover: #7B84FE;
  --gf-ctrl-btn-border-color: #949CFE;
  --gf-ctrl-btn-border-color-hover: #7B84FE;
  --gf-ctrl-btn-border-radius: 4px;
  --gf-ctrl-btn-padding-x: 24px;
  --gf-ctrl-btn-padding-y: 12px;
  --gf-field-pg-row-gap: 24px;
  --gf-form-gap-y: 24px;
}

.gform_wrapper.gform-theme--orbital {
  font-family: "area-normal", Helvetica, Arial, sans-serif;
}
.gform_wrapper.gform-theme--orbital .gform_required_legend {
  display: none;
}
.gform_wrapper.gform-theme--orbital .gfield_required {
  color: inherit;
}
.gform_wrapper.gform-theme--orbital textarea {
  min-height: 120px;
  resize: vertical;
}
.gform_wrapper.gform-theme--orbital select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23959a9e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px;
  padding-right: 48px;
}
.gform_wrapper.gform-theme--orbital .gform_footer,
.gform_wrapper.gform-theme--orbital .gform_page_footer {
  margin-top: 24px;
  padding: 0;
}

.gform_wrapper.gform-theme--orbital .gfield_validation_message,
.gform_wrapper.gform-theme--orbital .validation_message {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.48;
  color: #dc3545;
}
.gform_wrapper.gform-theme--orbital .gfield_error input,
.gform_wrapper.gform-theme--orbital .gfield_error select,
.gform_wrapper.gform-theme--orbital .gfield_error textarea {
  border-color: #dc3545;
}
.gform_wrapper.gform-theme--orbital .gform_submission_error {
  margin-bottom: 24px;
  padding: 16px;
  font-size: 14px;
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
  border-radius: 4px;
}
.gform_wrapper.gform-theme--orbital .gform_confirmation_message {
  padding: 24px;
  font-size: 16px;
  line-height: 1.48;
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
  border-radius: 4px;
}

.gform_wrapper .gform_validation_container {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
}

.hidden_label .gfield_label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*
    Portal Layout Shell

    Flex container wiring portal header, sidebar, and main content area.
    Also handles admin bar offset and auth-page chrome suppression.

    Structure:
        .portal-header  (position: fixed, z-index: $z-header)
        .portal-shell   (flex row: sidebar + main)
            .portal-sidebar
            .portal-main

    Auth pages (.portal-auth body class) hide all portal chrome
    and reset the shell to a simple centred layout for login/register screens.

    Sidebar breakpoint: 1024px — between $screen-md (992px) and $screen-lg (1200px).
    Design bible §6.2: use literal 1024px (no matching SCSS variable).
*/
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 301;
  padding: 8px 24px;
  background: #949CFE;
  color: #fff;
  border-radius: 6px;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
}

.portal-shell {
  display: flex;
  padding-top: 72px;
  background: #f6f9f9;
}
@media (min-width: 1024px) {
  .portal-shell {
    padding-top: 100px;
  }
}

html.admin-bar {
  margin-top: 0 !important;
}

.admin-bar .portal-header {
  top: 46px;
}
@media (min-width: 783px) {
  .admin-bar .portal-header {
    top: 32px;
  }
}

.admin-bar .portal-shell {
  padding-top: calc(72px + 46px);
}
@media (min-width: 783px) {
  .admin-bar .portal-shell {
    padding-top: calc(72px + 32px);
  }
}
@media (min-width: 1024px) {
  .admin-bar .portal-shell {
    padding-top: calc(100px + 32px);
  }
}

.portal-main {
  flex: 1;
  padding: 24px 16px;
  background: #f6f9f9;
  min-width: 0;
  max-width: 1400px;
}
@media (min-width: 1024px) {
  .portal-main {
    padding: 32px 48px;
    margin-left: 280px;
  }
}

.portal-auth .portal-header,
.portal-auth .portal-sidebar,
.portal-auth .portal-overlay,
.portal-auth .portal-footer {
  display: none;
}
.portal-auth .portal-shell {
  display: block;
  padding-top: 0;
  min-height: auto;
}
.portal-auth .portal-main {
  margin-left: 0;
  padding: 0;
  background: #fff;
}

/*
    Portal Header

    Always-white fixed header for authenticated portal pages.
    Contains: NZKGI logo (left), search bar (centre), user first name + Sign Out (right).
    Hamburger visible below 1024px — triggers sidebar slide-in.

    Design: design-bible.md §7.1
    Height: $header-height-mobile (72px) / $header-height (100px) at 1024px+
    z-index: $z-header (100) — sits above sidebar ($z-sidebar: 50)
*/
.portal-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  height: 72px;
}
@media (min-width: 1024px) {
  .portal-header {
    height: 100px;
  }
}

.portal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
}
@media (min-width: 1024px) {
  .portal-header__inner {
    padding: 0 32px;
  }
}

.portal-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.portal-header__logo img {
  max-height: 40px;
  width: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .portal-header__logo img {
    transition: all 0.2s ease-in-out;
  }
}
@media (min-width: 1024px) {
  .portal-header__logo img {
    max-height: 50px;
  }
}

.portal-header__search {
  display: none;
  flex: 1;
  max-width: 400px;
  margin: 0 24px;
}
@media (min-width: 768px) {
  .portal-header__search {
    display: block;
  }
}

.portal-header__search-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.portal-header__search-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: #ADB6BB;
  pointer-events: none;
  flex-shrink: 0;
}

.portal-header__search-input {
  width: 100%;
  background: #f6f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  padding: 8px 24px 8px calc(16px + 20px + 8px);
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #111111;
  outline: none;
  cursor: default;
}
.portal-header__search-input::placeholder {
  color: #ADB6BB;
}
@media (prefers-reduced-motion: no-preference) {
  .portal-header__search-input {
    transition: all 0.2s ease-in-out;
  }
}

.portal-header__hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #111111;
  border-radius: 6px;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .portal-header__hamburger {
    transition: all 0.2s ease-in-out;
  }
}
.portal-header__hamburger:hover {
  background: #f6f9f9;
}
.portal-header__hamburger:focus {
  outline: 2px solid #949CFE;
  outline-offset: 2px;
}
@media (min-width: 1024px) {
  .portal-header__hamburger {
    display: none;
  }
}
.portal-header__hamburger svg {
  width: 24px;
  height: 24px;
}

/*!
    Portal Sidebar Navigation

    Fixed 280px sidebar with collapsible accordion sections, active states,
    mobile slide-in overlay, and admin bar offset support.

    Color scheme: NZKGI green — dark green text, soft green active backgrounds.
    Matches the main nzkgi.org.nz site nav style.

    Breakpoint: 1024px (between Bootstrap $screen-md 992px and $screen-lg 1200px).
    This is intentional — the design bible specifies 1024px, NOT Bootstrap's d-lg (992px).
*/
.portal-sidebar {
  position: fixed;
  top: 72px;
  left: 0;
  width: 280px;
  height: calc(100vh - 72px);
  background: #fff;
  border-right: 1px solid #e0e0e0;
  z-index: 50;
  overflow-y: auto;
  transform: translateX(-100%);
  display: flex;
  flex-direction: column;
}
@media (max-width: 767px) {
  .portal-sidebar {
    width: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .portal-sidebar {
    transition: transform 0.3s ease-in-out;
  }
}
@media (min-width: 1024px) {
  .portal-sidebar {
    top: 100px;
    height: calc(100vh - 100px);
    transform: translateX(0);
  }
}
.portal-sidebar.is-open {
  transform: translateX(0);
}

.admin-bar .portal-sidebar {
  top: calc(72px + 46px);
  height: calc(100vh - 72px - 46px);
}
@media (max-width: 767px) {
  .admin-bar .portal-sidebar {
    width: 100%;
  }
}
@media (min-width: 783px) {
  .admin-bar .portal-sidebar {
    top: calc(72px + 32px);
    height: calc(100vh - 72px - 32px);
  }
}
@media (min-width: 1024px) {
  .admin-bar .portal-sidebar {
    top: calc(100px + 32px);
    height: calc(100vh - 100px - 32px);
  }
}

.portal-overlay {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: rgba(0, 0, 0, 0.4);
  z-index: calc(50 - 1);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .portal-overlay {
    transition: opacity 0.3s ease-in-out;
  }
}
@media (min-width: 1024px) {
  .portal-overlay {
    display: none !important;
  }
}
.portal-overlay.is-visible {
  display: block;
  opacity: 1;
}

.portal-sidebar__nav {
  padding: 0;
  flex: 1;
}

.sidebar-section {
  border-bottom: 1px solid #e0e0e0;
}
.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section__header {
  display: flex;
  align-items: center;
}
.sidebar-section__header .sidebar-section__link {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 8px 8px 8px 24px;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #00562f;
  text-decoration: none;
  gap: 8px;
  min-height: 44px;
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar-section__header .sidebar-section__link {
    transition: background-color 0.15s ease-in-out;
  }
}
.sidebar-section__header .sidebar-section__link:hover {
  background: #e8f5e0;
}
.sidebar-section__header .sidebar-section__link[aria-current=page] {
  background: #e8f5e0;
}
.sidebar-section__header .sidebar-section__link:focus-visible {
  outline: 2px solid #00562f;
  outline-offset: -2px;
}

.sidebar-section__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  align-self: stretch;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  padding: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar-section__toggle {
    transition: background-color 0.15s ease-in-out;
  }
}
.sidebar-section__toggle:hover {
  background: #e8f5e0;
}
.sidebar-section__toggle:focus-visible {
  outline: 2px solid #00562f;
  outline-offset: -2px;
}

.sidebar-section__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  color: #55ab47;
}
.is-expanded .sidebar-section__icon {
  color: #00562f;
}
[aria-current=page] .sidebar-section__icon {
  color: #00562f;
}

.sidebar-section__chevron {
  flex-shrink: 0;
  color: #ADB6BB;
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar-section__chevron {
    transition: transform 0.2s ease-in-out;
  }
}
.is-expanded .sidebar-section__chevron {
  transform: rotate(180deg);
  color: #00562f;
}

.sidebar-section__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}
.is-expanded .sidebar-section__items {
  display: block;
}
.sidebar-section__items > li > a {
  padding: 8px 24px;
  padding-left: calc(24px + 20px + 8px);
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #666666;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar-section__items > li > a {
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
  }
}
.sidebar-section__items > li > a:hover {
  background: #e8f5e0;
  color: #00562f;
}
.sidebar-section__items > li > a[aria-current=page] {
  color: #00562f;
  background: #e8f5e0;
  font-weight: 600;
}
.sidebar-section__items > li > a:focus-visible {
  outline: 2px solid #00562f;
  outline-offset: -2px;
}

.sidebar-child__header {
  display: flex;
  align-items: center;
}
.sidebar-child__header .sidebar-child__link {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 8px 8px 8px calc(24px + 20px + 8px);
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #666666;
  text-decoration: none;
  min-height: 44px;
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar-child__header .sidebar-child__link {
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
  }
}
.sidebar-child__header .sidebar-child__link:hover {
  background: #e8f5e0;
  color: #00562f;
}
.sidebar-child__header .sidebar-child__link[aria-current=page] {
  color: #00562f;
  background: #e8f5e0;
  font-weight: 600;
}
.sidebar-child__header .sidebar-child__link:focus-visible {
  outline: 2px solid #00562f;
  outline-offset: -2px;
}

.sidebar-child__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  flex-shrink: 0;
  align-self: stretch;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  padding: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar-child__toggle {
    transition: background-color 0.15s ease-in-out;
  }
}
.sidebar-child__toggle:hover {
  background: #e8f5e0;
}
.sidebar-child__toggle:focus-visible {
  outline: 2px solid #00562f;
  outline-offset: -2px;
}

.sidebar-child__chevron {
  flex-shrink: 0;
  color: #ADB6BB;
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar-child__chevron {
    transition: transform 0.2s ease-in-out;
  }
}
.is-sub-expanded .sidebar-child__chevron {
  transform: rotate(180deg);
  color: #00562f;
}

.sidebar-section__subitems {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}
.is-sub-expanded .sidebar-section__subitems {
  display: block;
}
.sidebar-section__subitems li a {
  padding: 4px 24px;
  padding-left: calc(24px + 20px + 8px + 16px);
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #666666;
  text-decoration: none;
  min-height: 40px;
  display: flex;
  align-items: center;
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar-section__subitems li a {
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
  }
}
.sidebar-section__subitems li a:hover {
  background: #e8f5e0;
  color: #00562f;
}
.sidebar-section__subitems li a[aria-current=page] {
  color: #00562f;
  background: #e8f5e0;
  font-weight: 600;
}
.sidebar-section__subitems li a:focus-visible {
  outline: 2px solid #00562f;
  outline-offset: -2px;
}

.sidebar-section--single .sidebar-section__link {
  display: flex;
  align-items: center;
  padding: 8px 24px;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #00562f;
  text-decoration: none;
  min-height: 44px;
  gap: 8px;
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar-section--single .sidebar-section__link {
    transition: background-color 0.15s ease-in-out;
  }
}
.sidebar-section--single .sidebar-section__link:hover {
  background: #e8f5e0;
}
.sidebar-section--single .sidebar-section__link[aria-current=page] {
  color: #00562f;
  background: #e8f5e0;
}
.sidebar-section--single .sidebar-section__link:focus-visible {
  outline: 2px solid #00562f;
  outline-offset: -2px;
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #e0e0e0;
}

.sidebar-admin-link {
  display: flex;
  align-items: center;
  padding: 8px 24px;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #00562f;
  text-decoration: none;
  min-height: 44px;
  gap: 8px;
  border-bottom: 1px solid #e0e0e0;
}
.sidebar-admin-link svg {
  color: #55ab47;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar-admin-link {
    transition: background-color 0.15s ease-in-out;
  }
}
.sidebar-admin-link:hover {
  background: #e8f5e0;
}
.sidebar-admin-link[aria-current=page] {
  color: #00562f;
  background: #e8f5e0;
}
.sidebar-admin-link[aria-current=page] svg {
  color: #00562f;
}
.sidebar-admin-link:focus-visible {
  outline: 2px solid #00562f;
  outline-offset: -2px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
}

.sidebar-user__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #00562f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "transducer", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.sidebar-user__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.sidebar-user__name {
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.sidebar-user__link {
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #666666;
  text-decoration: none;
  line-height: 1.3;
}
.sidebar-user__link:hover {
  color: #00562f;
  text-decoration: underline;
}

.sidebar-user__signout {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ADB6BB;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar-user__signout {
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
  }
}
.sidebar-user__signout:hover {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.08);
}
.sidebar-user__signout:focus-visible {
  outline: 2px solid #00562f;
  outline-offset: -2px;
}

/*
    Portal Footer

    Minimal single-row footer for authenticated portal pages.
    Left: copyright text. Right: Back to nzkgi.org.nz link.

    No newsletter, no column grid, no social icons — portal-specific minimal chrome.

    Design: design-bible.md §7.4
    Background: $color-grey-light (#F2F2F2)
*/
.portal-footer {
  background: #F2F2F2;
  padding: 24px 16px;
  position: sticky;
  bottom: 0;
}
@media (min-width: 1024px) {
  .portal-footer {
    margin-left: 280px;
    padding: 24px 32px;
  }
}

.portal-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 575px) {
  .portal-footer__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

.portal-footer__copyright {
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #666666;
  margin: 0;
}

.portal-footer__link {
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #949CFE;
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .portal-footer__link {
    transition: all 0.2s ease-in-out;
  }
}
.portal-footer__link:hover {
  text-decoration: underline;
  color: #7B84FE;
}
.portal-footer__link:focus {
  outline: 2px solid #949CFE;
  outline-offset: 2px;
}

/*
    Components Manifest

    Import reusable UI components here (alphabetical order).
    Components are standalone patterns used across multiple sections.

    Examples: blog-card, team-card, testimonial-card, accordion

    Creating a new component:
        1. Create css/components/_my-component.scss
        2. Add @use 'my-component'; below
        3. Use .my-component class in templates

    Component structure:
        .my-component {
            .image { }
            .title { }
            .content { }
        }
*/
/*
    Component: Alert

    Contextual feedback messages shown within auth cards.
    Three variants: error (red), info (blue), success (green).

    Used for:
    - Error: invalid credentials, rate limit, expired token, deactivated account
    - Info: magic-link sent confirmation, email check instructions
    - Success: account created, password reset sent
*/
.alert {
  border-radius: 6px;
  padding: 16px 24px;
  border-left: 4px solid transparent;
  margin-bottom: 24px;
  font-size: 16px;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  color: #111111;
}
.alert a {
  color: #949CFE;
  font-weight: 700;
  text-decoration: none;
}
.alert a:hover {
  text-decoration: underline;
}

.alert-error {
  background: rgba(220, 53, 69, 0.08);
  border-left-color: #dc3545;
}

.alert-info {
  background: rgba(0, 173, 238, 0.08);
  border-left-color: #00ADEE;
}

.alert-success {
  background: rgba(40, 167, 69, 0.08);
  border-left-color: #28a745;
}

/*
    Component: Auth Card

    Centred white card used across all unauthenticated auth screens:
    login, register, account-setup, and auth-confirm.

    Layout: .auth-layout wraps the full page, .auth-card is the white content box,
    .auth-logo sits above the card, .auth-card-heading is the card title.
*/
.auth-layout {
  min-height: 100vh;
  background: #f6f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 16px;
}

.auth-logo {
  display: block;
  margin-bottom: 32px;
  text-align: center;
}
.auth-logo .auth-logo__img {
  max-width: 200px;
  height: auto;
}
@media (max-width: 991px) {
  .auth-logo {
    width: 160px;
  }
}
@media (max-width: 767px) {
  .auth-logo {
    width: 120px;
  }
}

.auth-card {
  background: #fff;
  border-radius: 8px;
  padding: 48px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .auth-card {
    padding: 24px;
    margin: 0 16px;
  }
}

.auth-card-heading {
  font-family: "transducer", Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 24px;
  text-align: center;
}

.auth-card-helper {
  font-size: 14px;
  color: #666666;
  text-align: center;
  margin: 8px 0;
}

.auth-resend {
  text-align: center;
  margin-top: 16px;
}
.auth-resend .auth-resend__toggle {
  font-size: 14px;
  color: #00562f;
  text-decoration: none;
  font-weight: 600;
}
.auth-resend .auth-resend__toggle:hover {
  color: #55ab47;
  text-decoration: underline;
}
.auth-resend .auth-resend__form {
  margin-top: 16px;
}

.form-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}

/*
    Component: Badge

    Coloured pill badges identifying portal_content type at a glance.
    Four variants matching content_type field choices (DESIGN-04/D-14).

    Usage:
        <span class="badge badge--pdf">PDF</span>
        <span class="badge badge--video">Video</span>
        <span class="badge badge--audio">Audio</span>
        <span class="badge badge--post">Post</span>

    Colour decisions (locked — D-14):
        PDF   → red   ($color-error)
        Video → blue  ($color-blue)
        Audio → purple ($color-primary)
        Post  → green ($nzkgi-dark-green)

    Note: Badge uses BEM-style '--' modifiers because it is a standalone
    component, consistent with how '.btn--primary' works in this codebase.
*/
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 12px;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge--pdf {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}
.badge--video {
  background: rgba(0, 173, 238, 0.1);
  color: #00ADEE;
}
.badge--audio {
  background: rgba(148, 156, 254, 0.1);
  color: #949CFE;
}
.badge--post {
  background: rgba(0, 86, 47, 0.1);
  color: #00562f;
}

/*
    Breadcrumbs Component
    Trail navigation for non-dashboard portal pages (D-15, D-16).
    Rendered by bronte_portal_breadcrumbs() in functions/helpers.php.

    Example: Dashboard > Performance
*/
.breadcrumbs {
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumbs a {
  color: #949CFE;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs span[aria-current=page] {
  color: #111111;
}

.breadcrumbs__separator {
  color: #ADB6BB;
  font-size: 14px;
}

/*
    Component: Buttons (Auth/Portal Extensions)

    Portal-specific button styles that extend the base .btn class in _buttons.scss.
    These add the primary purple colour variant, block modifier, and loading state
    used across all auth screens and portal pages.

    Base .btn styles (border-radius, font, padding, cursor) live in css/_buttons.scss.
    These rules add colour variants and portal-specific behaviour.
*/
.btn-primary {
  background-color: #00562f;
  color: #fff;
  border: 2px solid #00562f;
  min-height: 44px;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary {
    transition: all 0.2s ease-in-out;
  }
}
.btn-primary:hover {
  background-color: #55ab47;
  border-color: #55ab47;
  color: #fff;
}

.btn-block {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-loading {
  position: relative;
  color: transparent;
}
.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-loading::after {
    animation: btn-spinner 0.6s linear infinite;
  }
}

@keyframes btn-spinner {
  to {
    transform: rotate(360deg);
  }
}
.btn-outline {
  background-color: transparent;
  color: #00562f;
  border: 2px solid #00562f;
  min-height: 44px;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-outline {
    transition: all 0.2s ease-in-out;
  }
}
.btn-outline:hover {
  background-color: #00562f;
  color: #fff;
}
.btn-outline:focus {
  outline: 2px solid #00562f;
  outline-offset: 2px;
}

.btn-secondary {
  background-color: #fff;
  color: #666666;
  border: 1px solid #e0e0e0;
  min-height: 44px;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-secondary {
    transition: all 0.2s ease-in-out;
  }
}
.btn-secondary:hover {
  background-color: #f6f9f9;
  color: #111111;
}
.btn-secondary:focus {
  outline: 2px solid #00562f;
  outline-offset: 2px;
}

.btn-danger {
  background-color: transparent;
  color: #dc3545;
  border: 1px solid #dc3545;
  min-height: 44px;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-danger {
    transition: all 0.2s ease-in-out;
  }
}
.btn-danger:hover {
  background-color: #dc3545;
  color: #fff;
}
.btn-danger:focus {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}

/*
    Component: Content Card

    Card displaying a portal_content post in the content listing grid.
    Used in template-parts/content-card.php, rendered by the content-listing block.

    Layout (D-04):
        - 2 columns on desktop (col-md-6), 1 column on mobile
        - Badge at top, title, 2-line excerpt, date + arrow at bottom

    Hover: subtle lift (translateY -2px) with shadow, arrow nudges right.

    Also contains .content-listing utility classes — the listing wrapper
    and its grid/empty-state sub-elements live here as they are tightly
    coupled to the card layout.
*/
.content-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: all 0.2s ease-in-out;
}
.content-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.content-card .content-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  text-decoration: none !important;
  color: inherit;
}
.content-card .content-card__link:hover {
  text-decoration: none !important;
}
.content-card .content-card__header {
  margin-bottom: 8px;
}
.content-card .content-card__title {
  font-family: "transducer", Helvetica, Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 8px;
  line-height: 1.3;
}
.content-card .content-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #666666;
  font-size: 16px;
  line-height: 1.48;
  margin: 0 0 16px;
  flex: 1;
}
.content-card .content-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.content-card .content-card__date {
  font-size: 14px;
  color: #ADB6BB;
}
.content-card .content-card__arrow {
  font-size: 19px;
  color: #949CFE;
  transition: all 0.2s ease-in-out;
}
.content-card:hover .content-card__arrow {
  transform: translateX(4px);
}

.content-listing .content-listing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.content-listing .content-listing__empty {
  padding: 48px 24px;
  text-align: center;
  color: #666666;
  background: #f6f9f9;
  border-radius: 8px;
}
.content-listing .content-listing__empty p {
  margin: 0;
  font-size: 16px;
}

/*
    Component: File Download

    Featured file download card row — displayed above Gutenberg content on
    non-post portal_content types (PDF, video, audio).

    Design spec D-08: card row with file type icon, filename, file size in grey,
    download arrow on right. Hover lifts with shadow.

    File type icon uses CSS ::after text content to show the extension label.
    Icon background colour is mapped per file type for quick visual scanning.
*/
.file-download {
  margin-bottom: 32px;
}
.file-download .file-download__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #111111;
  transition: all 0.2s ease-in-out;
}
.file-download .file-download__link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.file-download .file-download__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
}
.file-download .file-download__icon--pdf {
  background: #dc3545;
}
.file-download .file-download__icon--doc {
  background: #00ADEE;
}
.file-download .file-download__icon--xls {
  background: #00562f;
}
.file-download .file-download__icon--audio {
  background: #949CFE;
}
.file-download .file-download__icon--video {
  background: #003E81;
}
.file-download .file-download__icon--file {
  background: #666666;
}
.file-download .file-download__icon--pdf::after {
  content: "PDF";
}
.file-download .file-download__icon--doc::after {
  content: "DOC";
}
.file-download .file-download__icon--xls::after {
  content: "XLS";
}
.file-download .file-download__icon--audio::after {
  content: "MP3";
}
.file-download .file-download__icon--video::after {
  content: "MP4";
}
.file-download .file-download__icon--file::after {
  content: "FILE";
}
.file-download .file-download__info {
  flex: 1;
  min-width: 0;
}
.file-download .file-download__name {
  display: block;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-download .file-download__size {
  display: block;
  font-size: 14px;
  color: #666666;
  margin-top: 2px;
}
.file-download .file-download__arrow {
  flex-shrink: 0;
  color: #ADB6BB;
  transition: all 0.2s ease-in-out;
}
.file-download:hover .file-download__arrow {
  color: #949CFE;
}

/*
    Component: Form

    Auth-specific form input, label, helper text, error, footer, and checkbox styles.
    Used across login, register, and account-setup screens.

    All touch targets meet the 44px minimum (48px preferred) for kiwifruit growers
    who may be using gloves or mobile devices in the field.
*/
.form-field {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 8px;
}

.form-group + .form-group {
  margin-top: 24px;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #111111;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-sizing: border-box;
}
@media (prefers-reduced-motion: no-preference) {
  .form-input {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  }
}
.form-input::placeholder {
  color: #ADB6BB;
}
.form-input:focus {
  outline: none;
  border-color: #55ab47;
  box-shadow: 0 0 0 3px rgba(85, 171, 71, 0.2);
}
.form-input.has-error {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.03);
}
.form-input[readonly], .form-input[disabled] {
  background: #f6f9f9;
  color: #666666;
  cursor: not-allowed;
}

.form-helper {
  margin-top: 4px;
  font-size: 14px;
  color: #ADB6BB;
}

.form-error {
  margin-top: 4px;
  font-size: 14px;
  color: #dc3545;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #666666;
}
.form-footer a {
  color: #00562f;
  text-decoration: none;
  font-weight: 700;
}
.form-footer a:hover {
  color: #55ab47;
  text-decoration: underline;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.form-checkbox input[type=checkbox] {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #00562f;
  margin-top: 1px;
}
.form-checkbox label {
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  cursor: pointer;
  line-height: 1.3;
}

.form-disclaimer-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  max-height: 160px;
  overflow-y: scroll;
  padding: 16px;
  margin-bottom: 16px;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #111111;
  line-height: 1.48;
}

/*
    Component: Pagination

    Styles the output of WordPress paginate_links() used in the content listing block.
    WP generates <a class="page-numbers"> for links and <span class="current"> for
    the active page. Additional classes: .prev, .next, .dots.

    Renders as a centred row of pill-shaped page number buttons, separated by a
    top border from the content grid above.
*/
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 14px;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  color: #666666;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
.pagination .page-numbers:hover {
  background: #f6f9f9;
  color: #111111;
}
.pagination .page-numbers.current {
  background: #949CFE;
  color: #fff;
  font-weight: 700;
}
.pagination .page-numbers.dots {
  background: none;
}
.pagination .page-numbers.dots:hover {
  background: none;
}
.pagination .page-numbers.prev, .pagination .page-numbers.next {
  font-weight: 700;
}

/*
    Component: Prose

    Shared rich-content styling for Gutenberg block output.
    Applied to any container holding the_content() — portal pages,
    single portal_content posts, and search result previews.

    Usage:
        <div class="prose"><?php the_content(); ?></div>
        or
        <div class="portal-page__content">...</div> (auto-inherits via nesting below)
*/
.prose,
.portal-page__content,
.portal-content-single__body {
  line-height: 1.48;
  color: #111111;
}
.prose a:not(.btn):not(.wp-block-button__link):not(.file-download__link):not(.content-card__link),
.portal-page__content a:not(.btn):not(.wp-block-button__link):not(.file-download__link):not(.content-card__link),
.portal-content-single__body a:not(.btn):not(.wp-block-button__link):not(.file-download__link):not(.content-card__link) {
  color: #00562f;
  text-decoration: underline;
  text-decoration-color: rgba(0, 86, 47, 0.3);
  text-underline-offset: 2px;
}
.prose a:not(.btn):not(.wp-block-button__link):not(.file-download__link):not(.content-card__link):hover,
.portal-page__content a:not(.btn):not(.wp-block-button__link):not(.file-download__link):not(.content-card__link):hover,
.portal-content-single__body a:not(.btn):not(.wp-block-button__link):not(.file-download__link):not(.content-card__link):hover {
  color: #55ab47;
  text-decoration-color: #55ab47;
}
.prose p,
.portal-page__content p,
.portal-content-single__body p {
  margin-bottom: 16px;
  font-size: 16px;
  max-width: 800px;
}
.prose strong,
.portal-page__content strong,
.portal-content-single__body strong {
  font-weight: 700;
  color: #111111;
}
.prose em,
.portal-page__content em,
.portal-content-single__body em {
  color: #666666;
}
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6,
.portal-page__content h2,
.portal-page__content h3,
.portal-page__content h4,
.portal-page__content h5,
.portal-page__content h6,
.portal-content-single__body h2,
.portal-content-single__body h3,
.portal-content-single__body h4,
.portal-content-single__body h5,
.portal-content-single__body h6 {
  font-family: "transducer", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #111111;
  margin-top: 32px;
  margin-bottom: 16px;
}
.prose h2,
.portal-page__content h2,
.portal-content-single__body h2 {
  font-size: 22px;
}
.prose h3,
.portal-page__content h3,
.portal-content-single__body h3 {
  font-size: 19px;
}
.prose h4,
.portal-page__content h4,
.portal-content-single__body h4 {
  font-size: 16px;
  font-weight: 600;
}
.prose > h2:first-child,
.prose > h3:first-child,
.prose > h4:first-child,
.portal-page__content > h2:first-child,
.portal-page__content > h3:first-child,
.portal-page__content > h4:first-child,
.portal-content-single__body > h2:first-child,
.portal-content-single__body > h3:first-child,
.portal-content-single__body > h4:first-child {
  margin-top: 0;
}
.prose ul, .prose ol,
.portal-page__content ul,
.portal-page__content ol,
.portal-content-single__body ul,
.portal-content-single__body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.prose ul li, .prose ol li,
.portal-page__content ul li,
.portal-page__content ol li,
.portal-content-single__body ul li,
.portal-content-single__body ol li {
  margin-bottom: 4px;
  line-height: 1.48;
}
.prose .wp-block-image,
.portal-page__content .wp-block-image,
.portal-content-single__body .wp-block-image {
  margin: 32px 0;
}
.prose .wp-block-image img,
.portal-page__content .wp-block-image img,
.portal-content-single__body .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.prose .wp-block-image figcaption,
.portal-page__content .wp-block-image figcaption,
.portal-content-single__body .wp-block-image figcaption {
  font-size: 14px;
  color: #ADB6BB;
  text-align: center;
  margin-top: 8px;
}
.prose .wp-block-table,
.portal-page__content .wp-block-table,
.portal-content-single__body .wp-block-table {
  margin: 32px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose .wp-block-table table,
.portal-page__content .wp-block-table table,
.portal-content-single__body .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.prose .wp-block-table table th, .prose .wp-block-table table td,
.portal-page__content .wp-block-table table th,
.portal-page__content .wp-block-table table td,
.portal-content-single__body .wp-block-table table th,
.portal-content-single__body .wp-block-table table td {
  padding: 8px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}
.prose .wp-block-table table th,
.portal-page__content .wp-block-table table th,
.portal-content-single__body .wp-block-table table th {
  font-weight: 700;
  background: #f6f9f9;
  color: #111111;
  white-space: nowrap;
}
.prose .wp-block-table table tbody tr,
.portal-page__content .wp-block-table table tbody tr,
.portal-content-single__body .wp-block-table table tbody tr {
  transition: all 0.15s ease-in-out;
}
.prose .wp-block-table table tbody tr:hover td,
.portal-page__content .wp-block-table table tbody tr:hover td,
.portal-content-single__body .wp-block-table table tbody tr:hover td {
  background: rgba(232, 245, 224, 0.5);
}
.prose .wp-block-table table tbody tr:last-child td,
.portal-page__content .wp-block-table table tbody tr:last-child td,
.portal-content-single__body .wp-block-table table tbody tr:last-child td {
  border-bottom: none;
}
.prose .wp-block-columns,
.portal-page__content .wp-block-columns,
.portal-content-single__body .wp-block-columns {
  margin: 32px 0;
  gap: 24px;
}
@media (max-width: 768px) {
  .prose .wp-block-columns,
  .portal-page__content .wp-block-columns,
  .portal-content-single__body .wp-block-columns {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .prose .wp-block-column,
  .portal-page__content .wp-block-column,
  .portal-content-single__body .wp-block-column {
    margin-bottom: 24px;
  }
  .prose .wp-block-column:last-child,
  .portal-page__content .wp-block-column:last-child,
  .portal-content-single__body .wp-block-column:last-child {
    margin-bottom: 0;
  }
}
.prose .wp-block-separator,
.portal-page__content .wp-block-separator,
.portal-content-single__body .wp-block-separator {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 32px 0;
}
.prose .wp-block-quote,
.portal-page__content .wp-block-quote,
.portal-content-single__body .wp-block-quote {
  border-left: 4px solid #55ab47;
  padding: 16px 24px;
  margin: 32px 0;
  background: #f6f9f9;
  border-radius: 0 6px 6px 0;
}
.prose .wp-block-quote p,
.portal-page__content .wp-block-quote p,
.portal-content-single__body .wp-block-quote p {
  font-style: italic;
  color: #666666;
  font-size: 16px;
  margin-bottom: 4px;
}
.prose .wp-block-quote p:last-of-type,
.portal-page__content .wp-block-quote p:last-of-type,
.portal-content-single__body .wp-block-quote p:last-of-type {
  margin-bottom: 0;
}
.prose .wp-block-quote cite,
.portal-page__content .wp-block-quote cite,
.portal-content-single__body .wp-block-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  color: #00562f;
}
.prose .wp-block-file,
.portal-page__content .wp-block-file,
.portal-content-single__body .wp-block-file {
  margin: 24px 0;
}
.prose .wp-block-file a:not(.wp-block-file__button),
.portal-page__content .wp-block-file a:not(.wp-block-file__button),
.portal-content-single__body .wp-block-file a:not(.wp-block-file__button) {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #111111;
  transition: all 0.2s ease-in-out;
}
.prose .wp-block-file a:not(.wp-block-file__button):hover,
.portal-page__content .wp-block-file a:not(.wp-block-file__button):hover,
.portal-content-single__body .wp-block-file a:not(.wp-block-file__button):hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
  border-color: #55ab47;
}
.prose .wp-block-file .wp-block-file__button,
.portal-page__content .wp-block-file .wp-block-file__button,
.portal-content-single__body .wp-block-file .wp-block-file__button {
  display: none;
}
.prose .wp-block-audio,
.portal-page__content .wp-block-audio,
.portal-content-single__body .wp-block-audio {
  margin: 32px 0;
}
.prose .wp-block-audio audio,
.portal-page__content .wp-block-audio audio,
.portal-content-single__body .wp-block-audio audio {
  width: 100%;
  border-radius: 6px;
}
.prose .wp-block-audio figcaption,
.portal-page__content .wp-block-audio figcaption,
.portal-content-single__body .wp-block-audio figcaption {
  font-size: 14px;
  color: #ADB6BB;
  margin-top: 8px;
}
.prose .wp-block-video,
.portal-page__content .wp-block-video,
.portal-content-single__body .wp-block-video {
  margin: 32px 0;
}
.prose .wp-block-video video,
.portal-page__content .wp-block-video video,
.portal-content-single__body .wp-block-video video {
  width: 100%;
  border-radius: 8px;
}
.prose .wp-block-video figcaption,
.portal-page__content .wp-block-video figcaption,
.portal-content-single__body .wp-block-video figcaption {
  font-size: 14px;
  color: #ADB6BB;
  margin-top: 8px;
}
.prose .wp-block-embed,
.portal-page__content .wp-block-embed,
.portal-content-single__body .wp-block-embed {
  margin: 32px 0;
}
.prose .wp-block-embed .wp-block-embed__wrapper,
.portal-page__content .wp-block-embed .wp-block-embed__wrapper,
.portal-content-single__body .wp-block-embed .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}
.prose .wp-block-embed .wp-block-embed__wrapper iframe,
.portal-page__content .wp-block-embed .wp-block-embed__wrapper iframe,
.portal-content-single__body .wp-block-embed .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.prose .wp-block-buttons,
.portal-page__content .wp-block-buttons,
.portal-content-single__body .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
}
.prose .wp-block-button__link,
.portal-page__content .wp-block-button__link,
.portal-content-single__body .wp-block-button__link {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 999px;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  background: #00562f;
  color: #fff;
  border: 2px solid #00562f;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.prose .wp-block-button__link:hover,
.portal-page__content .wp-block-button__link:hover,
.portal-content-single__body .wp-block-button__link:hover {
  background: #55ab47;
  border-color: #55ab47;
  color: #fff;
}
.prose .is-style-outline .wp-block-button__link,
.portal-page__content .is-style-outline .wp-block-button__link,
.portal-content-single__body .is-style-outline .wp-block-button__link {
  background: transparent;
  color: #00562f;
  border: 2px solid #00562f;
}
.prose .is-style-outline .wp-block-button__link:hover,
.portal-page__content .is-style-outline .wp-block-button__link:hover,
.portal-content-single__body .is-style-outline .wp-block-button__link:hover {
  background: #00562f;
  color: #fff;
}
.prose .wp-block-group,
.portal-page__content .wp-block-group,
.portal-content-single__body .wp-block-group {
  margin: 32px 0;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.prose .wp-block-group.has-background,
.portal-page__content .wp-block-group.has-background,
.portal-content-single__body .wp-block-group.has-background {
  padding: 24px;
  background: #fff !important;
  border-left: 4px solid #55ab47;
}
.prose .wp-block-group > h2:first-child,
.prose .wp-block-group > h3:first-child,
.portal-page__content .wp-block-group > h2:first-child,
.portal-page__content .wp-block-group > h3:first-child,
.portal-content-single__body .wp-block-group > h2:first-child,
.portal-content-single__body .wp-block-group > h3:first-child {
  margin-top: 0;
}
.prose .wp-block-group > :last-child,
.portal-page__content .wp-block-group > :last-child,
.portal-content-single__body .wp-block-group > :last-child {
  margin-bottom: 0;
}
.prose .wp-block-cover,
.portal-page__content .wp-block-cover,
.portal-content-single__body .wp-block-cover {
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
  min-height: 200px;
}
.prose .wp-block-gallery,
.portal-page__content .wp-block-gallery,
.portal-content-single__body .wp-block-gallery {
  margin: 32px 0;
  gap: 8px;
}
.prose .wp-block-gallery .wp-block-image,
.portal-page__content .wp-block-gallery .wp-block-image,
.portal-content-single__body .wp-block-gallery .wp-block-image {
  margin: 0;
}
.prose .wp-block-gallery .wp-block-image img,
.portal-page__content .wp-block-gallery .wp-block-image img,
.portal-content-single__body .wp-block-gallery .wp-block-image img {
  border-radius: 6px;
}
.prose .wp-block-media-text,
.portal-page__content .wp-block-media-text,
.portal-content-single__body .wp-block-media-text {
  margin: 32px 0;
  gap: 24px;
}
.prose .wp-block-media-text .wp-block-media-text__media img,
.portal-page__content .wp-block-media-text .wp-block-media-text__media img,
.portal-content-single__body .wp-block-media-text .wp-block-media-text__media img {
  border-radius: 8px;
}

/*
    Quick Link Card Component
    Card linking to a portal section — generated from portal-sidebar-nav menu items.
    Used in the dashboard quick links grid (DASH-03).
*/
.quick-link-card {
  display: block;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 24px;
}
@media (prefers-reduced-motion: no-preference) {
  .quick-link-card {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  }
}
.quick-link-card:hover {
  border-color: #55ab47;
  box-shadow: 0 2px 12px rgba(0, 86, 47, 0.08);
}
.quick-link-card:focus-visible {
  outline: 2px solid #00562f;
  outline-offset: 2px;
}

.quick-link-card__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  display: block;
  color: #55ab47;
}

.quick-link-card__title {
  font-family: "transducer", Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #00562f;
  margin: 0 0 4px;
  line-height: 1.3;
}

.quick-link-card__description {
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #666666;
  margin: 0;
  line-height: 1.3;
}

/*
    Component: Step Indicator

    3-step progress indicator for the registration flow.
    Steps: Email → Check inbox → Set up account.

    Template uses BEM: .step-indicator__item, __circle, __label, __connector
    States: .is-active, .is-completed on __item
*/
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  gap: 0;
}

.step-indicator__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  min-width: 80px;
}

.step-indicator__connector {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  margin: 0 4px;
  margin-top: -24px;
}

.step-indicator__item.is-completed ~ .step-indicator__connector,
.step-indicator__connector:has(+ .step-indicator__item.is-completed) {
  background: #55ab47;
}

.step-indicator__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #e0e0e0;
  margin-bottom: 8px;
}

.step-indicator__number {
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ADB6BB;
}

.step-indicator__check {
  color: #fff;
}

.step-indicator__label {
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #666666;
  text-align: center;
  line-height: 1.3;
}

.step-indicator__item.is-active .step-indicator__circle {
  background: #00562f;
  border-color: #00562f;
}
.step-indicator__item.is-active .step-indicator__number {
  color: #fff;
}
.step-indicator__item.is-active .step-indicator__label {
  color: #00562f;
  font-weight: 700;
}

.step-indicator__item.is-completed .step-indicator__circle {
  background: #55ab47;
  border-color: #55ab47;
}
.step-indicator__item.is-completed .step-indicator__number {
  display: none;
}
.step-indicator__item.is-completed .step-indicator__label {
  color: #55ab47;
}

@media (max-width: 767px) {
  .step-indicator__item {
    min-width: 60px;
  }
  .step-indicator__label {
    font-size: 10px;
  }
}
/*
    Component: Auth Tabs

    Two-tab switcher used on the login screen to toggle between
    "Password" and "Magic Link" login methods.

    Tab switching is handled via JS class toggle (.is-active) — no page reload.
    Panels use .tab-panel and .is-active to show/hide content.
*/
.auth-tabs {
  border-bottom: 2px solid #e0e0e0;
  display: flex;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px 24px;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #666666;
  cursor: pointer;
  border: none;
  border-radius: 0;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  min-height: 44px;
  letter-spacing: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .auth-tab {
    transition: all 0.2s ease-in-out;
  }
}
.auth-tab.is-active {
  color: #00562f;
  font-weight: 700;
  border-bottom-color: #00562f;
}
.auth-tab:hover:not(.is-active) {
  color: #111111;
}

.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
}

/*
    Page: Auth

    Page-level styles for all unauthenticated auth screens.
    Component-level styles live in css/components/ — these are page-scope overrides
    and helper classes specific to auth template contexts.
*/
.auth-page {
  background: #f6f9f9;
  min-height: 100vh;
}

.auth-link {
  color: #00562f;
  text-decoration: none;
  font-weight: 700;
}
.auth-link:hover {
  color: #55ab47;
  text-decoration: underline;
}

.auth-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 24px 0;
}

.auth-masked-email {
  font-weight: 700;
  color: #111111;
}

.dashboard-placeholder {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 16px;
  text-align: center;
}
.dashboard-placeholder .dashboard-placeholder-meta {
  font-size: 14px;
  color: #ADB6BB;
  text-align: center;
  margin-top: 24px;
}

/*
    Portal Dashboard Page
    Grower landing page: welcome greeting, announcement banner, quick links grid.
    Uses NZKGI green for accents to match the sidebar and brand identity.
*/
.portal-dashboard {
  max-width: 1000px;
}

.portal-dashboard__welcome {
  margin-bottom: 32px;
}
.portal-dashboard__welcome h1 {
  font-family: "transducer", Helvetica, Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #00562f;
  line-height: 1.3;
  margin: 0 0 4px;
}
@media (min-width: 768px) {
  .portal-dashboard__welcome h1 {
    font-size: 40px;
  }
}
.portal-dashboard__welcome p {
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 19px;
  color: #666666;
  margin: 0;
  line-height: 1.48;
}

.announcement-banner {
  background: #e8f5e0;
  border-left: 4px solid #55ab47;
  padding: 16px 24px;
  border-radius: 6px;
  margin-bottom: 32px;
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #111111;
  line-height: 1.48;
}
.announcement-banner p {
  margin: 0;
}

.portal-dashboard__quick-links h2 {
  font-family: "transducer", Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 24px;
}

.portal-dashboard__empty {
  font-family: "area-normal", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #666666;
  padding: 32px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  border: 1px dashed #e0e0e0;
}

/*
    Page: Single Portal Content

    Styles for individual portal_content CPT posts rendered via
    templates/template-single-portal-content.php.

    Gutenberg block styles are handled by the shared .prose component
    (css/components/_prose.scss) via the .portal-content-single__body selector.
    This file only contains page-level layout and header styles.
*/
.portal-content-single .portal-content-single__header {
  margin-bottom: 32px;
}
.portal-content-single .portal-content-single__header .badge {
  margin-bottom: 8px;
}
.portal-content-single .portal-content-single__header h1 {
  font-family: "transducer", Helvetica, Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 8px;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .portal-content-single .portal-content-single__header h1 {
    font-size: 40px;
  }
}
.portal-content-single .portal-content-single__date {
  display: block;
  font-size: 14px;
  color: #ADB6BB;
}

.portal-page h1 {
  font-family: "transducer", Helvetica, Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 24px;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .portal-page h1 {
    font-size: 40px;
  }
}

.search-results .search-results__header {
  margin-bottom: 32px;
}
.search-results .search-results__header h1 {
  font-family: "transducer", Helvetica, Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 8px;
}
.search-results .search-results__summary {
  color: #666666;
  font-size: 16px;
  margin: 0;
}
.search-results .search-results__empty {
  padding: 48px 24px;
  text-align: center;
  color: #666666;
  background: #f6f9f9;
  border-radius: 8px;
}
.search-results .search-results__empty p {
  margin: 0;
  font-size: 16px;
}

/*# sourceMappingURL=style.css.map */
