/* Garay Go shell and task homepage. The graphic canvas and export styles stay in styles.css. */
body {
  font-size: 16px;
}

.hub-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hub-brand-row {
  flex-shrink: 0;
}

.sidebar {
  width: 236px;
  padding: 30px 22px 24px;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
}

.sidebar .brand {
  font-size: 46px;
  line-height: 1;
  letter-spacing: -1.8px;
  margin: 0 0 34px;
}

.sidebar .brand span {
  font-family: Raleway, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .6px;
  margin-top: 10px;
}

.sidebar .nav-label {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 1px;
  color: #d0d8df;
  margin-bottom: 14px;
}

.sidebar .hub-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
}

.sidebar .hub-nav > button,
.sidebar .hub-nav > a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ivory);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  white-space: normal;
}

.sidebar .hub-nav > button:hover,
.sidebar .hub-nav > a:hover,
.sidebar .hub-nav > .active,
.sidebar .hub-nav > [aria-current="page"] {
  border-color: #f1ede54d;
  background: #f1ede514;
}

.sidebar .hub-nav .nav-offers {
  border-color: #f1ede54d;
}

.sidebar .hub-nav .hub-icon {
  width: 20px;
  height: 20px;
}

.sidebar .hub-nav button span {
  float: none;
}

.sidebar .sidebar-bottom {
  padding-top: 28px;
}

.sidebar .sidebar-bottom p {
  color: #d0d8df;
  font-size: 14px;
  line-height: 1.65;
  margin: 10px 0 22px;
}

.sidebar .sidebar-bottom img {
  max-width: 178px;
}

.mobile-menu-toggle,
.mobile-dock {
  display: none;
}

.topbar {
  height: 64px;
  padding: 0 36px;
  font-size: 14px;
  line-height: 1.4;
  color: #566575;
}

.hub-icon {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-home {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 36px 48px;
}

.hub-intro {
  margin-bottom: 28px;
}

.hub-intro .eyebrow {
  margin: 0 0 10px;
  color: #64717b;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 1.4px;
}

.hub-intro h1 {
  margin: 0 0 12px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -.65px;
}

.hub-primary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.hub-task {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 276px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  text-align: left;
  text-decoration: none;
}

a.hub-task:hover {
  border-color: #99a5ae;
  box-shadow: 0 4px 18px #142e4b09;
}

.hub-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 18px;
}

.hub-task-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  border: 1px solid #142e4b1f;
  border-radius: 9px;
  background: #f6f4ef;
}

.hub-task h2 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -.35px;
}

.hub-task p {
  margin: 0 0 22px;
  color: #586672;
  font-size: 16px;
  line-height: 1.55;
}

.hub-task-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 15px;
  border: 1px solid #b8c1c8;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-family: Raleway, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.hub-task-offers,
a.hub-task-offers:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.hub-task-offers .hub-task-icon {
  border-color: #ffffff38;
  background: #ffffff0d;
}

.hub-task-offers p {
  color: #e1e7ec;
}

.hub-task-offers .hub-task-action {
  border-color: var(--ivory);
  background: var(--ivory);
  color: var(--navy);
}

.hub-task .hub-task-action.primary {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--ivory);
}

.hub-task small {
  display: block;
  margin-top: 10px;
  color: #5d6d79;
  font-size: 14px;
  line-height: 1.4;
}

.hub-task-offers small {
  color: #d6dfe7;
}

.hub-writing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.hub-writing-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: start;
  gap: 8px 14px;
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f4f1eb;
}

.hub-writing-card > .hub-icon,
.hub-writing-card > .hub-writing-icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin-top: 3px;
}

.hub-writing-card > :is(h2, h3, p, button, a, div:not(.hub-writing-icon)) {
  grid-column: 2;
}

.hub-writing-card h2,
.hub-writing-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.hub-writing-card > div > :is(h2, h3) {
  margin-bottom: 7px;
}

.hub-writing-card > div + button {
  grid-column: 2;
  margin-top: 6px;
}

.hub-writing-card p {
  margin: 0;
  color: #5a6872;
  font-size: 14px;
  line-height: 1.6;
}

.hub-writing-card button,
.hub-writing-card .button {
  justify-self: start;
  min-height: 44px;
  margin-top: 5px;
  padding: 9px 12px;
  border-color: #c5c8c6;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.hub-help-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
}

.hub-help-row p,
.hub-help-row > span {
  margin: 0 auto 0 0;
  color: #5a6872;
  font-size: 14px;
  line-height: 1.5;
}

.hub-help-row button,
.hub-help-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  background: transparent;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.hub-home .section-head {
  margin-top: 34px;
}

.hub-home .section-head h2 {
  font-size: 32px;
}

.hub-project-note {
  margin: -6px 0 20px;
  color: #5d6d79;
  font-size: 14px;
  line-height: 1.6;
}

.hub-projects .project-filters input,
.hub-projects .project-filters select {
  min-height: 44px;
}

.hub-home .section-head button,
.hub-home .project-filters input,
.hub-home .project-filters select {
  min-height: 44px;
  font-size: 14px;
}

