<?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_aeba068b-5f5c-488e-96aa-d1096ed67f78">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_aeba068b-5f5c-488e-96aa-d1096ed67f78"
      id="F_84acafce-cd52-43a7-90a0-e48e0de013fd">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aeba068b-5f5c-488e-96aa-d1096ed67f78"
      id="F_a8c4d2bd-e33a-457e-a3f2-1c26df953755">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_aeba068b-5f5c-488e-96aa-d1096ed67f78"
      id="F_272c32ff-4dc8-4ec1-be3b-3ffa13418ff4">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_aeba068b-5f5c-488e-96aa-d1096ed67f78"
      id="F_6f1630a7-2738-4d38-86b9-f92dd091a07b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_aeba068b-5f5c-488e-96aa-d1096ed67f78"
      id="F_c6c1151c-347e-4505-a82d-9923ba1a1116">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_aeba068b-5f5c-488e-96aa-d1096ed67f78"
      id="F_26afbff8-ec83-49df-b6f0-2de9d5339b1d">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_aeba068b-5f5c-488e-96aa-d1096ed67f78"
      id="F_7415770f-1a06-4db7-9a84-2b1cd018dff7">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_aeba068b-5f5c-488e-96aa-d1096ed67f78"
      id="F_540f9732-1585-479c-96ef-1ad9f1dbce10">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_aeba068b-5f5c-488e-96aa-d1096ed67f78"
      id="F_b0c6bf00-7ed8-41c1-909b-3c6e8b170181">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_aeba068b-5f5c-488e-96aa-d1096ed67f78"
      id="F_c5d65e54-e506-4825-bf8d-c8d993d5f003">&lt;p style="tab-size:26.66px;font-size:12pt;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;21,923,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_aeba068b-5f5c-488e-96aa-d1096ed67f78"
      decimals="-3"
      id="F_de0383d4-e895-4708-9e48-7c537be3dd60"
      unitRef="U_USD">21923000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
