<?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_5260b331-6ec9-4fea-b44f-fd6bd1086164">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_5260b331-6ec9-4fea-b44f-fd6bd1086164"
      id="F_91afb316-88db-49c8-9a17-d30833e3b2b9">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5260b331-6ec9-4fea-b44f-fd6bd1086164"
      id="F_667622e1-7bb2-4b96-94c2-e3cf8c6bf351">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_5260b331-6ec9-4fea-b44f-fd6bd1086164"
      id="F_8d6a859f-745a-4e58-8e9d-2cbf7d7cbea7">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_5260b331-6ec9-4fea-b44f-fd6bd1086164"
      id="F_73a6b2e8-040d-4d7b-9e7f-d1980cf34b07">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5260b331-6ec9-4fea-b44f-fd6bd1086164"
      id="F_8be5dc2d-c962-4d8b-bfec-00c745c68b96">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_5260b331-6ec9-4fea-b44f-fd6bd1086164"
      id="F_c20dd443-d5ff-4a90-aad0-0f29b087812d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_5260b331-6ec9-4fea-b44f-fd6bd1086164"
      id="F_556d7445-ff9e-41eb-b810-7302ce411a5c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_5260b331-6ec9-4fea-b44f-fd6bd1086164"
      id="F_bd5932fa-2555-4eeb-a826-8ecc181f0e60">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_5260b331-6ec9-4fea-b44f-fd6bd1086164"
      id="F_e1565ff3-7bdc-4ac4-b8d8-15a8c2158dcf">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_5260b331-6ec9-4fea-b44f-fd6bd1086164"
      id="F_cea1f71c-93b6-41dc-ad8b-fcd5f7511368">&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;1,048,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_5260b331-6ec9-4fea-b44f-fd6bd1086164"
      decimals="-3"
      id="F_0b2686f6-50f0-4ca7-9320-9835f1d70c66"
      unitRef="U_USD">1048000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
