<?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_17e26be0-09d1-435c-82a7-fd8e0d02cba7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_17e26be0-09d1-435c-82a7-fd8e0d02cba7"
      id="F_175933d1-e371-481c-86d0-802fa4c97851">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_17e26be0-09d1-435c-82a7-fd8e0d02cba7"
      id="F_05ff648d-28aa-4f20-8dab-540e27b76073">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_17e26be0-09d1-435c-82a7-fd8e0d02cba7"
      id="F_2f433864-9e86-48d1-b3a6-9342afc3d692">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_17e26be0-09d1-435c-82a7-fd8e0d02cba7"
      id="F_907916d6-5feb-4887-8598-f27c474beea5">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_17e26be0-09d1-435c-82a7-fd8e0d02cba7"
      id="F_aa2a0247-c475-4b97-9e0f-abf5e2d7454e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_17e26be0-09d1-435c-82a7-fd8e0d02cba7"
      id="F_8670a806-92b8-436b-b09f-f192f211a672">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_17e26be0-09d1-435c-82a7-fd8e0d02cba7"
      id="F_e830fd28-210e-4f38-bcba-0dfb3e12802c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_17e26be0-09d1-435c-82a7-fd8e0d02cba7"
      id="F_82309489-e157-4cc8-a28b-670e70719031">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_17e26be0-09d1-435c-82a7-fd8e0d02cba7"
      id="F_8cf1c84d-cd86-4c6a-b9d3-b15d7393ba48">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_17e26be0-09d1-435c-82a7-fd8e0d02cba7"
      id="F_5ae7fbda-a5ca-42c0-a889-348d79848c52">&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;1,530,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_17e26be0-09d1-435c-82a7-fd8e0d02cba7"
      decimals="-3"
      id="F_55b81727-4129-4acf-b4ee-c51ef4f69f29"
      unitRef="U_USD">1530000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
