<?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_581d8c76-fa4f-4ae5-b48c-c10fd7d5e37c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-18</startDate>
            <endDate>2026-06-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_581d8c76-fa4f-4ae5-b48c-c10fd7d5e37c"
      id="F_60e30907-b6e0-4245-a70f-36ffec546eca">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_581d8c76-fa4f-4ae5-b48c-c10fd7d5e37c"
      id="F_2ceae182-a818-4bb9-b303-d3c433554bd9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_581d8c76-fa4f-4ae5-b48c-c10fd7d5e37c"
      id="F_cc35ec27-1379-4918-86c7-fd47b8b7dd53">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_581d8c76-fa4f-4ae5-b48c-c10fd7d5e37c"
      id="F_14b7bd11-3438-41a6-80d8-f0e47b67ff65">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_581d8c76-fa4f-4ae5-b48c-c10fd7d5e37c"
      id="F_9566a65a-46d5-4d68-8eda-f2d86e5a1d4a">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_581d8c76-fa4f-4ae5-b48c-c10fd7d5e37c"
      id="F_f9a4de03-be04-4b5b-b371-1a0789e33504">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_581d8c76-fa4f-4ae5-b48c-c10fd7d5e37c"
      id="F_a80cec1e-1697-499b-be56-ff2e63a17796">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_581d8c76-fa4f-4ae5-b48c-c10fd7d5e37c"
      id="F_9f897377-8888-4da3-b322-e8484f91fcda">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_581d8c76-fa4f-4ae5-b48c-c10fd7d5e37c"
      id="F_1139cac0-832e-4723-90a7-da7b7d791870">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_581d8c76-fa4f-4ae5-b48c-c10fd7d5e37c"
      id="F_049ec31b-e6d5-4a9f-b987-4487252da047">&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,761,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_581d8c76-fa4f-4ae5-b48c-c10fd7d5e37c"
      decimals="-3"
      id="F_1ae5cf67-eb59-4e4d-9026-b29a06c0211b"
      unitRef="U_USD">5761000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
