<?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_d742d2f2-667f-42b0-915d-e2daee88bbca">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_d742d2f2-667f-42b0-915d-e2daee88bbca"
      id="F_8880bcec-636f-46d4-bdf9-7f472d2c72e1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_d742d2f2-667f-42b0-915d-e2daee88bbca"
      id="F_ac43dc46-cb78-40e6-814a-fe8bbb705c2b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d742d2f2-667f-42b0-915d-e2daee88bbca"
      id="F_2537ab0d-84b7-4c07-a0a0-74107eb1df9f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d742d2f2-667f-42b0-915d-e2daee88bbca"
      id="F_d5dac29b-e483-4ce0-9e10-9c48bbbcadbb">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_d742d2f2-667f-42b0-915d-e2daee88bbca"
      id="F_4c43cc3c-37be-4bec-818a-4e7690bfca8a">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_d742d2f2-667f-42b0-915d-e2daee88bbca"
      id="F_d434b33e-d096-4461-addc-6f5cd3db8d64">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d742d2f2-667f-42b0-915d-e2daee88bbca"
      id="F_80af9b24-0f6c-49f6-933d-aed335d5abf4">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_d742d2f2-667f-42b0-915d-e2daee88bbca"
      id="F_9b5b126a-71b4-4d6f-a531-967eac1959d0">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_d742d2f2-667f-42b0-915d-e2daee88bbca"
      id="F_b3282b2c-00f8-4942-a012-5c96eca8c807">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d742d2f2-667f-42b0-915d-e2daee88bbca"
      id="F_fe69da9d-81c2-4bab-9ecf-29b17c1315a9">&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,156,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_d742d2f2-667f-42b0-915d-e2daee88bbca"
      decimals="-3"
      id="F_d84b9626-c030-4622-b578-c681f51a8cb9"
      unitRef="U_USD">2156000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
