<?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_15dad727-bbcb-43f6-90c8-4993c570d86d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-17</startDate>
            <endDate>2026-06-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_15dad727-bbcb-43f6-90c8-4993c570d86d"
      id="F_1521ac51-8006-4db5-8907-8766059808eb">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_15dad727-bbcb-43f6-90c8-4993c570d86d"
      id="F_d0e2931b-5d84-4021-9a14-9d2cbe05c2ab">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_15dad727-bbcb-43f6-90c8-4993c570d86d"
      id="F_2e9b4f6d-c658-4ce2-af2a-36521d073558">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_15dad727-bbcb-43f6-90c8-4993c570d86d"
      id="F_77879125-36c1-4468-85ef-a67c28f34ac1">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_15dad727-bbcb-43f6-90c8-4993c570d86d"
      id="F_a1ed742a-63e2-4d5c-b7d7-ac94b24752ba">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_15dad727-bbcb-43f6-90c8-4993c570d86d"
      id="F_f1429885-40e7-4df2-84cb-5f2c44427aea">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_15dad727-bbcb-43f6-90c8-4993c570d86d"
      id="F_f4296e01-6a37-4592-a025-645f0ed4d7a8">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_15dad727-bbcb-43f6-90c8-4993c570d86d"
      id="F_975a51ab-fea8-4399-9d95-0a0350f02fad">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_15dad727-bbcb-43f6-90c8-4993c570d86d"
      id="F_b54c3701-0e5b-4583-969f-717c59c73126">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_15dad727-bbcb-43f6-90c8-4993c570d86d"
      id="F_6b98252e-4c6f-4ed2-ba79-7861bef13a0d">&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;500,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_15dad727-bbcb-43f6-90c8-4993c570d86d"
      decimals="-3"
      id="F_a1d9620a-68d8-48f3-a292-0811d756e43e"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
