<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_a0fc9801-6c9e-428d-9d29-47fd5fc76123">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a0fc9801-6c9e-428d-9d29-47fd5fc76123"
      id="F_5a3255cb-4ec8-48fe-b98b-f5876eb577c8">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a0fc9801-6c9e-428d-9d29-47fd5fc76123"
      id="F_af1bb97d-81ce-44c4-b150-d223521677d8">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_a0fc9801-6c9e-428d-9d29-47fd5fc76123"
      id="F_6bd933d6-1f9c-4d24-a2a7-6c30ec48ad5a">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_a0fc9801-6c9e-428d-9d29-47fd5fc76123"
      id="F_5fb71ff9-032d-4ccd-8104-9dab5310a3ff">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a0fc9801-6c9e-428d-9d29-47fd5fc76123"
      id="F_238e9a8f-c2af-4ec7-aa58-a8955fb4d54f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a0fc9801-6c9e-428d-9d29-47fd5fc76123"
      id="F_607ed26e-793b-4b1d-85e1-13c1cb040e2a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a0fc9801-6c9e-428d-9d29-47fd5fc76123"
      id="F_70810152-c913-4299-991d-fce836e7b654">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a0fc9801-6c9e-428d-9d29-47fd5fc76123"
      id="F_344af746-4127-4a89-adc5-f358c4305b19">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a0fc9801-6c9e-428d-9d29-47fd5fc76123"
      id="F_a96e8fe4-dee9-4987-b37f-5a7e5a76ec55">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_a0fc9801-6c9e-428d-9d29-47fd5fc76123"
      id="F_c4c0f7a3-64c6-4317-8e86-87c0a31345eb">&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;$&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;1,405,000&lt;/span&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_a0fc9801-6c9e-428d-9d29-47fd5fc76123"
      decimals="-3"
      id="F_917165d9-3837-4700-8d54-d5b0b18b4ca8"
      unitRef="U_USD">1405000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
