<?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_7e0c873b-1326-442c-b7db-95fd83cb9d13">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-25</startDate>
            <endDate>2026-06-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_7e0c873b-1326-442c-b7db-95fd83cb9d13"
      id="F_070eabf3-faa5-4969-a04b-b199ebf3a198">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_7e0c873b-1326-442c-b7db-95fd83cb9d13"
      id="F_78b5ba7c-1bb5-46c1-ad56-22ff318799e5">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7e0c873b-1326-442c-b7db-95fd83cb9d13"
      id="F_3fa955aa-f69f-4db7-bcab-09d80ba0c3e0">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_7e0c873b-1326-442c-b7db-95fd83cb9d13"
      id="F_ad577c05-e6eb-449a-8a36-8649889b734f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7e0c873b-1326-442c-b7db-95fd83cb9d13"
      id="F_595fbb81-02d1-47eb-8e0f-891f390dd256">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_7e0c873b-1326-442c-b7db-95fd83cb9d13"
      id="F_a87e8650-d447-4cf6-96b3-cb0dc5564134">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_7e0c873b-1326-442c-b7db-95fd83cb9d13"
      id="F_947eb920-2dd8-4237-b8aa-efd3ca1dd190">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7e0c873b-1326-442c-b7db-95fd83cb9d13"
      id="F_a42b0d12-2106-47bf-bc1c-19ce15934548">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_7e0c873b-1326-442c-b7db-95fd83cb9d13"
      id="F_c4c23a7d-df62-42ba-8621-b8d6de94641e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7e0c873b-1326-442c-b7db-95fd83cb9d13"
      id="F_9c9377c8-ba45-46c0-8e90-546c71edf3b0">&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;3,289,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_7e0c873b-1326-442c-b7db-95fd83cb9d13"
      decimals="-3"
      id="F_64c5509a-36bd-4ee0-a9cf-4f52cc343ab3"
      unitRef="U_USD">3289000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
