@charset "utf-8";
/* =====================================================================
   frankgarcia.com — fg-menu.css   (2026-11-07)
   The left-column menu, identical on every page. Link it LAST in <head>.

   Markup (same on every page):
     RESUME   (hover/click) -> Acrobat, HTML
     CREATIVE (hover/click) -> Art
     PPA, TOPICS            -> plain links

   The left column's width is tied to the menu's text size (--menu-fs).
   It only gets narrower when the menu text gets smaller on small screens.
   ===================================================================== */

:root {
  --menu-fs: 20px;                          /* menu text size */
  --leftw: calc(var(--menu-fs) * 8.6);      /* left column width follows the menu text size */
}
@media (max-width: 900px) { :root { --menu-fs: 17px; } }
@media (max-width: 640px) { :root { --menu-fs: 15px; } }
@media (max-width: 420px) { :root { --menu-fs: 13px; } }

/* Left column width (grid pages use .fg-wrap; the older sec-*.html pages float .fg-left) */
.fg-wrap { grid-template-columns: var(--leftw) minmax(0, 1fr); }
.fg-left { width: var(--leftw); box-sizing: border-box; flex-shrink: 0; }

/* Older sec-art / sec-ideas / sec-topics pages (sections.css, .fg-page wrapper):
   left column at its fixed width, the main column takes the rest. */
.fg-page { display: flex; align-items: stretch; min-height: 100vh; }
.fg-page > .fg-left { float: none; }
.fg-page > .fg-main { float: none; width: auto; flex: 1 1 auto; min-width: 0; box-sizing: border-box; }

/* ---------- Menu ---------- */
.fg-menu {
  list-style: none;
  margin: 20px 0 0;
  padding: 0 0 0 1em;
  font-size: var(--menu-fs);
}
.fg-menu li { margin: 0; padding: 0; font-weight: 300; }
.fg-menu a {
  display: block;
  width: auto;
  text-decoration: none;
  color: var(--menu-color);
  background: none;
}

.fg-menu .fg-label {
  display: block;
  box-sizing: border-box;
  padding: .05em .6em .05em .85em;
  font-family: "Khula", sans-serif;
  font-weight: 300;
  font-size: 1em;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .01em;
  white-space: normal;                    /* long labels (PRIVATE PATIENT ADVOCACY) wrap inside the column */
  color: var(--menu-color);
}
.fg-menu .fg-has-sub > .fg-label { cursor: pointer; }
.fg-menu .fg-desc { display: none; }

/* Hover / open: green bar, white semibold label (same look as before) */
.fg-menu a:hover .fg-label,
.fg-menu a:focus-visible .fg-label,
.fg-menu .fg-has-sub:hover > .fg-label,
.fg-menu .fg-has-sub.open > .fg-label,
.fg-menu .fg-has-sub > .fg-label:focus-visible {
  background: var(--hover-bg);
  color: #fff;
  font-weight: 600;
  outline: none;           /* text stays left-aligned, in place */
}
.fg-menu a:hover, .fg-menu a:focus-visible { background: none; outline: none; }

/* Sub-links: hidden until RESUME / CREATIVE is hovered, clicked, or reached by keyboard */
.fg-menu .fg-sub {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 .25em;
}
.fg-menu .fg-has-sub:hover > .fg-sub,
.fg-menu .fg-has-sub.open > .fg-sub,
.fg-menu .fg-has-sub:has(:focus-visible) > .fg-sub { display: block; }
.fg-menu .fg-sub li { margin: 0; }
.fg-menu .fg-sub a {
  display: block;
  padding: .12em .6em .12em 1.9em;          /* indented under the section word */
  font-family: "Khula", sans-serif;
  font-weight: 400;
  font-size: .8em;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--menu-color);
}
.fg-menu .fg-sub a:hover,
.fg-menu .fg-sub a:focus-visible {
  background: var(--hover-bg);
  color: #fff;
  outline: none;
}

@media print { .fg-left { display: none; } .fg-wrap { display: block; } }

/* "Francisco Garcia" in the header links to sections.html; it keeps the name's own look */
/* The name is typed with spaces between letters (F R A N C I S C O&nbsp; &nbsp;G A R C I A).
   site.js wraps each word in <span class="fg-word">, so a line can break only between words,
   and the gap between the words is made here with word-spacing. */
.fg-words { word-spacing: .55em; }
.fg-word { white-space: nowrap; word-spacing: normal; }
.fg-name a { color: inherit; text-decoration: none; }
.fg-name a:hover, .fg-name a:focus-visible { color: var(--menu-color); }

/* =====================================================================
   Small screens and phones (2026-11-14)
   No left column. The section name in the header (h1.fg-section) becomes
   the menu button: a small triangle after it, and a tap opens the same
   menu as a drop-down. The drop-down's choices are DROP_MENU in site.js.
   The width below must match SMALL in site.js.
   ===================================================================== */
