<?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_a1f2afff-427a-4c75-8b66-a82b73721c3f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-08</startDate>
            <endDate>2026-06-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a1f2afff-427a-4c75-8b66-a82b73721c3f"
      id="F_47000c4f-67cb-4576-b745-9b53c3afd0d0">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a1f2afff-427a-4c75-8b66-a82b73721c3f"
      id="F_8612010b-f695-4992-9cac-1fdc6c3b5cec">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a1f2afff-427a-4c75-8b66-a82b73721c3f"
      id="F_defd8f73-f013-4c10-b2e5-c926d6f7b3a0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_a1f2afff-427a-4c75-8b66-a82b73721c3f"
      id="F_350f9a93-a320-4986-964e-362e42497ddf">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a1f2afff-427a-4c75-8b66-a82b73721c3f"
      id="F_ba181099-c64a-47c8-9c46-f410a7f49754">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a1f2afff-427a-4c75-8b66-a82b73721c3f"
      id="F_538c60dd-7c06-4a5c-b743-728e319ed5fd">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_a1f2afff-427a-4c75-8b66-a82b73721c3f"
      id="F_832ad491-3df8-42ee-b7ff-522c65806919">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a1f2afff-427a-4c75-8b66-a82b73721c3f"
      id="F_8780fe87-3d5d-49f7-b8f4-281d2c208e5d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a1f2afff-427a-4c75-8b66-a82b73721c3f"
      id="F_e6460025-8fc1-4f97-85c5-dca035e3ea60">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a1f2afff-427a-4c75-8b66-a82b73721c3f"
      id="F_0e4c9ea9-77fc-432d-b643-dea9078da900">&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;5,189,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_a1f2afff-427a-4c75-8b66-a82b73721c3f"
      decimals="-3"
      id="F_5383e7a4-b4a0-4abf-8b74-8ffd0529cae8"
      unitRef="U_USD">5189000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