@media (max-width: 1100px) and (min-width: 781px) {
  .sidebar {
    width: 210px;
    padding: 26px 17px 22px;
  }

  .sidebar .brand {
    font-size: 42px;
  }

  .hub-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .hub-home {
    padding: 30px 24px 40px;
  }

  .hub-intro h1 {
    font-size: 40px;
    line-height: 1.2;
  }

  .hub-primary-grid,
  .hub-writing-grid {
    gap: 14px;
  }

  .hub-task {
    padding: 22px;
  }

  .hub-task h2 {
    font-size: 32px;
  }

  .hub-writing-card {
    padding: 20px 18px;
    gap: 8px 10px;
  }
}

@media (max-width: 780px) {
  .hub-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .shell {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 66px;
    padding: 13px 18px;
    overflow: visible;
  }

  .sidebar .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    max-width: calc(100% - 54px);
    margin: 0;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -1px;
  }

  .sidebar .brand span {
    display: inline-block;
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: .3px;
  }

  .sidebar .nav-label,
  .sidebar .sidebar-bottom {
    display: none;
  }

  .mobile-menu-toggle {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 9px;
    border: 1px solid #f1ede54d;
    border-radius: 6px;
    background: transparent;
    color: var(--ivory);
    font-size: 14px;
    line-height: 1.2;
    flex-shrink: 0;
  }

  .mobile-menu-toggle span {
    display: none;
  }

  .mobile-menu-toggle:hover {
    border-color: #f1ede58c;
    background: #f1ede514;
  }

  .mobile-menu-toggle .hub-icon {
    width: 22px;
    height: 22px;
  }

  .sidebar .hub-nav {
    display: none;
    margin: 0;
  }

  .sidebar.menu-open .hub-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1ede533;
  }

  .sidebar .hub-nav > button,
  .sidebar .hub-nav > a {
    min-width: 0;
    min-height: 46px;
    padding: 10px;
    font-size: 14px;
    text-align: left;
  }

  .sidebar .hub-nav button span {
    display: inline;
  }

  .topbar {
    height: 38px;
    padding: 0 18px;
    font-size: 14px;
  }

  .page {
    padding: 24px 18px 32px;
  }

  .hub-home {
    padding: 22px 18px 32px;
  }

  .hub-intro {
    margin-bottom: 20px;
  }

  .hub-intro .eyebrow {
    margin-bottom: 7px;
    font-size: 14px;
    letter-spacing: .3px;
  }

  .hub-intro h1 {
    margin-bottom: 9px;
    font-size: 36px;
    line-height: 1.06;
    letter-spacing: -.4px;
  }

  .hub-primary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hub-task {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    min-height: 0;
    padding: 15px 18px;
    border-radius: 10px;
  }

  .hub-task-top {
    display: contents;
    margin: 0;
  }

  .hub-task-icon {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 8px;
  }

  .hub-task-icon .hub-icon {
    width: 22px;
    height: 22px;
  }

  .hub-task h2 {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    margin: 0;
    font-size: 30px;
    line-height: 1.05;
  }

  .hub-task p {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
  }

  .hub-task-action {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 44px;
    margin-top: 3px;
    padding: 9px 13px;
    font-size: 14px;
  }

  .hub-task small {
    grid-column: 1 / -1;
    margin-top: 2px;
    font-size: 14px;
  }

  .hub-writing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .hub-writing-card {
    padding: 19px 18px;
    gap: 7px 12px;
  }

  .hub-writing-card h2,
  .hub-writing-card h3 {
    font-size: 28px;
  }

  .hub-help-row {
    gap: 8px;
    margin-top: 20px;
    padding-top: 15px;
  }

  .hub-help-row p,
  .hub-help-row > span {
    flex-basis: 100%;
    margin-bottom: 2px;
  }

  .hub-help-row button,
  .hub-help-row a {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 10px;
  }

  .mobile-dock {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: #faf9f6;
    box-shadow: 0 -3px 18px #142e4b06;
  }

  .mobile-dock > button,
  .mobile-dock > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 60px;
    margin: 0;
    padding: 6px 2px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #586878;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-dock > button:hover,
  .mobile-dock > a:hover,
  .mobile-dock > .active,
  .mobile-dock > [aria-current="page"] {
    border-color: transparent;
    background: #ede9e1;
    color: var(--navy);
  }

  .mobile-dock button span,
  .mobile-dock a span {
    display: block;
    float: none;
    font-size: 14px;
    line-height: 1.2;
  }

  .mobile-dock .hub-icon {
    width: 22px;
    height: 22px;
  }

  input:not([type="checkbox"]):not([type="range"]),
  select,
  textarea,
  .hub-home .project-filters input,
  .hub-home .project-filters select {
    font-size: 16px;
  }

  input:not([type="checkbox"]):not([type="range"]):not([type="file"]),
  select {
    min-height: 44px;
  }

  #toast {
    z-index: 45;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .sidebar .brand {
    gap: 9px;
    font-size: 32px;
  }

  .sidebar .brand span {
    max-width: 105px;
  }

  .hub-task {
    padding: 16px;
  }

  .hub-task h2 {
    font-size: 28px;
  }

  .mobile-dock {
    gap: 2px;
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a.hub-task,
  .sidebar .hub-nav > a,
  .mobile-dock > a {
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  }
}
