<?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_12f93252-79cd-48ee-b0d4-3de84a6cc6d0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-27</startDate>
            <endDate>2026-10-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_12f93252-79cd-48ee-b0d4-3de84a6cc6d0"
      id="F_0347f7e8-e36a-4231-b658-2e67b9c77c58">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_12f93252-79cd-48ee-b0d4-3de84a6cc6d0"
      id="F_fc7c639a-1396-444b-bb93-a0a7a4ee2cb5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_12f93252-79cd-48ee-b0d4-3de84a6cc6d0"
      id="F_b8471add-cc17-4659-af5a-172e4a82e66d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_12f93252-79cd-48ee-b0d4-3de84a6cc6d0"
      id="F_2f408cbe-02c1-4596-9cde-c91d3650ceac">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_12f93252-79cd-48ee-b0d4-3de84a6cc6d0"
      id="F_325b6451-849f-4d70-963f-052a762a1dbe">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_12f93252-79cd-48ee-b0d4-3de84a6cc6d0"
      id="F_b6fa86df-fded-4260-b02a-7939d7cb0a40">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_12f93252-79cd-48ee-b0d4-3de84a6cc6d0"
      id="F_a8419996-5f61-4166-891f-a42e6ccc1f47">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_12f93252-79cd-48ee-b0d4-3de84a6cc6d0"
      id="F_5878a0d2-b4d7-4bdd-a6ed-1f5d203d5c95">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_12f93252-79cd-48ee-b0d4-3de84a6cc6d0"
      id="F_e46efa3b-7223-4c8f-b244-a546b044e7ea">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_12f93252-79cd-48ee-b0d4-3de84a6cc6d0"
      id="F_7d5f43db-24be-4b0e-9116-a13781b2479b">&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;960,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_12f93252-79cd-48ee-b0d4-3de84a6cc6d0"
      decimals="-3"
      id="F_25f7701f-7895-47d6-92b2-adc6376ba5a6"
      unitRef="U_USD">960000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