.fg-drop { display: none; }

@media (max-width: 760px) {
  .fg-wrap { display: block; min-height: 0; }
  .fg-left { display: none; }
  /* Same side margins on every page */
  .fg-main, .fg-main-sect, .fg-wrap > .fg-top { padding-left: 5%; padding-right: 5%; box-sizing: border-box; }
  .fg-top { position: relative; padding-top: 18px; text-align: left; margin-bottom: 10pt; }
  .fg-wrap > .fg-top { padding-top: 38px; }   /* sections.html: header is outside .fg-main, so add .fg-main's 20px */

  /* Header: line 1 the name, line 2 the section title (the menu button). Both left-aligned. */
  .fg-top-line { display: flex; flex-direction: column; align-items: flex-start; row-gap: calc(10px + 5pt); }
  .fg-top .fg-name { order: 1; }
  .fg-top .fg-section { order: 2; }
  .fg-top .fg-name,
  .fg-top .fg-section {
    float: none;
    margin: 0;
    text-align: left;
    white-space: normal;
    line-height: 1.3;
  }
  .fg-top .fg-name { font-size: 20px; }
  .fg-top .fg-section { font-size: 17px; font-weight: 600; color: #000; }

  /* the menu button */
  .fg-section.fg-menu-btn { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .fg-section.fg-menu-btn::after {          /* right-pointing triangle; points down when open */
    content: "\00a0\25B8";                    /* non-breaking space keeps it on the last word's line */
    color: inherit;
    font-family: Arial, sans-serif;
    font-size: .8em;
  }
  .fg-section.fg-menu-btn[aria-expanded="true"]::after { content: "\00a0\25BE"; }
  .fg-section.fg-menu-btn:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

  /* the drop-down: very light gray */
  .fg-drop:not([hidden]) { display: block; }
  .fg-drop {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 70;
    width: max-content;
    min-width: 14em;
    max-width: min(22em, 90vw);
    padding: .35em 0 .6em;
    background: #f4f4f4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
    text-align: left;
  }
  .fg-drop .fg-menu { margin: 0; padding: 0; font-size: 17px; }
  .fg-drop .fg-menu li { margin: 0; }
  .fg-drop .fg-menu .fg-label { padding: .3em .9em; font-size: 1em; line-height: 1.3; }
  /* section words with sub-links are headings here, not buttons */
  .fg-drop .fg-menu .fg-has-sub > .fg-label { cursor: default; background: none; color: var(--menu-color); font-weight: 300; }
  /* sub-links always show (no hover on a phone) */
  .fg-drop .fg-menu .fg-sub { display: block; padding: 0 0 .2em; }
  .fg-drop .fg-menu .fg-sub a { padding: .3em .9em .3em 1.9em; font-size: .85em; white-space: normal; }
  /* black text; a slightly darker gray bar on hover/tap */
  .fg-drop .fg-menu .fg-label,
  .fg-drop .fg-menu .fg-has-sub > .fg-label,
  .fg-drop .fg-menu .fg-sub a { color: #000; }
  .fg-drop .fg-menu a:hover .fg-label,
  .fg-drop .fg-menu a:focus-visible .fg-label,
  .fg-drop .fg-menu .fg-sub a:hover,
  .fg-drop .fg-menu .fg-sub a:focus-visible { background: #e2e2e2; color: #000; }
}

/* =====================================================================
   Search box (2026-11-21): under the left menu, and at the top of the
   small-screen drop-down. site.js adds it; it opens search.html.
   ===================================================================== */
.fg-search { display: flex; align-items: center; gap: .3em; box-sizing: border-box; font-family: "Khula", sans-serif; }
.fg-search input {
  flex: 1 1 auto; min-width: 0; width: 100%;
  font: inherit; font-weight: 300; color: #000;
  background: transparent; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .45); border-radius: 0;
  padding: .25em 0 .1em;
  -webkit-appearance: none; appearance: none;
}
.fg-search input::placeholder { color: rgba(0, 0, 0, .55); }
.fg-search input:focus { outline: none; border-bottom-color: #000; }
.fg-search button { flex: none; background: none; border: 0; padding: .2em; cursor: pointer; color: inherit; line-height: 0; }
.fg-search button:focus-visible { outline: 2px solid #000; outline-offset: 1px; }
.fg-search svg { width: 1.05em; height: 1.05em; }
.fg-left .fg-search {                       /* lines up with the menu words */
  margin: calc(var(--menu-fs) * 1.4) calc(var(--menu-fs) * .6) 0 calc(var(--menu-fs) * 1.85);
  font-size: calc(var(--menu-fs) * .8); color: var(--menu-color);
}
.fg-drop .fg-search { margin: .25em .9em .6em; font-size: 16px; color: #000; }   /* 16px: iPhones don't zoom into the field */
