<?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_eef03545-f95e-4cd9-9ee2-6aebe62e1bf2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eef03545-f95e-4cd9-9ee2-6aebe62e1bf2"
      id="F_d7d3f914-039e-446a-be81-a249bc6e4ef3">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_eef03545-f95e-4cd9-9ee2-6aebe62e1bf2"
      id="F_46bac21a-f58c-4550-a283-8edef2acb22e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_eef03545-f95e-4cd9-9ee2-6aebe62e1bf2"
      id="F_a5f61060-a970-4fb3-90f3-40b98844a905">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_eef03545-f95e-4cd9-9ee2-6aebe62e1bf2"
      id="F_ff82eee2-9800-4ba8-ad79-2b7312fa7fef">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_eef03545-f95e-4cd9-9ee2-6aebe62e1bf2"
      id="F_85735c81-7162-4d84-8021-46ca03315c0b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_eef03545-f95e-4cd9-9ee2-6aebe62e1bf2"
      id="F_6331f917-f4df-477e-a272-e511d027b837">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_eef03545-f95e-4cd9-9ee2-6aebe62e1bf2"
      id="F_996b3ab5-91b0-47d8-85fa-c078c209ddce">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_eef03545-f95e-4cd9-9ee2-6aebe62e1bf2"
      id="F_b3101ee9-63d2-49be-927f-a3ff221e8001">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_eef03545-f95e-4cd9-9ee2-6aebe62e1bf2"
      id="F_96ae8a87-74f5-4109-95d7-a1ed5ad53e4b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_eef03545-f95e-4cd9-9ee2-6aebe62e1bf2"
      id="F_43241e9e-25be-4210-aa6c-baf3e68ec81c">&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;5,734,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_eef03545-f95e-4cd9-9ee2-6aebe62e1bf2"
      decimals="-3"
      id="F_e9dd153b-12f0-4803-8a6c-2094edd72683"
      unitRef="U_USD">5734000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
