<?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_6de3ca93-6915-4aee-90c2-125ceae88679">
        <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:OfferingTableNa
      contextRef="C_6de3ca93-6915-4aee-90c2-125ceae88679"
      id="F_dc845f73-8640-4c94-81b6-3f0ca3958d8d">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6de3ca93-6915-4aee-90c2-125ceae88679"
      id="F_19fc5d49-9b98-4ce0-a6d6-1e01a121588f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6de3ca93-6915-4aee-90c2-125ceae88679"
      id="F_a4cb3d77-cfbd-4663-86d7-209d9f793227">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_6de3ca93-6915-4aee-90c2-125ceae88679"
      id="F_bbcd44fe-9a62-4e80-9074-287c08225e3d">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6de3ca93-6915-4aee-90c2-125ceae88679"
      id="F_2468f692-a212-4e1e-8532-98a00c778718">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6de3ca93-6915-4aee-90c2-125ceae88679"
      id="F_c6eaf2d8-a090-4f68-9683-e4f9e48c36bb">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6de3ca93-6915-4aee-90c2-125ceae88679"
      id="F_c18bf011-40a5-4086-b646-dae4c3da064c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6de3ca93-6915-4aee-90c2-125ceae88679"
      id="F_ed10bf49-0c4c-482f-8f19-9d5885f0356e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_6de3ca93-6915-4aee-90c2-125ceae88679"
      id="F_03d27e39-a08c-4812-a434-b7a25a76c99e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_6de3ca93-6915-4aee-90c2-125ceae88679"
      id="F_631e0fe8-a863-4d77-84a0-8e43571c56d3">&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;2,814,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_6de3ca93-6915-4aee-90c2-125ceae88679"
      decimals="-3"
      id="F_1002c6de-e4d6-4ec4-8bdc-723a19275496"
      unitRef="U_USD">2814000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
