<?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_688b8531-51ce-430a-8c82-4cde2c410a8b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-02</startDate>
            <endDate>2026-11-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_688b8531-51ce-430a-8c82-4cde2c410a8b"
      id="F_6b7f6154-abf2-4f0e-9e53-664f5fcab49b">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_688b8531-51ce-430a-8c82-4cde2c410a8b"
      id="F_34e0a92a-4d35-4830-8135-a777735c6256">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_688b8531-51ce-430a-8c82-4cde2c410a8b"
      id="F_9fd788e1-fec9-4b02-b9a3-db0aa8b718a4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_688b8531-51ce-430a-8c82-4cde2c410a8b"
      id="F_ee1b4a7e-9440-4937-a23b-29d92b2d3021">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_688b8531-51ce-430a-8c82-4cde2c410a8b"
      id="F_a5decdd4-00f8-4a0e-8aeb-33420cc6a884">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_688b8531-51ce-430a-8c82-4cde2c410a8b"
      id="F_8ff90708-2174-4d86-9962-36404ad957e2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_688b8531-51ce-430a-8c82-4cde2c410a8b"
      id="F_d364fb47-0e48-42ef-9cc7-4f95833bbef7">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_688b8531-51ce-430a-8c82-4cde2c410a8b"
      id="F_3d62725f-bcfc-46f6-af81-d9dbf882d177">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_688b8531-51ce-430a-8c82-4cde2c410a8b"
      id="F_3be2dd28-c1a1-4c1c-847c-a97ec3411b8f">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_688b8531-51ce-430a-8c82-4cde2c410a8b"
      id="F_11ce4b36-4075-4eff-a11e-2f1edac41244">&lt;p style="tab-size:26.66px;font-size:12pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&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;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&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,761,000&lt;/span&gt;&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;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_688b8531-51ce-430a-8c82-4cde2c410a8b"
      decimals="-3"
      id="F_8c44dde4-8843-4275-a03c-d6c4cb81504a"
      unitRef="U_USD">1761000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
