<?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_a8b8d879-d098-4184-b320-de4b2639df6f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-07</startDate>
            <endDate>2026-07-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_a8b8d879-d098-4184-b320-de4b2639df6f"
      id="F_47b65f66-82cb-426a-bf05-f37c584656f7">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a8b8d879-d098-4184-b320-de4b2639df6f"
      id="F_b7147946-f401-4c67-98b2-c5419e852116">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a8b8d879-d098-4184-b320-de4b2639df6f"
      id="F_c0354df1-6121-401c-9d80-095ddd293f5a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a8b8d879-d098-4184-b320-de4b2639df6f"
      id="F_05fd60af-794e-4382-afec-1d644051c490">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a8b8d879-d098-4184-b320-de4b2639df6f"
      id="F_15827c2c-f2ea-45fb-8f63-67a2393645de">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a8b8d879-d098-4184-b320-de4b2639df6f"
      id="F_755a610b-1dc8-4e94-bdce-e645e502a5c9">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a8b8d879-d098-4184-b320-de4b2639df6f"
      id="F_f6be95f2-2e99-4bc4-b89e-94119e039939">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a8b8d879-d098-4184-b320-de4b2639df6f"
      id="F_df898bd5-eefd-4f97-8a15-9893e8df3244">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a8b8d879-d098-4184-b320-de4b2639df6f"
      id="F_96b9a8c3-5780-4992-a997-91ce55384932">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_a8b8d879-d098-4184-b320-de4b2639df6f"
      id="F_b1d09d98-a02f-4b4a-a684-05aa517f492a">&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;4,946,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_a8b8d879-d098-4184-b320-de4b2639df6f"
      decimals="-3"
      id="F_287c8814-44da-4535-8646-38bf44eeae37"
      unitRef="U_USD">4946000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
