<?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_c6f5c7d6-b82e-4dd4-9f50-a898623094b3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_c6f5c7d6-b82e-4dd4-9f50-a898623094b3"
      id="F_351c614b-716e-4e0e-a980-18e92cf8f059">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c6f5c7d6-b82e-4dd4-9f50-a898623094b3"
      id="F_d1daccc9-183e-43d4-a0a9-9887dc2d030b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_c6f5c7d6-b82e-4dd4-9f50-a898623094b3"
      id="F_7d087042-38be-43c6-8dd6-498d4d406215">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c6f5c7d6-b82e-4dd4-9f50-a898623094b3"
      id="F_c076ce0f-2c4c-4234-957d-503333046db0">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_c6f5c7d6-b82e-4dd4-9f50-a898623094b3"
      id="F_e6e696c7-53b2-4d88-b397-e2ebfe1778f2">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c6f5c7d6-b82e-4dd4-9f50-a898623094b3"
      id="F_6cf6014d-3cb8-4385-aedd-beadf4fe4b0d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c6f5c7d6-b82e-4dd4-9f50-a898623094b3"
      id="F_69590752-3659-44c5-9af0-13dc0dc3b694">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c6f5c7d6-b82e-4dd4-9f50-a898623094b3"
      id="F_da423d98-006a-4194-96b1-ba1e2cbc223b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_c6f5c7d6-b82e-4dd4-9f50-a898623094b3"
      id="F_57705080-5858-4500-a890-ba3cc8ce88d5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c6f5c7d6-b82e-4dd4-9f50-a898623094b3"
      id="F_16c05493-fff7-471d-a17c-0909c9f1fca1">&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;849,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_c6f5c7d6-b82e-4dd4-9f50-a898623094b3"
      decimals="-3"
      id="F_39f26104-9674-4c5a-9fef-e4d11bdc036c"
      unitRef="U_USD">849000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
