<?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_e8eb6649-8447-43f5-9f50-62eed551b889">
        <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_e8eb6649-8447-43f5-9f50-62eed551b889"
      id="F_6969c86b-db7c-40d7-ad51-ed9398b9a572">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_e8eb6649-8447-43f5-9f50-62eed551b889"
      id="F_c941a08b-d463-4076-9875-ee23cfed1c45">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e8eb6649-8447-43f5-9f50-62eed551b889"
      id="F_971eaeeb-c6dd-4eeb-b9d8-93aa4b6fcc75">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e8eb6649-8447-43f5-9f50-62eed551b889"
      id="F_44ec81f7-3cc3-45b7-ad80-1e517fa7b3ab">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e8eb6649-8447-43f5-9f50-62eed551b889"
      id="F_48b4ccc3-86c7-4d82-ac32-2260ee6a1749">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e8eb6649-8447-43f5-9f50-62eed551b889"
      id="F_1162a5e0-a095-4942-8752-7fb2106ea92a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_e8eb6649-8447-43f5-9f50-62eed551b889"
      id="F_fdb6491b-b0a4-41e3-8f43-34f1d01265ab">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e8eb6649-8447-43f5-9f50-62eed551b889"
      id="F_e03e7ca7-d39b-4bfa-949e-81840011bd3a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_e8eb6649-8447-43f5-9f50-62eed551b889"
      id="F_604cdc72-5798-4065-abea-388259fa207a">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e8eb6649-8447-43f5-9f50-62eed551b889"
      id="F_ffc768d3-b8d2-4c4a-aac1-a554880f233f">&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;212,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_e8eb6649-8447-43f5-9f50-62eed551b889"
      decimals="-3"
      id="F_7f25c2d9-d1ce-447b-866b-202d722e2a76"
      unitRef="U_USD">212000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
