<?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_e0179006-185d-4b3c-a31f-4431faa762ff">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_e0179006-185d-4b3c-a31f-4431faa762ff"
      id="F_f99dd3ad-b277-49aa-8745-7927135e5f0a">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_e0179006-185d-4b3c-a31f-4431faa762ff"
      id="F_40be9987-4676-474b-a76d-5061e55c8018">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_e0179006-185d-4b3c-a31f-4431faa762ff"
      id="F_9e9a5cee-516a-4855-aa69-cde0a71a400d">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_e0179006-185d-4b3c-a31f-4431faa762ff"
      id="F_ece3fc51-c2bf-4cb5-abe6-4e7bf607dbb1">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e0179006-185d-4b3c-a31f-4431faa762ff"
      id="F_a4497253-6b6a-4a59-a7c0-f9350c263c20">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_e0179006-185d-4b3c-a31f-4431faa762ff"
      id="F_409e3fc8-2ee3-41ad-a0c2-1f3354a092ff">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e0179006-185d-4b3c-a31f-4431faa762ff"
      id="F_2929dd53-ba02-45cc-88e3-57dbbee5007f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e0179006-185d-4b3c-a31f-4431faa762ff"
      id="F_983fbee7-43f0-4a87-ade8-031b00710468">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e0179006-185d-4b3c-a31f-4431faa762ff"
      id="F_a25b2964-3a22-4105-9dfa-5ea755ea35c6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e0179006-185d-4b3c-a31f-4431faa762ff"
      id="F_5987b26f-78de-4d47-bc30-b4a2441ac04a">&lt;p style="font-size:10pt;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;500,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_e0179006-185d-4b3c-a31f-4431faa762ff"
      decimals="-3"
      id="F_8cbfc8af-f1b9-40f6-8ac1-24838da26759"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
