/* Enhancement layer: loads after style.css. No original rules were edited. */
:root {
  --maroon: #4A0404;
  --forest: #274A04;
  --teal: #044A4A;
  --plum: #27044A;
  --cream: #FFFEF2;
  --ink: #2e2d2b;
  --line: rgba(46, 45, 43, 0.13);
  --shadow: 0 1px 2px rgba(46, 45, 43, 0.06), 0 10px 28px rgba(46, 45, 43, 0.09);
}

html { scroll-behavior: smooth; }

body {
  background-image: linear-gradient(180deg, rgba(74, 4, 4, 0.07), rgba(255, 254, 242, 0) 380px);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

.document { max-width: 880px; margin: 40px auto 56px; }

/* Hero header */
.header {
  position: relative;
  overflow: hidden;
  padding: 34px 36px;
  margin-bottom: 28px;
  border-radius: 16px;
  color: var(--cream);
  background: linear-gradient(135deg, var(--maroon) 0%, var(--plum) 100%);
  box-shadow: 0 14px 34px rgba(74, 4, 4, 0.28);
}
.profile-image {
  width: 132px;
  height: 132px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 4px solid var(--cream);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.header-text h1 {
  color: var(--cream);
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.header .role {
  color: var(--cream);
  opacity: 0.9;
  font-size: 1.05rem;
  margin-top: 10px;
  text-align: left;
}

/* Section cards */
.section {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.document .bar-chart .section:first-child {
  border-right: 1px solid var(--line);
  padding-right: 28px;
}
.document .english-language-proficiency .section:first-child {
  border-right: 1px solid var(--line);
  padding-right: 28px;
}

.section h2 {
  position: relative;
  color: var(--teal);
  font-size: 1.3rem;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section h3 { letter-spacing: 0.02em; }
.section ul li::marker { color: var(--teal); }

/* Links */
a { text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.2s ease; }
.section p a:hover { color: var(--teal); }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.pht-timezone { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* Buttons */
.button-set-1 {
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
  box-shadow: 0 2px 6px rgba(46, 45, 43, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.button-set-1:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(46, 45, 43, 0.28);
  filter: brightness(1.07);
  text-decoration: none;
}

/* Skill bars */
.disc-percent,
.band-english {
  min-height: 30px;
  background: rgba(46, 45, 43, 0.07);
  box-shadow: inset 0 1px 3px rgba(46, 45, 43, 0.14);
}
.disc-percent-fill,
.band-english-fill {
  min-height: 30px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  animation: gd-grow 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Expertise: numbered card grid */
.section ol {
  list-style: none;
  counter-reset: skill;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.section ol > li {
  counter-increment: skill;
  position: relative;
  margin: 0;
  padding: 18px;
  background: rgba(39, 4, 74, 0.035);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.section ol > li::before {
  content: counter(skill, decimal-leading-zero);
  position: absolute;
  top: 16px; right: 16px;
  font: 700 0.8rem 'Montserrat', sans-serif;
  color: var(--plum);
  opacity: 0.4;
}
.section ol h3 { margin-top: 0; padding-right: 28px; }
.section li em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}

/* Weather widgets and footer */
.misamis-occidental-weatherwidget-since102026,
.zamboanga-del-norte-weatherwidget-since102026 { margin-bottom: 16px; }

.footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  opacity: 0.72;
  font-size: 0.85rem;
  text-align: center;
}
.footer p { text-align: center; }

/* Motion */
@keyframes gd-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gd-grow { from { width: 0; } }
.header, .section { animation: gd-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header, .section, .disc-percent-fill, .band-english-fill { animation: none; }
  .button-set-1 { transition: none; }
}

/* Responsive */
@media (max-width: 700px) {
  .section ol { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .document { padding: 0 16px; margin-top: 24px; }
  .header { padding: 24px; }
  .profile-image { width: 104px; height: 104px; }
  .header-text h1 { font-size: 1.9rem; }
  .section { padding: 22px 20px; }
  .document .bar-chart .section:first-child,
  .document .english-language-proficiency .section:first-child { padding-right: 20px; }
}

/* Print: keep text readable when backgrounds are stripped */
@media print {
  body { background-image: none; }
  .header, .section, .disc-percent-fill, .band-english-fill { animation: none; }
  .header { background: none; box-shadow: none; padding: 0; }
  .header-text h1 { color: var(--maroon); }
  .header .role { color: var(--forest); opacity: 1; }
  .profile-image { border: 0; border-radius: 4px; box-shadow: none; }
  .section { box-shadow: none; break-inside: avoid; }
}

/* Header: Primary Niches list */
.header .role-list {
  margin: 6px 0 0 20px;
  color: var(--cream);
  opacity: 0.9;
  font-size: 1.05rem;
}
.header .role-list li { margin-bottom: 2px; }
@media print {
  .header .role-list { color: var(--forest); opacity: 1; }
}

/* Rates & Availability tables */
.rates-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
}
.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.rates-table th,
.rates-table td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.rates-table th {
  font-family: 'Montserrat', sans-serif;
  color: var(--plum);
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.rates-table td:nth-child(3),
.rates-table td:nth-child(4) {
  white-space: nowrap;
}
.rates-table tbody tr:last-child td {
  border-bottom: none;
}
.section .rates-note {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.85rem;
  text-align: left;
}
