<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_96f73057-8867-439f-be4e-9a5cdfd7503a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-04</startDate>
            <endDate>2026-05-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_96f73057-8867-439f-be4e-9a5cdfd7503a"
      id="F_060d6e4d-e678-4754-b5e9-4e7761e2951e">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_96f73057-8867-439f-be4e-9a5cdfd7503a"
      id="F_3466c5b0-fc6a-42c3-a6c8-7ca2701cf927">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_96f73057-8867-439f-be4e-9a5cdfd7503a"
      id="F_a2e9152e-fda7-442b-bbff-92b1e3587d3c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_96f73057-8867-439f-be4e-9a5cdfd7503a"
      id="F_00b2354e-797e-43dc-935d-327e3c006fc5">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_96f73057-8867-439f-be4e-9a5cdfd7503a"
      id="F_f0796803-cd46-417f-8e78-d3769b3dcb86">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_96f73057-8867-439f-be4e-9a5cdfd7503a"
      id="F_cba8f32b-4d4c-49fc-911e-3515c1f1c725">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_96f73057-8867-439f-be4e-9a5cdfd7503a"
      id="F_ce0bb70b-f001-4c1c-b254-42e084dc6bbe">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_96f73057-8867-439f-be4e-9a5cdfd7503a"
      id="F_ae04a81b-af20-48a9-b894-5650de706dbf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_96f73057-8867-439f-be4e-9a5cdfd7503a"
      id="F_ac64175e-37e1-483f-989b-7b14fc3cd0ba">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_96f73057-8867-439f-be4e-9a5cdfd7503a"
      id="F_34f913ab-e1df-4246-82ac-246e159037a0">&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,039,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_96f73057-8867-439f-be4e-9a5cdfd7503a"
      decimals="0"
      id="F_a752cb07-612f-47c5-bf16-370e33363788"
      unitRef="U_USD">1039000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
